TCanvas:SaveAs strangeness

Dear experts,
I find that if I use TF1::SetLineStyle(9) then the png and gif files generated by TCanvas::SaveAs come out somewhat corrupted, as the attached examples SaveAsQuestion.png,SaveAsQuestion.gif show. I’m also attaching the macro file “SaveAsQuestion.C” that produced these plots. All but the eps files come out corrupted. Am I forgetting some option that would enable a better resolution/quality for the generated png (and gif) files?

SaveAsQuestion.C (288 Bytes)

Which root version are you using ? it works fine for me with the latest one on Mac.

I am using
ROOT 5.34/01 (tags/v5-34-01@45048, Jul 13 2012, 15:31:31 on linux)
CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
on Fedora 17 kernel 3.5.3-1.fc17.i686.PAE #1 SMP

I see the same on Ubuntu.
Can you make a bug report in savannah ? … up=savroot


Actually this bug does not show anymore with the trunk version on ubuntu.
So it has been fixed. No need to make a bug report.

so here I am, year 2012 and I have the same problem as reported in 2003 :slight_smile:

the example from above fails exactly as described.

some info:

Linux 3.2.0-32-generic x86_64 GNU/Linux

$ cat /etc/*-release

$ root-config --version --arch --platform --features
5.34/02 linuxx8664gcc linuxasimage astiff builtin_afterimage builtin_pcre builtin_lzma cintex explicitlink fftw3 gviz genvector memstat minuit2 python reflex shadowpw shared ssl tmva x11 xft thread

libpng12-dev version: 1.2.46-3ubuntu4

thanks for your help.

… you are using 5.34

Isn’t [color=#FF0000]5.34[/color] suposed to be a “Long Term Support” release?

Yes we can consider to put the fix also in 5.34

yes, could you please fix it in some patched version?

I will asap.
Can you meanwhile try the trunk to be sure the trunk works for you ?

V.5.34 is now fixed