On 2009-07-18 19:36-0400 Hazen Babcock wrote:

> Alan W. Irwin wrote:
>> 
>> Hazen, this cairo bug has to do with clipping of the subpage limits at the
>> positions of the _original_ subpages rather than the rotated ones. To
>> convince yourself of that try the series
>> 
>> ./x01 -dev xcairo -ori 0.0
>> ./x01 -dev xcairo -ori 0.05
>> ./x01 -dev xcairo -ori 0.1
>> ./x01 -dev xcairo -ori 0.15
>> ./x01 -dev xcairo -ori 0.2
>> ...
>> ./x01 -dev xcairo -ori 0.5
>
> The text clipping should be sort of fixed as of v10159. By sort of I mean 
> that if you look at -ori 0.5 you can see that the xcairo driver is drawing 
> text in areas where the graphs have been clipped (ie. on the left and right 
> sides). So it seems that there is some additional text clipping information 
> that the driver should be heeding. Any ideas what that might be?

I have no idea why the PLplot core drawing clipping is acting in that
peculiar way (visible offsets to clipping at the left and right borders of
the overall X window) for -ori 0.5.  Even if you try

./x01 -dev xwin -ori 0.5 -a 1 -geometry 800x800

there is a small (but incorrect, IMO) visible clipping offset at the right
and left borders.  And I wouldn't be surprised if there is also a similar
incorrect clipping offset at the top and bottom as well which goes the other
way so you don't see it because it is completely outside the X window.

So I think your current cairo text clipping is correct, and the core drawing
clipping wrong for non-integer -ori values.  I guess we can ascribe this to
yet another strange core effect for non-integer -ori values. Anyhow, the
core and xcairo now agree about clipping for integer ori values which is the
important thing.  So thanks very much for this commit!

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

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