Re: Saving multipad TCanvas in EPS and PDF

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


Dear Oliver,

let's agree for the moment that with the original C_SingleEcm.C difference in PNG and PS/EPS backgrounds is evident in a hardcopy, - especially on a B/W printer. I do not expect that MacOS and Fedora is going to produce it in a different way :)

Regards,

Vassili

On 04/12/2011 04:19 PM, Olivier Couet wrote:
> Dear Vassili,
>
> I cannot modify your macro to see if Divide makes a difference.
> It was produced with SaveAs and the Divide command is lost.
> Do you have the original macro ?
>
> The difference must be really subtle because I do not see a difference
> in the histogram background on my MacBook Pro, which I think has a good monitor:
> It is white both on screen and on PS. As I said the only difference is with the line
> width and you now know how to fix it.
> I will have new glasses soon .. maybe it will help...
>
> Cheers,
> OC
>
> -----Original Message-----
> From: Vassili Maroussov
> Sent: Tuesday, April 12, 2011 4:11 PM
> To: Olivier Couet
> Cc: roottalk_at_root.cern.ch
> Subject: Re: [ROOT] Saving multipad TCanvas in EPS and PDF
>
> 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:29:26 CEST

This archive was generated by hypermail 2.2.0 : Wed Apr 13 2011 - 05:50:01 CEST