{
TGraph *g[3];
Double_t x[10] = {0,1,2,3,4,5,6,7,8,9};
Double_t y[10] = {1,2,3,4,5,5,4,3,2,1};
TMultiGraph *mg = new TMultiGraph();
for (int i=0; i<3; i++) {
g[i] = new TGraph(10, x, y);
g[i]->SetLineStyle(i+2);
g[i]->SetLineColor(i+2);
for (int j=0; j<10; j++) y[j] = y[j]-1;
mg->Add(g[i]);
}
mg->Draw("AL");
}
I get the attached picture (3 different dashes) … which ROOT version are you using ? on which platform ?
Writing the canvas as a .ps, all the different styles are apparent, but NOT when saved as either .png or .gif, or when viewed through Exceed (all line styles revert to solid or dashed).
Thanks for your help, I don’t know how to remedy the problem in Exceed or or the dodgy formats, but atleast I can get a decent output now.