I am trying to create a graph and save it as an image. I am required to use ROOT. I created the graph with
TGraph graph = TGraph(xvect, yvect);
but now I'm stuck on how to get that saved as a png (or other image format). I'm using a linux machine if that makes a difference. Also, if anyone knows link to the documentation that describes the method for writing the graph to an image file, I could figure it out myself from there, but I have been unsuccessful in finding that in the documentation thus far.