Is there a way to save a TGraphAssymError canvas without lines between the markers? Right now I draw my plots using:
graph -> Draw("AP"); // graph is a pointer to a TGraphAssymError objectt
An example output canvas is:
(Maybe it is the saving of the canvas to a TFile that causes the problem?)
Okay, it seems that the problem was in me saving the graph instead of the canvas. Please delete this question
If this command gives you the attached plot there is a problem … is it really the case ? with “AP” option you should be see the line connecting the points.
I think this is a misunderstanding of what
SaveAs does. It does not save the draw options.
I believe this is the steps taken that were taken:
TGraphAsymmErrors *g = new TGraphAsymmErrors(4);
TCanvas *c = new TCanvas("c","");
TFile *f = new TFile("test.root");
f->Get("Graph")->Draw(); //Uses default not AP
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.