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.


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
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to