Hi,
From the attached image you see that I have 2 seperate QWtPlots.
I am implementing a custom Y axis scale via:
Status_Graph->setMargin(1);
Status_Graph
->enableAxis
(QwtPlot::yLeft,
true);
m_SimStatusYScaler = new SimStatusYScaleDraw();
Status_Graph
->setAxisScaleDraw
(QwtPlot::yLeft, m_SimStatusYScaler
);
Status_Graph
->setAxisScale
(QwtPlot::yLeft,
0,
40);
Status_Graph
->setAxisLabelAlignment
(QwtPlot::yLeft, Qt
::AlignLeft | Qt
::AlignVCenter);
Status_Graph->setMargin(1);
Status_Graph->enableAxis (QwtPlot::yLeft, true);
m_SimStatusYScaler = new SimStatusYScaleDraw();
Status_Graph->setAxisScaleDraw(QwtPlot::yLeft, m_SimStatusYScaler);
Status_Graph->setAxisScale(QwtPlot::yLeft, 0, 40);
Status_Graph->setAxisLabelAlignment(QwtPlot::yLeft, Qt::AlignLeft | Qt::AlignVCenter);
To copy to clipboard, switch view to plain text mode
There are 2 problems I cannot figure out how to solve.
1. I would like the space between the Y axis label (ie Run) and the left
side of the graph itself to be narrower. How/what controls this space?
2. I would like the 2 graphs to be the same width with their left edges
aligned. They start out that way
in QT Designer but when I add the custom Y scale obviously the upper
graphs narrows.
Thank you!
Mark
Bookmarks