From: Michael D. <md...@st...> - 2007-12-05 15:00:02
|
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. Cheers, Mike -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA |