94 :
TPave(x1, y1, x2, y2)
150 if (px > plxmax && px < plxmax + 30 && py >= plymax && py <= plymin)
return px - plxmax;
164 static Int_t kmode = 0;
167 if (kmode != 0 || px <= plxmax) {
184 static Int_t px1old, py1old, px2old, py2old;
207 if (
gROOT->IsEscaped()) {
223 if (ratio2 - ratio1 > 0.05) {
227 if (
gPad->GetLogz()) {
233 Double_t newmin = zmin + (zmax - zmin) * ratio1;
234 Double_t newmax = zmin + (zmax - zmin) * ratio2;
237 if (
gPad->GetLogz()) {
284 static char info[64];
292 if (
gPad->GetLogz()) {
332 if (
gPad->GetLogz()) {
341 if (ndivz == 0)
return 0;
343 Int_t theColor, color;
344 Double_t scale = ndivz / (wlmax - wlmin);
347 if (zc < wlmin) zc = wlmin;
349 color =
Int_t(0.01 + (zc - wlmin) * scale);
374 if ((wlmax - wlmin) <= 0) {
376 if (mz == 0) mz = 0.1;
383 if (
gPad->GetLogz()) {
392 if (ndivz == 0)
return;
394 Int_t theColor, color;
395 Double_t scale = ndivz / (wlmax - wlmin);
396 for (
Int_t i = 0; i < ndivz; i++) {
402 if (w1 < wlmin) w1 = wlmin;
412 if (w2 <= wlmin)
continue;
413 y1 = ymin + (w1 - wlmin) * (ymax - ymin) /
ws;
414 y2 = ymin + (w2 - wlmin) * (ymax - ymin) /
ws;
419 color =
Int_t(0.01 + (w1 - wlmin) * scale);
425 gPad->PaintBox(xmin, y1, xmax, y2);
428 char chopt[6] =
"S ";
430 strncat(chopt,
"+L", 2);
433 strncat(chopt,
"N", 1);
435 if (
gPad->GetLogz()) {
438 strncat(chopt,
"G", 1);
451 out <<
" " << std::endl;
459 <<
"," <<
fH->
GetName() <<
");" << std::endl;
462 <<
"," <<
fH->
GetName() <<
");" << std::endl;
Int_t GetLabelFont() const
virtual const char * GetName() const
Returns name of object.
virtual Double_t GetMaximum(Double_t maxval=FLT_MAX) const
Return maximum value smaller than maxval of bins in the range, unless the value has been overridden b...
Int_t GetBinColor(Int_t i, Int_t j)
Returns the color index of the bin (i,j).
virtual void SetMaximum(Double_t maximum=-1111)
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
void Copy(TObject &palette) const
Copy a palette to a palette.
R__EXTERN TStyle * gStyle
Float_t GetLabelSize() const
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
Double_t fY2
Y of 2nd point.
virtual void SetMinimum(Double_t minimum=-1111)
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
void Copy(TObject &pave) const
Copy this pave to pave.
virtual void ImportAxisAttributes(TAxis *axis)
Internal method to import TAxis attributes to this TGaxis.
Short_t Min(Short_t a, Short_t b)
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
user specified contour levels
virtual Double_t GetContourLevel(Int_t level) const
Return value of contour number level.
bit set when zooming on Y axis
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
A TBox with a bordersize and a shadow option.
virtual void ConvertNDCtoPad()
Convert pave coordinates from NDC to Pad coordinates.
Double_t fY1
Y of 1st point.
virtual Int_t GetDimension() const
virtual Int_t GetContour(Double_t *levels=0)
Return contour values into array levels if pointer levels is non zero.
static const double x2[5]
virtual const char * ClassName() const
Returns name of class to which the object belongs.
Double_t fX1NDC
X1 point in NDC coordinates.
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
Save line attributes as C++ statement(s) on output stream out.
virtual void Modify()
Change current fill area attributes if necessary.
virtual ~TPaletteAxis()
Palette destructor.
Double_t Log10(Double_t x)
Int_t GetColorPalette(Int_t i) const
Return color number i in current palette.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Check if mouse on the axis region.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Check if mouse on the axis region.
virtual Int_t GetNdivisions() const
virtual void SetRange(Int_t first=0, Int_t last=0)
Set the viewing range for the axis from bin first to last.
virtual void PaintAxis(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, Double_t &wmin, Double_t &wmax, Int_t &ndiv, Option_t *chopt="", Double_t gridlength=0, Bool_t drawGridOnly=kFALSE)
Control function to draw an axis.
Class to manage histogram axis.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Double_t fX2
X of 2nd point.
virtual void UnZoom()
Unzoom the palette.
virtual void SaveFillAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
Save fill attributes as C++ statement(s) on output stream out.
Double_t fX1
X of 1st point.
Int_t GetNumberOfColors() const
Return number of colors in the color palette.
virtual Double_t GetMinimum(Double_t minval=-FLT_MAX) const
Return minimum value larger than minval of bins in the range, unless the value has been overridden by...
virtual void SetName(const char *name="")
TPaletteAxis()
Palette default constructor.
Double_t fY2NDC
Y2 point in NDC coordinates.
static const double x1[5]
TPaletteAxis & operator=(const TPaletteAxis &)
Assignment operator.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to a pave.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Double_t fX2NDC
X2 point in NDC coordinates.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
TString fName
pointer to parent histogram
Mother of all ROOT objects.
you should not use this method at all Int_t Int_t z
Float_t GetTitleOffset() const
virtual Int_t GetMinimumBin() const
Return location of bin with minimum value in the range.
Int_t GetValueColor(Double_t zc)
Returns the color index of the given z value.
Float_t GetLabelOffset() const
Double_t fY1NDC
Y1 point in NDC coordinates.
virtual void Paint(Option_t *option="")
Paint the palette.
TString fOption
Pave style.
The palette painting class.
virtual Int_t GetMaximumBin() const
Return location of bin with maximum value in the range.
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Displays the z value corresponding to cursor position py.
Int_t GetLabelColor() const
Float_t GetTitleSize() const