# Draw() command does not work

**URL:** <https://root-forum.cern.ch/t/draw-command-does-not-work/57392>\
**Category:** Newbie\
**Tags:** graphics, root\
**Created:** [December 4, 2023, 11:12pm UTC](https://root-forum.cern.ch/t/draw-command-does-not-work/57392 "2023-12-04T23:12:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gorgon](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gorgon/32/35198_2.png) [@Gorgon](https://root-forum.cern.ch/u/Gorgon)\
**Post date:** [December 4, 2023, 11:12pm UTC](https://root-forum.cern.ch/t/draw-command-does-not-work/57392/1 "2023-12-04T23:12:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [December 5, 2023, 4:31am UTC](https://root-forum.cern.ch/t/draw-command-does-not-work/57392/2 "2023-12-05T04:31:20Z")

</div>

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).
