mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 15:00:02 +02:00
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:
parent
32e4af910d
commit
28e0cae2e2
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user