17#ifndef ROOTUTILS_SCATTERH2_H
18#define ROOTUTILS_SCATTERH2_H
24class TMemberInspector;
87 ScatterH2 (
const char *name,
const char *title,
88 Int_t nbinsx, Axis_t xlow, Axis_t xup,
89 Int_t nbinsy, Axis_t ylow, Axis_t yup);
102 ScatterH2 (
const char *name,
const char *title,
103 Int_t nbinsx,
const Double_t* xbins,
104 Int_t nbinsy, Axis_t ylow, Axis_t yup);
116 ScatterH2 (
const char *name,
const char *title,
117 const TArrayD& xbins,
118 Int_t nbinsy, Axis_t ylow, Axis_t yup);
128 virtual void Paint (Option_t* option =
"");
138 virtual void Reset (Option_t *option =
"");
150 virtual Int_t
Fill (Axis_t
x, Axis_t
y, Stat_t w);
158 virtual Int_t
Fill(Axis_t
x, Axis_t
y);
246 virtual Int_t
Fill(Axis_t,
const char*, Stat_t) {
return -1; }
247 virtual Int_t
Fill(
const char*, Axis_t, Stat_t) {
return -1; }
248 virtual Int_t
Fill(
const char*,
const char*, Stat_t) {
return -1; }
249 Int_t
Fill(Axis_t) {
return -1;}
250 Int_t
Fill(
const char*, Stat_t) {
return -1;}
A 2-D histogram that can draw a proper scatter plot.
ClassDef(RootUtils::ScatterH2, 1)
int m_shadestep
shadestep option.
virtual Int_t Fill(const char *, Axis_t, Stat_t)
virtual void Reset(Option_t *option="")
Standard ROOT reset method.
std::vector< Pair > m_vals
The collection of points that have been plotted.
int shadestep() const
Get the current value of shadestep.
virtual Int_t Fill(Axis_t, const char *, Stat_t)
ScatterH2()
Default constructor.
virtual Int_t Fill(Axis_t x, Axis_t y, Stat_t w)
Standard ROOT fill method.
virtual void Paint(Option_t *option="")
Standard ROOT paint method.
virtual Int_t Fill(const char *, const char *, Stat_t)
ScatterH2 * rescale(const char *name, double xscale, double yscale) const
Return a new plot with all data points multiplied by a constant.
Int_t Fill(const char *, Stat_t)
bool m_scatter
The scatter flag.
bool scatter() const
Get the current value of the scatter flag.
Pair(float x=0, float y=0)