mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
optimized the plot a bit
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@180 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
@ -276,7 +276,11 @@ SlsQt1DPlot::SlsQt1DPlot(QWidget *parent):QwtPlot(parent){
|
||||
SetupZoom();
|
||||
|
||||
// Assign a title
|
||||
#ifndef IAN
|
||||
insertLegend(new QwtLegend(), QwtPlot::BottomLegend);
|
||||
#else
|
||||
insertLegend(new QwtLegend(), QwtPlot::RightLegend);
|
||||
#endif
|
||||
|
||||
axisScaleEngine(QwtPlot::yLeft)->setAttribute(QwtScaleEngine::Floating);
|
||||
axisScaleEngine(QwtPlot::xBottom)->setAttribute(QwtScaleEngine::Floating);
|
||||
|
@ -72,11 +72,12 @@ void SlsQt2DPlotLayout::Layout(){
|
||||
the_layout->addWidget(btnInterpolate,1,1);
|
||||
the_layout->addWidget(btnContour,1,2);
|
||||
the_layout->addWidget(btnLogz,1,3);
|
||||
#endif
|
||||
the_layout->addWidget(the_plot,2,1,3,3);
|
||||
the_layout->addWidget(z_range_ne,5,1,1,3);
|
||||
#ifdef IAN
|
||||
the_layout->setMargin(12);
|
||||
the_layout->setMargin(12);
|
||||
#else
|
||||
the_layout->addWidget(the_plot,2,0,3,3);
|
||||
the_layout->addWidget(z_range_ne,5,0,1,3);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user