jesse_mark
24th June 2013, 17:28
I'm sub classing QwtPlotItem, and when i attached it to the plot, im trying to auto scale myPlotItem and the Y and X-Axis
so the the item that i attached will be in the visible area of the plot and I don't need to zoom out and pan around to find it.
so I'm doing :
myItem->setItemAttribute(QwtPlotItem::AutoScale,true);
myPlot->setAxisAutoScale(QwtPlot::xBottom);
myPlot->setAxisAutoScale(QwtPlot::yLeft);
but its still not working and still need to zoom out to find my item.
what else i need to do to achieve this ??
Thanks
so the the item that i attached will be in the visible area of the plot and I don't need to zoom out and pan around to find it.
so I'm doing :
myItem->setItemAttribute(QwtPlotItem::AutoScale,true);
myPlot->setAxisAutoScale(QwtPlot::xBottom);
myPlot->setAxisAutoScale(QwtPlot::yLeft);
but its still not working and still need to zoom out to find my item.
what else i need to do to achieve this ??
Thanks