27 y[i] = 10*
sin(
x[i]+0.2);
28 printf(
" i %i %f %f \n",i,
x[i],
y[i]);
38 gr1->
SetTitle(
"Graph from available data");
55 std::ifstream file(
gROOT->GetTutorialDir() +
"/visualisation/graphs/data_basic.txt");
58 for (
Int_t i = 0; i <
m; i++) {
60 printf(
" i %i %f %f \n",i,w[i],z[i]);
70 gr2->
SetTitle(
"Graph from data file");
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
void Draw(Option_t *chopt="") override
Default Draw method for all objects.
void SetTitle(const char *title="") override
Set the title of the TNamed.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
RVec< PromoteType< T > > sin(const RVec< T > &v)