On 11/30/05, Uwe Rathmann <Uwe.Rathmann@...> wrote:
> On Tuesday 29 November 2005 10:14, Truls A. Tangstad wrote:
> > Is it possible to ensure that labels on plot markers are taken into
> > consideration when autoscaling/zooming the plot?
> Not with Qwt 4.2.0. Here you have to do the scaling on your own.
> A solution might be to adjust the alignment of the label texts to the inn=
> side of the position.
> In Qwt 5.x the bounding rect of plot items with an enabled
> QwtPlotItem::AutoScale attribute have an effect on autoscaling.
> Here it is possible to overload QwtPlotMarker::boundingRect to add the sp=
> for the text label.
> But I=B4m afraid this is not so easy with PyQwt.
Thanks for your reply. The first option might actually be a nice
compromise for some situations.
Shouldn't it be possible though to overload
QwtPlotMarker::boundingRect pretty easily from python (when PyQwt
starts supporting Qwt 5.x atleast)?
Truls A. Tangstad - tangstad at scicraft dot org