11 #include "KVNumberList.h"
130 gPad->SetFillColor(0);
131 gPad->SetBorderMode(0);
132 gPad->SetBorderSize(2);
133 gPad->SetFrameBorderMode(0);
134 gPad->SetFrameLineColor(0);
135 gPad->SetFrameBorderMode(0);
149 if ((!fNDivX) && fUseX) fDisplayDivX = GetBinArray(fNDivX,
kTRUE);
150 if ((!fNDivY) && fUseY) fDisplayDivY = GetBinArray(fNDivY,
kFALSE);
196 if (fUseX) axis =
new KVGaxis(xstr,
ymin, xstp,
ymin, fNDivX, fDisplayDivX);
197 else axis =
new TGaxis(xstr,
ymin, xstp,
ymin, xstr, xstp, fNDivX);
203 if (fUseY) axis =
new KVGaxis(
xmin, ystr,
xmin, ystp, fNDivY, fDisplayDivY);
204 else axis =
new TGaxis(
xmin, ystr,
xmin, ystp, ystr, ystp, fNDivY);
217 void KVGraph::HideAxis(
TAxis* ax)
232 if (xAxis)
x =
GetX();
236 for (
Int_t i = 0; i <
GetN(); i++) nb.
Add((x[i]) * 100);
242 while (!nb.
End()) bins[i++] = (nb.
Next()) / 100.;
257 fUseX = fUseY =
kTRUE;
Extension of TGaxis class optimised for KVGraph visualisation.
Extension of TGraph class with new draw option.
void Draw(Option_t *chopt="") override
KVGraph()
Default constructor.
virtual ~KVGraph()
Destructor.
Strings used to represent a set of ranges of values.
void Add(Int_t)
Add value 'n' to the list.
virtual void SetAxisColor(Color_t color=1, Float_t alpha=1.)
virtual void SetTitleSize(Float_t size=0.04)
virtual void SetTickLength(Float_t length=0.03)
virtual void SetLabelColor(Color_t color=1, Float_t alpha=1.)
virtual void ImportAxisAttributes(TAxis *axis)
void Draw(Option_t *chopt="") override
virtual void Draw(Option_t *option="")
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Double_t Min(Double_t a, Double_t b)
T MinElement(Long64_t n, const T *a)
T MaxElement(Long64_t n, const T *a)
Double_t Max(Double_t a, Double_t b)