Hi, I plot a 3D graph with QwtPlot3D and everything is ok but my scale, it is unreadable.I'm running ubuntu10.04.It troubles me some days.Here are my codes and screenshot.Thanks for your attention!
Screenshot.png
createCoordinateSystem(Qwt3D::Triple(0, 0, 0), Qwt3D::Triple(100, 100, 100));
for (unsigned i=0; i!=coordinates()->axes.size(); ++i)//set the axes scal
{
coordinates()->axes[i].setMajors(7);
coordinates()->axes[i].setMinors(3);
coordinates()->axes[i].setLabelColor(RGBA(0,0,0));
}
coordinates()->setNumberColor(RGBA(0,0,0));
coordinates
()->setNumberFont
("Times",
10,
QFont::Bold);
coordinates()->setLineSmooth(true);
coordinates()->setGridLines(true, true);
coordinates
()->setLabelFont
(QFont("Times",
12,
QFont::Bold));
setPlotStyle(Bar(0.004, 0.05));
setCoordinateStyle(FRAME);
//disableMouse(true);
updateData();
updateGL();
createCoordinateSystem(Qwt3D::Triple(0, 0, 0), Qwt3D::Triple(100, 100, 100));
for (unsigned i=0; i!=coordinates()->axes.size(); ++i)//set the axes scal
{
coordinates()->axes[i].setMajors(7);
coordinates()->axes[i].setMinors(3);
coordinates()->axes[i].setLabelColor(RGBA(0,0,0));
}
coordinates()->setNumberColor(RGBA(0,0,0));
coordinates()->setNumberFont("Times",10, QFont::Bold);
coordinates()->setLineSmooth(true);
coordinates()->setGridLines(true, true);
coordinates()->setLabelFont(QFont("Times", 12, QFont::Bold));
setPlotStyle(Bar(0.004, 0.05));
setCoordinateStyle(FRAME);
//disableMouse(true);
updateData();
updateGL();
To copy to clipboard, switch view to plain text mode
coordinates
()->axes
[X1
].
setLabelString(QString("Phase"));
coordinates
()->axes
[Y1
].
setLabelString(QString("Cycle"));
coordinates
()->axes
[Z1
].
setLabelString(QString("Amplitude"));
coordinates()->axes[X1].setLabelString(QString("Phase"));
coordinates()->axes[Y1].setLabelString(QString("Cycle"));
coordinates()->axes[Z1].setLabelString(QString("Amplitude"));
To copy to clipboard, switch view to plain text mode
In addition, I want to run the demo in QwtPlot3D. Following the instruction: qmake; make; I got errors as follow:
tmp
/ui_mesh2mainwindowbase4.
h: In member function ‘
void Ui_MainWindow
::setupUi(QMainWindow*)’
:tmp
/ui_mesh2mainwindowbase4.
h:69: error
: ‘class
QGridLayout’ has no member named ‘setLeftMargin’
tmp
/ui_mesh2mainwindowbase4.
h:70: error
: ‘class
QGridLayout’ has no member named ‘setTopMargin’
tmp
/ui_mesh2mainwindowbase4.
h:71: error
: ‘class
QGridLayout’ has no member named ‘setRightMargin’
tmp
/ui_mesh2mainwindowbase4.
h:72: error
: ‘class
QGridLayout’ has no member named ‘setBottomMargin’
tmp
/ui_mesh2mainwindowbase4.
h:73: error
: ‘class
QGridLayout’ has no member named ‘setHorizontalSpacing’
tmp
/ui_mesh2mainwindowbase4.
h:74: error
: ‘class
QGridLayout’ has no member named ‘setVerticalSpacing’
tmp/ui_mesh2mainwindowbase4.h: In member function ‘void Ui_MainWindow::setupUi(QMainWindow*)’:
tmp/ui_mesh2mainwindowbase4.h:69: error: ‘class QGridLayout’ has no member named ‘setLeftMargin’
tmp/ui_mesh2mainwindowbase4.h:70: error: ‘class QGridLayout’ has no member named ‘setTopMargin’
tmp/ui_mesh2mainwindowbase4.h:71: error: ‘class QGridLayout’ has no member named ‘setRightMargin’
tmp/ui_mesh2mainwindowbase4.h:72: error: ‘class QGridLayout’ has no member named ‘setBottomMargin’
tmp/ui_mesh2mainwindowbase4.h:73: error: ‘class QGridLayout’ has no member named ‘setHorizontalSpacing’
tmp/ui_mesh2mainwindowbase4.h:74: error: ‘class QGridLayout’ has no member named ‘setVerticalSpacing’
To copy to clipboard, switch view to plain text mode
Can anyone help?
Bookmarks