Hello Daniel, The text clipping in PS output is a tricky problem, in particular for the axis labels. What you see now is the result of a change we did in TPad::PaintText because the previous version was not satisfactory either. In the previous version, if a text was outside the Pad its position was set to the limit of the Pad. So the text position was changed. For example in your macro the label 10000 was shifted on the right. But even worst, some text completely outside the Pad on the screen appeared in the PostScript File ! This was very annoying when one would like to have several Pads next to each other with no labels. The output was fine on the screen (no labels) but the labels were visible on the PostScript output. The bad thing with this approach was that there was no workaround ! Now in TPad::PaintText if a text position is outside the Pad the text is not drawn in the PostScript file. It is true that in some cases like yours the PostScript output is different from what you see on screen, but at least there is a way to go around the problem by defining correct margins. Cheers, Olivier Couet On Thu, 8 Jan 2004, daniel cussol wrote: > Hello Rooters, > I would like first to wish a happy new year to everybody. With the new > year, and the new version of ROOT, I am again facing a PostScript > display problem. I have joint a small script file which shows the > problem (type .x testPostscript.C tu run it). When the left margin is > equal to 0.1 (default value), the uppermost label (10000) is not present > in the EPS file (see c1_3-10-02_1.eps). This problem was not present in > the previous version V3.10.00 (see c1_3-10-00_*.eps files after running > testPostscript.C), even if the labels where not correctly located in the > EPS files. If in version V3.10.02 I change the left margin to 0.03, the > labels are all removed in the EPS file (see c1_3-10-02_2.eps). When I > change now the left margin to 0.2, all labels are present in the EPS > file (see c1_3-10-02_2.eps). This feature is present in versions > V3.10.02 running on RH9 and on AlphaUnix TRU64. Could anybody help to > fix this? > I have noticed that a change of version was often (not always) leading > to changes in the way the PostScript files are generated from > TCanvas::Save(). This is quite annoying since the user is not sure to > recover the same EPS or PS files from the same script or function when > changing the ROOT version. Is there a way to fix this feature? > Thanks in advance for your help. > > -- Org: CERN - European Laboratory for Particle Physics. Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910 E-Mail: Olivier.Couet@cern.ch Phone: +41 22 7676522 WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22 7677155
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET