Ñò
8”tJc @ s5 d Z d d k l Z d d k Z d d k l Z l Z d d k l Z l
Z
l Z d d k l
Z
l Z d d k l Z d d k l Z d d k l Z l Z d d
k l Z d d k l Z d d k l Z l Z d d
k l Z d d k l Z d Z! d e f d „ ƒ YZ d „ Z" d e f d „ ƒ YZ# d S( s§
An agg http://antigrain.com/ backend
Features that are implemented
* capstyles and join styles
* dashes
* linewidth
* lines, rectangles, ellipses
* clipping to a rectangle
* output to RGBA and PNG
* alpha blending
* DPI scaling properly - everything scales properly (dashes, linewidths, etc)
* draw polygon
* freetype2 w/ ft2font
TODO:
* allow save to file handle
* integrate screen dpi w/ ppi and text
iÿÿÿÿ( t divisionN( t verboset rcParams( t RendererBaset FigureManagerBaset FigureCanvasBase( t is_string_liket maxdict( t Figure( t findfont( t FT2Fontt LOAD_FORCE_AUTOHINT( t MathTextParser( t Path( t Bboxt BboxBase( t RendererAgg( t _pngs v2.2R c B s¤ e Z d Z d Z d „ Z d d „ Z d „ Z d „ Z d „ Z d „ Z
d „ Z d „ Z d
„ Z
d „ Z d „ Z d
„ Z d „ Z d „ Z d d d „ Z RS( s
The renderer handles all the drawing primitives using a graphics
context instance that controls the colors/styles
i c C sû t i | ƒ t d ƒ | _ t d ƒ | _ | | _ | | _ | | _ t t | ƒ t | ƒ | d t
ƒ| _ | i i | _ | i i
| _
| i i | _ | i i | _ | i i | _ | i i | _ t d ƒ | _ t i d d | i | i ƒ | _ d S( Ni2 t debugt Aggi ( R t __init__R t texdt _fontdt dpit widtht heightt _RendererAggt intt Falset _renderert draw_markerst draw_path_collectiont draw_quad_mesht
draw_imaget copy_from_bboxt tostring_rgba_minimizedR t mathtext_parserR t from_boundst bbox( t selfR R R ( ( sE /usr/lib64/python2.6/site-packages/matplotlib/backends/backend_agg.pyR 1 s
'!c C sŒ t d } | i i d } | d j oH| | j o;| i o1| d j o$| i ƒ d j ot i | t | ƒ ƒ } t t i | | ƒ ƒ } t i
d | | ƒ } t i | ƒ }
| d d |
d *| |
d