I am trying to create a graph and save it as an image. I have to use ROOT. I created a graph with
TGraph graph = TGraph(xvect, yvect);
but now I am fixated on how to get this as a png (or other image format). I use a Linux machine if that matters. Also, if anyone knows a link to the documentation describing the method of writing the graph to an image file, I could figure it out myself from there, but I have not been able to find it in the documentation so far.
source share