Hi,

The calculation of the aspect ratio doesn't take the rotation angle of the plot into account. This patch solves the aspect ratio for 90 and 270 degrees. Using other rotation angles still give odd results, should I file a bug report for this issue?

Regards,
Mark de Wever
Index: plcore.c
===================================================================
--- plcore.c    (revision 10147)
+++ plcore.c    (working copy)
@@ -1427,7 +1427,12 @@
 
     lx = plsc->phyxlen / plsc->xpmm;
     ly = plsc->phyylen / plsc->ypmm;
+
+    if ( (int)plsc->diorot % 2 ) {
+    aspdev = ly / lx;
+    } else {
     aspdev = lx / ly;
+    }
 
     if (plsc->difilt & PLDI_ORI)
        aspect = plsc->aspori;
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to