Here you go Uwe:
#include <QtGui/QApplication>
#include <QMainWindow>
#include <qwt_plot.h>
int main(int argc, char *argv[])
{
pPlot
->setAxisScale
( QwtPlot::yLeft,
0.0, 1.0e8, 5.0e6
);
w.setCentralWidget( pPlot );
w.resize( 500, 500 );
w.show();
return a.exec();
}
#include <QtGui/QApplication>
#include <QMainWindow>
#include <qwt_plot.h>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QMainWindow w;
QwtPlot * pPlot = new QwtPlot;
pPlot->setAxisScale( QwtPlot::yLeft, 0.0, 1.0e8, 5.0e6 );
w.setCentralWidget( pPlot );
w.resize( 500, 500 );
w.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
All of the x.5e7 labels are clipped on the left side by a couple of pixels. If the screenshot I will try to attach shows up, you can easily see this. This is Windows XP, Qt 4.5, Qwt 5.2.0, Visual C++ 2008. i have no way to test on another platform.
David
Bookmarks