Hi Mark,

On 18.09.2009, at 10:21, Mark de Wever wrote:

> Hi,
>
> I've been working a bit on the extcairo driver to automatically  
> detect the size of the drawing area. (I already have something  
> working, but it needs more work before posting it here.) While  
> working on it I ran into a question about the geometry parameter.
>
> The attached patch shows the modification I did to try to resize the  
> plot area and move the location of its origin in that test. The  
> resizing works, but the modification to the origin doesn't. It also  
> seems the origin is undocumented in the plplot documentation, so I  
> wonder whether it's supposed to work or not.

AFAIK, should these parameters change the size of the plot area in a  
window (and therefore the size of the window) and the position of the  
window. At least the xwin driver implemented it that way, and I did  
the same for the wxWidgets driver. Other drivers may ignore position  
parameters.

Regards,
Werner
>
>
> Regards,
> Mark de Wever
>
> PS: I switched to git-svn so the patch looks slightly different from  
> the normal svn patches, but should still apply when using -p1  
> instead of -p0.
> diff --git a/examples/c/ext-cairo-test.c b/examples/c/ext-cairo-test.c
> index 96e6265..d362682 100644
> --- a/examples/c/ext-cairo-test.c
> +++ b/examples/c/ext-cairo-test.c
> @@ -14,6 +14,7 @@ int main(int argc, char *argv[])
>    cairoContext = cairo_create(cairoSurface);
>
>    plsdev("extcairo");
> +   plsetopt("geometry", "360x270+180+135");
>    plinit();
>    pl_cmd(PLESC_DEVINIT, cairoContext);
>    plenv(0.0, 1.0, 0.0, 1.0, 1, 0);
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry® Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart  
> your
> developing skills, take BlackBerry mobile applications to market and  
> stay
> ahead of the curve. Join us from November 9-12, 2009. Register  
> now!
> http://p.sf.net/sfu/devconf_______________________________________________
> Plplot-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plplot-devel

--
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


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to