Plot root macro in SWAN console

_ROOT Version: 6.28/00
_Platform: SWAN


I tried to execute the following in SWAN console:

root [0] TF1 f1("f1","sin(x)/x",0.,10.);
root [1] f1.Draw();

And I get:

Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1

I tried already:

gPad->Draw()

and

c1.Draw()

and

ROOT.gPad.Draw()

How can I see the plot I have created? Would somebody be so kind and help me find it?

Hi Marta,

Sorry, I misread what you wrote! You’re probably using the console / terminal in SWAN? That doesn’t have graphics. Instead please open a new Notebook (Python or C++).

Axel

1 Like

Thank you a lot. I copy that! Have a good day!