13 TCanvas *
c1 =
new TCanvas(
"c1",
"Exclusion graphs examples", 200, 10, 600, 400);
20 Double_t xvalues1[
n], xvalues2[
n], xvalues3[
n], yvalues1[
n], yvalues2[
n], yvalues3[
n];
21 for (
Int_t i = 0; i <
n; i++) {
22 xvalues1[i] = i * 0.1;
23 xvalues2[i] = xvalues1[i];
24 xvalues3[i] = xvalues1[i] + .5;
25 yvalues1[i] = 10 *
sin(xvalues1[i]);
26 yvalues2[i] = 10 *
cos(xvalues1[i]);
27 yvalues3[i] = 10 *
sin(xvalues1[i]) - 2;
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
A TGraph is an object made of two arrays X and Y with npoints each.
A TMultiGraph is a collection of TGraph (or derived) objects.
virtual void Add(TGraph *graph, Option_t *chopt="")
Add a new graph to the list of graphs.
void Draw(Option_t *chopt="") override
Draw this multigraph with its current attributes.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
RVec< PromoteType< T > > cos(const RVec< T > &v)
RVec< PromoteType< T > > sin(const RVec< T > &v)