179 h->SetDirectory(
nullptr);
193 return h ?
h->GetXaxis() :
nullptr;
203 return h ?
h->GetYaxis() :
nullptr;
213 return h ?
h->GetZaxis() :
nullptr;
235 printf(
"x[%d]=%g, y[%d]=%g", i,
X[i], i, Y[i]);
267 out,
Class(),
"scat",
268 TString::Format(
"%d, %s, %s, %s, %s",
fNpoints,
arr_x.Data(),
arr_y.Data(),
arr_col.Data(), arr_size.
Data()),
276 out <<
" scat->SetMargin(" <<
GetMargin() <<
");\n";
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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.
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 SaveMarkerAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
Save line attributes as C++ statement(s) on output stream out.
Class to manage histogram axis.
TDirectory::TContext keeps track and restore the current directory.
A TGraph is an object made of two arrays X and Y with npoints each.
virtual void ComputeRange(Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax) const
Compute the x/y range of the points in this graph.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a line.
@ kNoStats
Don't draw stats box.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
void SetName(const char *name) override
Change the name of this histogram.
2-D histogram with a float per channel (see TH1 documentation)
void SavePrimitiveNameTitle(std::ostream &out, const char *variable_name)
Save object name and title into the output stream "out".
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
static TString SavePrimitiveArray(std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Bool_t empty_line=kFALSE)
Save array in the output stream "out".
static void SavePrimitiveConstructor(std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
Save object constructor in the output stream "out".
A TScatter is able to draw four variables scatter plot on a single plot.
TAxis * GetXaxis() const
Get the scatter's x axis.
TGraph * GetGraph() const
Get the graph holding X and Y positions.
Int_t fMaxSize
!Current dimension of arrays fX and fY
Double_t GetMaxMarkerSize() const
Get the largest marker size used to paint the markers.
TAxis * GetYaxis() const
Get the scatter's y axis.
Double_t fMaxMarkerSize
Largest marker size used to paint the markers.
void Print(Option_t *chopt="") const override
Print graph and errors values.
void Paint(Option_t *chopt="") override
Paint this scatter plot with its current attributes.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
TGraph * fGraph
Pointer to graph holding X and Y positions.
TScatter()
TScatter default constructor.
TH2F * GetHistogram() const
Get the graph histogram used for drawing axis.
Double_t * fColor
[fNpoints] array of colors
TAxis * GetZaxis() const
Get the scatter's z axis.
~TScatter() override
TScatter default destructor.
void SetMargin(Double_t)
Set the margin around the plot in %.
Double_t GetMinMarkerSize() const
Get the smallest marker size used to paint the markers.
Double_t * fSize
[fNpoints] array of marker sizes
Double_t fMargin
Margin around the plot in %.
Double_t GetMargin() const
Set the margin around the plot in %.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a scatter plot.
Double_t fMinMarkerSize
Smallest marker size used to paint the markers.
Int_t fNpoints
Number of points <= fMaxSize.
TH2F * fHistogram
Pointer to histogram used for drawing axis.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
TString & ReplaceSpecialCppChars()
Find special characters which are typically used in printf() calls and replace them by appropriate es...
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Abstract interface to a histogram painter.
static TVirtualGraphPainter * GetPainter()
Static function returning a pointer to the current graph painter.