On Aug 15, 2007, at 11:16 PM, Alan W. Irwin wrote: > On 2007-08-15 21:41-0400 Hazen Babcock wrote: > >> Or should portrait mode simply be a 90 degree rotation of the plot? > > That is part of it as you can see from ps.c, but you also need to > set pls->freeaspect = 1; which acts the same as if the user had > specified > -freeaspect on the command line. > > I suggest you get the -ori option working first (so plotted results > rotate > properly). > > Once -ori 0, -ori 1, -ori 2, etc., work, then for fun try -ori 0.3 > (i.e., > non-integer -ori values). You will find a long-standing PLplot bug > for that > case which doesn't give correct plotted results (the rectangular > viewport > gets sheared into a parallogram) for non-integer -ori values if the > aspect > ratio is different from unity. Since the problem disappears for a > unity > aspect ratio, I think the x length is being taken rather then the > appropriate y length or vice versa somewhere deep in the rotation > code. But > nobody has ever been able to track down the incorrect logic (which > is, of > course, a very low priority since integer -ori values are the ones > that tend > to be used). > > Once -ori works for integer values, then you should confirm that > the -a > option works as well. In other words, your device should give correct > results for different aspect ratios passed to the device from the core > PLplot library. After that confirmation, portrait mode should be a > snap > since pls->freeaspect = 1 tells the PLplot core library to adjust > the aspect > ratio appropriately (i.e., tall and skinny) for portrait mode. > > I hope I have clarified things for you.
Ok. My latest commit may have gotten this all sorted out. I'm a little puzzled why the PLplot library doesn't just pass the driver the right transform matrix for the new orientation since it is going to the effort of rotating everything else. -Hazen ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel