or anything actually useful. (I don’t care … even bmp or tiff is better for me than postscript … PNG, PNM … anything.)
Brand new ROOT user. Love it. One of the coolest things I’ve ever seen. (Okay, I don’t get out much.) A few problems, though.
Running:
W2K w/ SP3
Cygwin_NT-5.0
Root 4.02 17 Dec 2004
I’m using a trivial variant of the tutorial script surfaces.C.
Problem 1:
I’m unable to save a canvas as anything other than eps - either through through scripting with the SaveAs()
method or through the GUI.
When I attempt to save the canvas using:
I get the following error:
Error in : fatal X11 error (connection to server lost?!)
Problem 2:
I can create an EPS file just fine and I can read this eps file with ghostscript; however, for some reason ghostscript chokes when I try to convert this eps to jpeg. (No problem converting eps file which I generate with my own homegrown stuff, but they’re a lot simpler.)
I don’t know that this is a problem with ROOT, per se, but it is a problem for me. In the past, I have generated postscript files from my code, because they are easy for me to understand. I never use the files directly, but convert them immediately to jpeg using gs. They are useless to me as postscript, because for me ps has always been merely an intermediary.
Question:
Is there some other program besides ghostscript that you guys use to view and manipulate the postscript files you generate from ROOT?
Thanks in advance for any assistance,
k
For reference, below is the code I’m using:
[code]
{
//
gROOT->Reset();
c1 = new TCanvas(“c1”,“Magnum Opus”,200,10,900,900);
c1.Divide(3, 3);
c1->SetFillColor(33);
gStyle->SetFrameFillColor(42);
//
// 2D func
TF2 f2 = new TF2(“f2”,"x2 + y2 - x**3 -8x*y**4",-1,1.2,-1.5,1.5);
f2->SetContour(48);
f2->SetFillColor(45);
//
// Fill 9 pads with graph of func increasing in rotation.
for (int i=1; i<=9; i++) {
TPad pad = c1->cd(i);
pad->SetPhi(-100 + i10);
pad->SetLogz();
f2.Draw(“surf4”);
}
c1->SaveAs(“test.gif”);
}[/code]