4 Jun 2008 23:36
Autoscaling and Log axes
Joey Mukherjee <joey <at> swri.edu>
2008-06-04 21:36:05 GMT
2008-06-04 21:36:05 GMT
With the recent versions of Qwt (including the recent trunk), when I
draw my plots, one of my axes are not drawn if the axis is auto
scaled and logarithmic. If the axis is not auto scaled, or is linear
(either auto scaled or not), the axis is drawn fine.
Here is a snippet of how I am creating my axis:
QwtScaleEngine *se = NULL;
if (axis.GetIsLog () == true)
se = new QwtLog10ScaleEngine ();
else se = new QwtLinearScaleEngine ();
_qwtplot->setAxisScaleDraw (axisId, new ScaleDraw);
se->setAttribute (QwtScaleEngine::Floating, true);
_qwtplot->setAxisScaleEngine (axisId, se);
if (axis.GetIsAutoScaled () == false) {
_qwtplot->setAxisScale (axisId, axis.GetLower (),
axis.GetUpper ());
}
I could swear this use to work fine.
Any ideas?
Thanks,
Joey
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
(Continue reading)
RSS Feed