|
| 1 | +API changes at 0.42 |
| 2 | + |
| 3 | + * Refactoring AxisText to be backend independent. Text drawing and |
| 4 | + get_window_extent functionality will be moved to the Renderer. |
| 5 | + |
| 6 | + * backend_bases.AxisTextBase is now text.Text module |
| 7 | + |
| 8 | + * All the erase and reset functionality removed frmo AxisText - not |
| 9 | + needed with double buffered drawing. Ditto with state change. |
| 10 | + Text instances have a get_prop_tup method that returns a hashable |
| 11 | + tuple of text properties which you can use to see if text props |
| 12 | + have changed, eg by caching a font or layout instance in a dict |
| 13 | + with the prop tup as a key -- see RendererGTK.get_pango_layout in |
| 14 | + backend_gtk for an example. |
| 15 | + |
| 16 | + * Text._get_xy_display renamed Text.get_xy_display |
| 17 | + |
| 18 | + * Artist set_renderer and wash_brushes methods removed |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +API changes at 0.40 |
| 26 | + |
| 27 | +- Artist |
| 28 | + * __init__ takes a DPI instance and a Bound2D instance which is |
| 29 | + the bounding box of the artist in display coords |
| 30 | + * get_window_extent returns a Bound2D instance |
| 31 | + * set_size is removed; replaced by bbox and dpi |
| 32 | + * the clip_gc method is removed. Artists now clip themselves with |
| 33 | + their box |
| 34 | + * added _clipOn boolean attribute. If True, gc clip to bbox. |
| 35 | + |
| 36 | +- AxisTextBase |
| 37 | + * Initialized with a transx, transy which are Transform instances |
| 38 | + * set_drawing_area removed |
| 39 | + * get_left_right and get_top_bottom are replaced by get_window_extent |
| 40 | + |
| 41 | +- Line2D Patches now take transx, transy |
| 42 | + * Initialized with a transx, transy which are Transform instances |
| 43 | + |
| 44 | +- Patches |
| 45 | + * Initialized with a transx, transy which are Transform instances |
| 46 | + |
| 47 | +- FigureBase attributes dpi is a DPI intance rather than scalar and |
| 48 | + new attribute bbox is a Bound2D in display coords, and I got rid of |
| 49 | + the left, width, height, etc... attributes. These are now |
| 50 | + accessible as, for example, bbox.x.min is left, bbox.x.interval() is |
| 51 | + width, bbox.y.max is top, etc... |
| 52 | + |
| 53 | +- GcfBase attribute pagesize renamed to figsize |
| 54 | + |
| 55 | +- Axes |
| 56 | + * removed figbg attribute |
| 57 | + * added fig instance to __init__ |
| 58 | + * resizing is handled by figure call to resize. |
| 59 | + |
| 60 | +- Subplot |
| 61 | + * added fig instance to __init__ |
| 62 | + |
| 63 | +- Renderer methods for patches now take gcEdge and gcFace instances. |
| 64 | + gcFace=None takes the place of filled=False |
| 65 | + |
| 66 | +- True and False symbols provided by cbook in a python2.3 compatible |
| 67 | + way |
| 68 | + |
| 69 | +- new module transforms supplies Bound1D, Bound2D and Transform |
| 70 | + instances and more |
| 71 | + |
| 72 | +- Changes to the matlab helpers API |
| 73 | + |
| 74 | + * _matlab_helpers.GcfBase is renamed by Gcf. Backends no longer |
| 75 | + need to derive from this class. Instead, they provide a factory |
| 76 | + function new_figure_manager(num, figsize, dpi). The destroy |
| 77 | + method of the GcfDerived from the backends is moved to the derived |
| 78 | + FigureManager. |
| 79 | + |
| 80 | + * FigureManagerBase moved to backend_bases |
| 81 | + |
| 82 | + * Gcf.get_all_figwins renamed to Gcf.get_all_fig_managers |
| 83 | + |
| 84 | +Jeremy: |
| 85 | + |
| 86 | + Make sure to self._reset = False in AxisTextWX._set_font. This was |
| 87 | + something missing in my backend code. |
0 commit comments