Re: Saving multipad TCanvas in EPS and PDF

From: Vassili Maroussov <Vassili.Maroussov_at_cern.ch>
Date: Tue, 12 Apr 2011 16:11:05 +0200


Dear Oliver,

I'm using ROOT 5.28.00b (checked also with 26.00b and 27.05), but ROOT version isn't a matter: the problem is seen (in all viewers) with the _PS you've sent_. A subtle difference between "white" and "light-gray" may be hard to see on a bad monitor, but if you print PNG and EPS/PS obtained by TCanvas.SaveAs/Print on a real (better B/W) printer it becomes evident. Once more: no any problem if TCanvas isn't divided...

Regards,

Vassili

On 04/12/2011 03:42 PM, Olivier Couet wrote:
> Dear Vassili,
>
> With my root version both the screen output and the PS file appear with a white background for the histo and grey around. Both look like the EPS I send you except for the line width and I gave you the way to tune the line width on PS file. Which ROOT version are you using ?
>
> Cheers,
> O.Couet
>
> -----Original Message-----
> From: Vassili Maroussov
> Sent: Tuesday, April 12, 2011 3:38 PM
> To: Olivier Couet
> Cc: roottalk_at_root.cern.ch
> Subject: Re: [ROOT] Saving multipad TCanvas in EPS and PDF
>
> Dear Oliver,
>
> Please have a closer look: PS (or EPS) file has a light-gray backgroung around the (axis-)frame and white one inside the frame whilst the screen (and PNG) has a uniform light-gray one - easier to see looking at legend which has white backgroung in both cases. Gridlines in PS looking ugly, compare to screen/PNG. I've checked out both on Linux and Windows to make sure that it isn't somehow introduced by the viewer or system libraries.
>
> Regards,
>
> Vassili
>
> P.S. Please excuse my persistence - I wanted to have a nice picture not in a raster format.
>
> On 04/12/2011 11:25 AM, Olivier Couet wrote:
>
>> Dear Vassili,
>> The only difference is the Line Width.
>> Use gStyle->SetLineScalePS() to adjust.
>> The background color is the same for me.
>> Cheers,
>> Olivier
>> -----Original Message-----
>> From: Vassili Maroussov
>> Sent: Tuesday, April 12, 2011 11:18 AM
>> To: Olivier Couet
>> Cc: roottalk_at_root.cern.ch
>> Subject: Re: [ROOT] Saving multipad TCanvas in EPS and PDF
>>
>> Dear Oliver,
>>
>> the histogram line width in the PS file is way much wider then on
>> screen, background color (have a look inside and outsize the frame),
>> shading and gridlines differ as well. What's interesting, this does
>> not happen while saving in EPS/PDF a TCanvas, which isn't divided.
>>
>> Regards,
>>
>> Vassili
>>
>> P.S. BTW, why Y-axis of histogram is changing at the instant of saving?
>>
>> On 04/12/2011 10:13 AM, Olivier Couet wrote:
>>
>>
>>>> For EPS and for PDF formats the result is similarly distorted
>>>>
>>>>
>>>>
>>> With your marco I get the attached PS file which looks the same as
>>> what I see on screen.
>>>
>>> On 4/11/11 6:03 PM, "Vassili Maroussov"<Vassili.Maroussov_at_cern.ch> wrote:
>>>
>>>
>>>
>>>
>>>> For EPS and for PDF formats the result is similarly distorted
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
Received on Tue Apr 12 2011 - 16:11:11 CEST

This archive was generated by hypermail 2.2.0 : Tue Apr 12 2011 - 17:50:01 CEST