From 353e9baa7815715e10856339dee5d1889ad8d78d Mon Sep 17 00:00:00 2001 From: l_maliakal_d Date: Fri, 12 Oct 2012 12:16:58 +0000 Subject: [PATCH] got rid of some unnecessary coutlines in plotting by dhanya git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@93 af1100a4-978c-4157-bff7-07162d2ba061 --- .../slsDetectorPlotting/src/SlsQt2DPlotLayout.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DPlotLayout.cxx b/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DPlotLayout.cxx index 65c6e6725..c27f46c9f 100644 --- a/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DPlotLayout.cxx +++ b/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DPlotLayout.cxx @@ -115,17 +115,17 @@ void SlsQt2DPlotLayout::ResetRange(){ #ifdef IAN if(z_range_ne->CheckBoxState()){ #else - if(zRangeChecked){cout<<"entering:"<GetValue(0)<<"\t"<GetValue(1)<GetValue(0)==z_range_ne->GetValue(1)) ? 1:0; - if(!z_range_ne->IsValueOk(0)||same) z_range_ne->SetValue(the_plot->GetZMinimum(),0);cout<<"isok 0:"<GetValue(0)<<"\t"<GetValue(1)<IsValueOk(1)||same) z_range_ne->SetValue(the_plot->GetZMaximum(),1);cout<<"isok1:"<GetValue(0)<<"\t"<GetValue(1)<SetRange(the_plot->GetZMinimum(),z_range_ne->GetValue(1),0); cout<<"setrange:"<GetValue(0)<<"\t"<GetValue(1)<SetRange(z_range_ne->GetValue(0),the_plot->GetZMaximum(),1); cout<<"setrange:"<GetValue(0)<<"\t"<GetValue(1)<IsValueOk(0)||same) z_range_ne->SetValue(the_plot->GetZMinimum(),0); + if(!z_range_ne->IsValueOk(1)||same) z_range_ne->SetValue(the_plot->GetZMaximum(),1); + z_range_ne->SetRange(the_plot->GetZMinimum(),z_range_ne->GetValue(1),0); + z_range_ne->SetRange(z_range_ne->GetValue(0),the_plot->GetZMaximum(),1); //set histogram range - the_plot->SetZMinMax(z_range_ne->GetValue(0),z_range_ne->GetValue(1)); cout<<"setminmax:"<GetValue(0)<<"\t"<GetValue(1)<SetZMinMax(z_range_ne->GetValue(0),z_range_ne->GetValue(1)); } the_plot->Update(); } @@ -181,9 +181,7 @@ void SlsQt2DPlotLayout::SetZRange(double zmin, double zmax){ #endif z_range_ne->SetNumber(zmin,0); z_range_ne->SetNumber(zmax,1); - cout<<"\n\nthe valuessssssssssssssss:"<GetValue(0)<<"\t"<GetValue(1)<GetValue(0)<<"\t"<GetValue(1)<