215 printf(
"x[%d]=%g, y[%d]=%g, z[%d]=%g", i,
X[i], i, Y[i], i, Z[i]);
255 out <<
" scat->SetMargin(" <<
GetMargin() <<
");\n";
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
double Double_t
Double 8 bytes.
const char Option_t
Option string (const char)
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.
Graphics object made of three arrays X, Y and Z with the same number of points each.
TH2D * GetHistogram(Option_t *option="")
By default returns a pointer to the Delaunay histogram.
TAxis * GetZaxis() const
Get z axis of the graph.
TAxis * GetYaxis() const
Get y axis of the graph.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Computes distance from point px,py to a graph.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Executes action corresponding to one event.
TAxis * GetXaxis() const
Get x axis of the graph.
static void AddDirectory(Bool_t add=kTRUE)
Sets the flag controlling the automatic add of histograms in memory.
static Bool_t AddDirectoryStatus()
Static function: cannot be inlined on Windows/NT.
2-D histogram with a double per channel (see TH1 documentation)
void SavePrimitiveNameTitle(std::ostream &out, const char *variable_name)
Save object name and title into the output stream "out".
static TString SavePrimitiveVector(std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Bool_t empty_line=kFALSE)
Save array in the output stream "out" as vector.
static void SavePrimitiveDraw(std::ostream &out, const char *variable_name, Option_t *option=nullptr)
Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
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".
void Paint(Option_t *chopt="") override
Paint this scatter plot with its current attributes.
TH2D * GetHistogram() const
Get the graph histogram used for drawing axis.
void SetMargin(Double_t)
Set the margin around the plot in %.
Double_t fMargin
Margin around the plot in %.
TGraph2D * fGraph
Pointer to graph holding X, Y and Z positions.
Double_t fMaxMarkerSize
Largest marker size used to paint the markers.
Double_t GetMaxMarkerSize() const
Get the largest marker size used to paint the markers.
void Print(Option_t *chopt="") const override
Print graph and errors values.
Double_t GetMinMarkerSize() const
Get the smallest marker size used to paint the markers.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py,pz to a scatter plot.
TAxis * GetXaxis() const
Get the scatter's x axis.
~TScatter2D() override
TScatter2D default destructor.
Double_t * fSize
[fNpoints] array of marker sizes
Int_t fNpoints
Number of points of arrays fX, fY and fZ.
TAxis * GetYaxis() const
Get the scatter's y axis.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
Double_t GetMargin() const
Set the margin around the plot in %.
TAxis * GetZaxis() const
Get the scatter's z axis.
TScatter2D()
TScatter2D default constructor.
Double_t fMinMarkerSize
Smallest marker size used to paint the markers.
Double_t * fColor
[fNpoints] array of colors
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
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.