SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] Experimental overlapping-prevention on the transforms branch

From: Michael D. <md...@st...> - 2007年12月05日 16:32:52
Michael Droettboom wrote:
> Darren Dale wrote:
>>> One other problem to be aware of in this area: usetex does not support
>>> rotated text, so autofmt_xdate and related tricks will still not work
>>> until usetex supports arbitrary rotations. One thing that has been on
>>> my wish list is to expose the agg image functionality a little better
>>> to make things like rotating the ft2font pixel buffer easier.
>> I mentioned the usetex limitation a while back on mpl-dev, the post was 
>> titled "arbitrary rotation of images".
> 
> Between 0.90 and 0.91, the Agg backend grew a "draw_text_image" method, 
> which can draw an image at an arbitrary angle. It is hardcoded to take 
> the inverted greyscale images generated by FT2Font, but it should 
> provide a roadmap as to how to handle the rgba images used by the usetex 
> machinery.
Usetex now supports arbitrary angles with the Agg backend. It grabs 
only the greyscale part of the usetex image (which isn't new -- usetex 
has always thrown away any color coming from (La)TeX), and then uses 
draw_text_image to do the drawing. (draw_image continues to not support 
rotation, but that is probably best done elsewhere anyway, if the need 
ever arises).
Cheers,
Mike
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /