Hallo Werner,

Thanks for your solution, it is working better with plspage(). Somehow I did 
not notice that function when browsing through the different methods of 
setting up the plot window... But maybe the documentation could be altered 
slightly:

plspage (xp, yp, xleng, yleng, xoff, yoff);

xp (PLFLT, input) Number of pixels, x. 
yp (PLFLT, input) Number of pixels, y. 
xleng (PLINT , input) Page length, x. 
yleng (PLINT, input) Page length, y. 
xoff (PLINT, input) Page offset, x. 
yoff (PLINT, input) Page offset, y.

The first two should maybe not say "Number of pixels", but something like

"Pixels per inch, x"

and maybe the variable names should be xdpi and ydpi (not really important). 
The second pair could be 

"Number of pixels, x"    or    "Page length (pixels), x"

The last pair could maybe be something like

"Page offset (pixels), x".

Best regards,
Torquil Sørensen

On Monday 04 February 2008, Werner Smekal wrote:
> Hi Torquil,
>
> as Alan I can also reproduce this behaviour. I scanned through the
> code, but it needs some time to find out what's going on. Anyway, a
> workaround for this problem is, that you set the common plplot options
> not via plsetopt(), but via plplot commands directly. E.g. if you set
> the geometry option actually plspage (xdpi, ydpi, xwid, ywid, xoff,
> yoff); is called. so -geometry 400x300 would ne
> plspage(0,0,400,300,0,0);. Have a look at src/plargs.c for other
> options. If you need to set more than one driver options you can call
> e.g plsetopt( "drvopt", "8bit,smoothlines"). Therefore you should be
> able to circumvent this problem you mentioned.
>
> HTH,
> Werner
>
> On 03.02.2008, at 21:48, Torquil Macdonald Sørensen wrote:
> > Hello, I have found that the order in which I call plsetopt()
> > matters. Using
> > plsetopt("drvopt","8bit") before plsetopt("geometry","800x600")
> > makes PLplot
> > forget about the 8bit option and use 24bit instead (I use the png
> > driver). I
> > have checked the png-files using pnginfoto determine if they are
> > 8bit or
> > 24bit. Setting "geometry" before "8bit" works fine. On the command
> > line it
> > works either way.
> >
> > Best regards,
> > Torquil Sørensen
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Plplot-general mailing list
> > Plplot-general@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/plplot-general
>
> --
> Dr. Werner Smekal
> Institut fuer Allgemeine Physik
> Technische Universitaet Wien
> Wiedner Hauptstr 8-10
> A-1040 Wien
> Austria
>
> email: [EMAIL PROTECTED]
> web: http://www.iap.tuwien.ac.at/~smekal
> phone: +43-(0)1-58801-13463 (office), +43-(0)1-58801-13469 (laboratory)
> fax: +43-(0)1-58801-13499
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Plplot-general mailing list
> Plplot-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-general

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to