Hello! Is it possible to set axis value at one side? For example, from 10 and maximum value will be set automatically.
Hello! Is it possible to set axis value at one side? For example, from 10 and maximum value will be set automatically.
Well, the autoscaler ( paret of the scale engine ) is fed by the bounding intervals of all plot items having the QwtPlotItem::AutoScale flag enabled.
So you have several options:
- disable the autoscaler and use setAxisScale instead, where the upper limit is taken from the bounding rectangle of your data
- insert a dummy QwtPlotItem that paints nothing, but returns a bounding interval of [10,10]
- inherit from QwtScaleEngine and overload autoscale().
Uwe
Cat (6th December 2017)
Bookmarks