Maxim, When you define a canvas size (50x50 and 200x200 in your case), it includes the window decoration puts by the window manager around the graphics part. For large windows it can be consider as negligible but for small windows (like 50x50) it becomes very clear that the graphics area is not square. Using the UNIX command xwininfo you can check that the whole window is 50x50. So if you want a graphics area being 50x50 pixels you should take into account the window decoration around (which depends on your window manager setup). Cheers, Olivier On Thu, 26 Feb 2004, Maxim Nikulin wrote: > Dear Olivier, > > You wrote: > > > >>Pixels are good units for plots on a screen. What should I do if I wish > >>just 12 pt font size in the PostScript file? > > > > The text you'll see on screen (in pixel size) will be exactly the same in > > the PostScript file. But I cannot guarantee that if you fix the size to 12 > > pixels, that will correspond exactly, for instance, to a 12pt size in a > > Word document ... > > The problem is to get exact sizes on a PostScript plot. For example, > what should I do if I want a 5x5 cm picture containing a 12 pt label. > The script attached sets 5x5 cm paper size, 12 px font and draws a TText > in 50x50 px and 200x200 px canvases, prints their to .eps files. I get > plots having different height/width ratio (of course != 1). > > -- 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:06 MET