Opening the graph window in root


root [0] TF1 f1(“func1”,“x”,0,10)
(TF1 &) Name: func1 Title: x
root [1] f1.Draw()
Info in TCanvas::MakeDefCanvas>: created default TCanvas with name c1
root [2]

Im trying to get started with ROOT. Im using bash, with ubuntu on WSL.
I tried to open a graph but nothing happens when i type that code.

ROOT Version: 6.32.02
Platform: Ubuntu on WSL
Compiler: cmake?


You also have to install an X server (e.g. VcXsrv) and run Xlaunch before opening the Ubuntu window. See here for configuration:

An alternative is to install ROOT directly on Windows, then you do not need to care about a WSL / X server, etc.

Can I use Xming, and if I do how do I connect the X server to root

It should be very similar, if not the same configuration as for VcXsrv; just try it and if it’s not the same, check the Xming documentation for the equivalent features.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.