8000 added API_CHANGES · matplotlib/matplotlib@3db41d3 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 3db41d3

Browse files
committed
added API_CHANGES
svn path=/trunk/matplotlib/; revision=102
1 parent 8591cc1 commit 3db41d3

File tree

2 files changed

+111
-0
lines changed

2 files changed

+111
-0
lines changed

API_CHANGES

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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.

KNOWN_BUGS

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
KNOWN BUGS
3+
4+
- DONE - Circle needs to provide window extent -- see scatter demo
5+
6+
- DONE - axes patch edge on gtk backend not complete
7+
8+
- DONE - autoscale on y not satisfactory -- see histogram demo
9+
10+
- with multiple subplots there is a small gap between the bottom of
11+
the xtick1 line and the axes patch edge. see subplot_demo
12+
13+
- DONE 2003-11-14 - lowest line position is off in legend_demo
14+
15+
- the markers for circ and square in the gtk backend do not have the
16+
same center. See the stock_demo for example.
17+
18+
- DONE 2003-11-16 - GD port of new API not done
19+
20+
- DONE 2003-11-16 - xticklabels in PS backend need clip
21+
22+
- x and y ticklabels overlap at origin
23+
24+
- parse error on lines like plot(bins, mu, bins, mu+sigma, '--')

0 commit comments

Comments
 (0)
0