Draw() command does not work

Hi There!

When I start root and type these two lines:
TF1 f1(“f1”,“sin(x)/x”,0.,10.);
fi.Draw();

I get the following message:
< TCanvas::MakeDefCanvas>: created default TCanvas with name c1

But it doesnt opan anything. My tutor said to add -XY to the command line when I ssh to my account then open root (it didnt work), later on to install X-Win32 21 and open up root inside that (it worked).

Is there any way, that I can make this work inside commandline?

ROOT Version: 6.24/08
Using: Windows 10

You cannot see a TCanvas, or “graphics” apps/windows in general, inside a command prompt window or terminal. To see those remotely, you need an X server (such as X-Win32) running on the client side (Windows, in this case), apart from the corresponding capability on the remote server (which is your case, since it worked with X-Win32).

1 Like