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()) {
303 snprintf(info, 64,
"(z=%g)", z);
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;
Float_t GetLabelOffset() const
Int_t GetBinColor(Int_t i, Int_t j)
Returns the color index of the bin (i,j).
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
virtual void SetMaximum(Double_t maximum=-1111)
Int_t GetLabelFont() const
virtual Int_t GetMaximumBin() const
Return location of bin with maximum value in the range.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
R__EXTERN TStyle * gStyle
virtual Int_t GetDimension() const
Float_t GetTitleOffset() const
virtual void SetMinimum(Double_t minimum=-1111)
Int_t GetLabelColor() const
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)
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Displays the z value corresponding to cursor position py.
Float_t GetTitleSize() const
void Copy(TObject &pave) const
Copy this pave to pave.
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.
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 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 GetNumberOfColors() const
Return number of colors in the color 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 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)
virtual const char * ClassName() const
Returns name of class to which the object belongs.
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.
Bool_t TestBit(UInt_t f) const
Double_t fX1
tool tip associated with box
virtual const char * GetName() const
Returns name of object.
Int_t GetColorPalette(Int_t i) const
Return color number i in current palette.
virtual void SetName(const char *name="")
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.
virtual Int_t GetNdivisions() const
void Copy(TObject &palette) const
Copy a palette to a palette.
virtual Int_t GetMinimumBin() const
Return location of bin with minimum value in the range.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Mother of all ROOT objects.
Float_t GetLabelSize() const
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Int_t GetValueColor(Double_t zc)
Returns the color index of the given z value.
virtual void Paint(Option_t *option="")
Paint the palette.
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...
The palette painting class.
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 Double_t GetContourLevel(Int_t level) const
Return value of contour number level use GetContour to return the array of all contour levels...