Re: Use of TPostScript...

Rene Brun (Rene.Brun@cern.ch)
Sat, 26 Jul 1997 09:23:34 +0200


Robert Casties wrote:
>
> Hello!
>
> I have some questions (and perhaps enhancement requests) concerning
> production of postscript output.
>
> I want to have several histograms on a postscript page that I do not want
> to have in one canvas on the screen. I thought the Nx Ny divisions in
> TPostScipt would do the resizing and placing automatically but all
> histograms come out at full paper width. How can I set the size of a
> histogram (canvas) for postscript output? (except using the mouse on the
> screen)
>

To set the size of the Postscript page do
gStyle->SetPaperSize(xsize,ysize);

The Nx,Ny mechanism in the PostScript class is currently
not operational. One of the many things still to be implemented.

> The behaviour I imagined is an independent style for screen and paper
> output. The paper output should by default scale objects automatically to
> fit in the raster. It should use black on white (I can stand greyish
> backgrounds on the screen but not on paper output -- a matter of taste
> after all) and it should print some headers and footers with pagenumbers.
> All features customizable of course :-)
>
> I think since one works rather differently with screen and paper output
> and layout styles are (much) different there should be a different default
> behaviour.

Agreed. Currently we support gStyle->SetFillColor(0) for the screen only.
The same option should be activated for Postscript output.

Rene Brun