Hi! So, I’m new to root, and I’m trying to get root to display a graph using the macro
void graph(){
gROOT->SetStyle("Plain");
TF1 f1("f1","sin(x)/x",0.,10.);
f1.Draw();
}
but every time I run the macro, the canvas shows up empty. I can use the commands at the root prompt and get it to display the graph, but not from a macro. Can anyone help? I’m trying to run Root 6.16 on a windows 10 machine. Thanks!