24 SetConstRatio(kFALSE);
36 Int_t numx = histo->GetNbinsX();
37 Int_t numy = histo->GetNbinsY();
39 TArrayD arr(numx * numy);
40 for (
int x = 1; x <= numx; x++)
41 for (
int y = 1; y <= numy; y++)
42 arr[(y - 1) * numx + (x - 1)] = histo->GetBinContent(x, y);
45 SetName(histo->GetName());
58 fxMinX = histo->GetXaxis()->GetXmin();
59 fxMaxX = histo->GetXaxis()->GetXmax();
60 fxMinY = histo->GetYaxis()->GetXmin();
61 fxMaxY = histo->GetYaxis()->GetXmax();
66 if ((rxmin >= rxmax) && (rymin >= rymax)) {
90 TASImage::Zoom(offX, offY, width, height);
95 TASImage::Zoom(offX, offY, width, height);
103 fxPanel->PadRangeAxisChanged(
fxPad, rxmin, rxmax, rymin, rymax);
116 fPaletteEditor->CloseWindow();
117 fPaletteEditor =
nullptr;
void SetDrawData(TH2 *histo, TGo4ViewPanel *panel, TPad *pad)
double fdHeight
original width of image (histogram)
void ClosePaletteEditor()
Use this to close palette editor properly.
void SetSelectedRange(double rxmin, double rxmax, double rymin, double rymax)
void SetHistogramContent(TH2 *histo)
void Zoom(UInt_t offX, UInt_t offY, UInt_t width, UInt_t height) override