Re: how to let autoscale leave a border around the data
Brought to you by:
rathmann
From: Uwe R. <Uwe...@ti...> - 2010-08-31 06:53:35
|
> which is correct, since the data in y is -pi:pi. However the printed plot > is from -pi:pi instead of -3.45:3.45. Did you implement the following sequence: a) assigning the data to your curve ( implicitly changing the bounding rect ) b) re-enable autoscaling ( might be disabled from manual zooming ) c) replot d) reinitialize your zoomer from the changed axes scales. If c) doesn't give you the scale you expect check the options of your scale engines. Uwe PS: the bounding rect of all plot items, that want to participate in autoscaling ( QwtPlotItem::AutoScale ) is used to calculate the x1, x2 parameters for QwtScaleEngine::autoScale(). If your code is o.k. you should find your margins there. Uwe |