Changeset - 170d571f3be7
[Not reviewed]
barplot
0 1 0
Hasan Yavuz Ă–ZDERYA - 8 years ago 2017-10-05 14:32:19
hy@ozderya.net
fix empty space at the right of x scale
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/barplot.cpp
Show inline comments
 
@@ -35,7 +35,8 @@ BarPlot::BarPlot(ChannelManager* channel
 

	
 
void BarPlot::update()
 
{
 
    setAxisScale(QwtPlot::xBottom, 0, _channelMan->numOfChannels(), 1);
 
    // Note: -0.99 is used instead of -1 to handle the case of `numOfChannels==1`
 
    setAxisScale(QwtPlot::xBottom, 0, _channelMan->numOfChannels()-0.99, 1);
 
    barChart.resample();
 
    replot();
 
}
0 comments (0 inline, 0 general)