rescaled histogram plotting

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@256 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
l_maliakal_d 2014-02-04 11:22:58 +00:00
parent 32e4af910d
commit 28e0cae2e2
2 changed files with 8 additions and 2 deletions

View File

@ -1745,6 +1745,8 @@ int qDrawPlot::UpdateTrimbitPlot(bool fromDetector,bool Histogram){
plot1D->SetYTitle("Trimbits");
//set plot parameters
plot1D->SetXMinMax(0,nPixelsX);
/*plot1D->SetYMinMax(0,plotHistogram->boundingRect().height()); plot1D->SetZoomBase(0,0,nPixelsX,plot1D->GetYMaximum());*/
//for some reason this plothistogram works as well.
plot1D->SetZoomBase(0,0,nPixelsX,plotHistogram->boundingRect().height());
SlsQtH1D* h;
plot1D_hists.append(h=new SlsQtH1D("",nPixelsX,histXAxis,histYAxis[0]));
@ -1789,9 +1791,9 @@ int qDrawPlot::UpdateTrimbitPlot(bool fromDetector,bool Histogram){
histFrameIndexTitle->setText(GetHistTitle(0));
plotHistogram->attach(plot1D);
//refixing all the zooming
/*plot1D->SetXMinMax(0,TRIM_HISTOGRAM_XMAX+1);
plot1D->SetXMinMax(0,TRIM_HISTOGRAM_XMAX+1);
plot1D->SetYMinMax(0,plotHistogram->boundingRect().height());
plot1D->SetZoomBase(0,0,actualPixelsX,plotHistogram->boundingRect().height());*/
plot1D->SetZoomBase(0,0,actualPixelsX,plotHistogram->boundingRect().height());
}
}

View File

@ -123,6 +123,10 @@ void qTabDataOutput::SetupWidgetWindow(){
connect(chkDiscardBad, SIGNAL(toggled(bool)), this, SLOT(DiscardBadChannels()));
if(detType == slsDetectorDefs::MYTHEN){
comboDetector->hide();
}
qDefs::checkErrorMessage(myDet,"qTabDataOutput::SetupWidgetWindow");
}