Hans, You have identified an issue here with the current geometry handling by plplot. Firstly, it assumes that offsets of 0,0 mean no offset has been set so you can't use +0+0. Secondly, the code always looks for +, and so negative offsets can't be specified. I _think_ things like +-10+0 should work, but it doesn't seem to. Only xwin and wingcc actually use these offsets, so it seems a bit perverse not to support the usual X options.
Andrew On Tue, Feb 10, 2009 at 08:15:14AM +0100, hans.rijn...@shell.com wrote: > Andrew, > > No problems in the code, but I think a small problem with the driver ? If I > specify : 800x800+0+0, then only the size is taken into account and not the > position (Top left). If I use : 800x800+10+10, then the position is as I > expect. Also 800x800+1+1 works. > > Probably value le 0 are not honoured correctly (-0+0, being top right, also > not working). > > But I am happy that the positive values work fine. > > Thanks, > Hans > > -----Original Message----- > From: Andrew Ross [mailto:andrewr...@users.sourceforge.net] > Sent: Monday, February 09, 2009 23:24 > To: Rijneke, Hans H SIEP-EPT-RIS > Cc: plplot-general@lists.sourceforge.net > Subject: Re: [Plplot-general] geometry option > > > > Have you checked out example 14? This demonstrates how to do exactly > what you want. You need to make sure you call plsetopt before you call > plinit. Does example 14 work for you, including positioning the two > windows correctly? > > Andrew > > > On Mon, Feb 09, 2009 at 07:33:22PM +0100, hans.rijn...@shell.com wrote: > > Hez, > > > > Ok, did not know there was a difference. But this is what I do. I set an > > environment variable for the geometry, get it in my code and then feed it > > to PLSETOPT like : > > > > CALL PLSETOPT('geometry',GEOM(1:LGEOM)) > > > > Where GEOM contains the geometry string as I mentioned. > > > > Did you get it to work to positon the window with the +0+0 (or something > > else) in the geometry string ? > > > > Regards, > > Hans > > > > -----Original Message----- > > From: hca...@mulethief.com [mailto:hca...@mulethief.com]on Behalf Of > > Hezekiah M. Carty > > Sent: Monday, February 09, 2009 4:41 PM > > To: Rijneke, Hans H SIEP-EPT-RIS > > Cc: plplot-general@lists.sourceforge.net > > Subject: Re: [Plplot-general] geometry option > > > > > > On Mon, Feb 9, 2009 at 9:04 AM, <hans.rijn...@shell.com> wrote: > > > I tried to set the geometry option with PLSETOPT and I notice that the > > > size > > > is taken from this option. However, I cannot make it listen to the > > > position > > > part of the geometry specification (e.g. -geom 1200x900+0+0), which I > > > think > > > should position the window in the top left of the screen. > > > > > > Is this implemented or am I doing something wrong ? > > > > > > I am using the "xwin" driver on Linux with Plplot version 5.9.2. > > > > I think you need to use "geometry" rather than "geom" as the command > > line (or plsetopt) flag. This works properly for me using a slightly > > post-5.9.2 snapshot of PLplot under Gnome on Linux using the xwin > > driver. > > > > Hope this helps, > > > > Hez > > > > -- > > Hezekiah M. Carty > > Graduate Research Assistant > > University of Maryland > > Department of Atmospheric and Oceanic Science > > > > ------------------------------------------------------------------------------ > > Create and Deploy Rich Internet Apps outside the browser with > > Adobe(R)AIR(TM) > > software. With Adobe AIR, Ajax developers can use existing skills and code > > to > > build responsive, highly engaging applications that combine the power of > > local > > resources and data with the reach of the web. Download the Adobe AIR SDK and > > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > > _______________________________________________ > > Plplot-general mailing list > > Plplot-general@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/plplot-general > > > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > Plplot-general mailing list > Plplot-general@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-general > ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general