21 #include <qwt_legend.h>
22 #include <qwt_plot_picker.h>
23 #include <qwt_picker_machine.h>
30 m_PlotPicker->setStateMachine(
new QwtPickerDragPointMachine());
46 QPen pen( Qt::SolidLine );
51 std::vector<double> xAxis;
52 for(
unsigned int i=0; i<
m_Means.size(); ++i)
54 xAxis.push_back((
double)i);
57 pen.setColor(Qt::black);
63 pen.setColor(Qt::blue);
69 pen.setColor(Qt::red);
76 this->
m_Plot->setAxisTitle(0,
"Residual");
77 this->
m_Plot->setAxisTitle(3,
"DWI Volume");
80 auto legend =
new QwtLegend;
81 this->
SetLegend(legend, QwtPlot::RightLegend, 0.5);
93 QPen pen( Qt::SolidLine );
98 std::vector<double> xAxis;
101 xAxis.push_back((
double)i);
104 pen.setColor(Qt::black);
110 this->
m_Plot->setAxisTitle(0,
"Percentage of outliers");
111 this->
m_Plot->setAxisTitle(3,
"DWI Volume");
113 auto legend =
new QwtLegend;
114 this->
SetLegend(legend, QwtPlot::RightLegend, 0.5);