Fix blank space on right of AllPlot.

This commit is contained in:
Mark Liversedge
2010-08-14 13:00:05 +01:00
parent 5e575beaff
commit 48a25081ed

View File

@@ -30,6 +30,7 @@
#include <assert.h>
#include <qwt_plot_curve.h>
#include <qwt_plot_grid.h>
#include <qwt_plot_layout.h>
#include <qwt_plot_marker.h>
#include <qwt_text.h>
#include <qwt_legend.h>
@@ -257,6 +258,9 @@ AllPlot::AllPlot(AllPlotWindow *parent, MainWindow *mainWindow):
grid->enableX(false);
grid->attach(this);
// get rid of nasty blank space on right of the plot
plotLayout()->setAlignCanvasToScales(true);
configChanged(); // set colors
}