
 Originally Posted by 
ldg20
					
				 
				Notice the autoscaler seems to cut off values in the beginning and leaves room at the end for values not yet in the attatched data.
			
		 
	 
 To disable the alignment at the end of the axes:
	
	
        plot->axisScaleEngine( QwtPlot::xBottom )->setAttribute( QwtScaleEngine::Floating, true );
To copy to clipboard, switch view to plain text mode 
  You might also want to set do the following, for the situation when the tick labels are close to the borders:
	
	plot->plotLayout()->setAlignCanvasToScales( true );
        plot->plotLayout()->setAlignCanvasToScales( true );
To copy to clipboard, switch view to plain text mode 
  But I still didn't get what you mean by "cut off values in the beginning": what is the bounding rectangle of the 400 points and what ranges on the scales do you want to display ?
Note that in your case auto scaling is not of much interest as you could simply do the following:
	
	int startIndex = ...
plot->setAxisScale
( QwtPlot::xBottom, points
[ startIndex 
].
x(), points
[ startIndex 
+ 400 ].
x(), 
);
 
        int startIndex = ...
plot->setAxisScale( QwtPlot::xBottom, points[ startIndex ].x(), points[ startIndex + 400 ].x(), );
To copy to clipboard, switch view to plain text mode 
  
Uwe
				
			
Bookmarks