Hi friends how do i fix the the x-bottom size of a qwt plot widget.
myPlot->setTitle("Data Acquisition");
myPlot
->setAxisTitle
(QwtPlot::xBottom,
"System time");
myPlot
->setAxisScale
(QwtPlot::xBottom,
0,
60);
myPlot
->setAxisTitle
(QwtPlot::yLeft,
"Bar");
myPlot
->setAxisScale
(QwtPlot::yLeft,
0,
100);
myPlot->setAutoReplot(true);
myPlot->setTitle("Data Acquisition");
myPlot->setAxisTitle(QwtPlot::xBottom, "System time");
myPlot->setAxisScale(QwtPlot::xBottom, 0, 60);
myPlot->setAxisTitle(QwtPlot::yLeft, "Bar");
myPlot->setAxisScale(QwtPlot::yLeft, 0, 100);
myPlot->setAutoReplot(true);
To copy to clipboard, switch view to plain text mode
I am using the above code to set the x-bottom scale from 0 to 60. But when i click the start plotting button the bottom scale is changed according to the number of values present in the db. I wanted the scale to stay at 0 to 60 only and the graph to plot according to the number of values present in the db.I am able to retrive data from the db every second but my only problem is the scale which changes i want it to be fixed. How can i do that. ??
Thank You
Bookmarks