@@ -3,6 +3,17 @@ API CHANGES in matplotlib-0.54
33matlab interface
44================
55
6+ dpi
7+ ---
8+
9+ Several of the backends used a PIXELS_PER_INCH hack that I added to
10+ try and make images render consistently across backends. This just
11+ complicated matters. So you may find that some font sizes and line
12+ widths appear different than before. Apologies for the
13+ inconvenience. You should set the dpi to an accurate value for your
14+ screen to get true sizes.
15+
16+
617pcolor and scatter
718------------------
819
@@ -96,12 +107,12 @@ Bounding boxes
96107 get the width and height of the bbox
97108
98109 OLD
99- width = self.figure .bbox.x.interval()
100- height = self.figure .bbox.y.interval()
110+ width = fig .bbox.x.interval()
111+ height = fig .bbox.y.interval()
101112
102113 New
103- width = self.figure .bbox.width()
104- height = self.figure .bbox.height()
114+ width = fig .bbox.width()
115+ height = fig .bbox.height()
105116
106117
107118
@@ -170,10 +181,23 @@ Transformations
170181 Although this was done in numerix, it still involves 6 length(x)
171182 for-loops (the multiply, add, and function evaluation each for x
172183 and y). Now all of that is done in a single pass.
184+
185+
186+ If you are using transformations and bounding boxes to get the
187+ cursor position in data coordinates, the method calls are a little
188+ different now. See the updated examples/coords_demo.py which shows
189+ you how to do this.
190+
191+ Likewise, if you are using the artist bounding boxes to pick items
192+ on the canvas with the GUI, the bbox methods are somewhat
193+ different. You will need to see the updated
194+ examples/object_picker.py.
173195
174196 See unit/transforms_unit.py for many examples using the new
175197 transformations.
176198
199+
200+
177201API changes at 0.50
178202
179203 * refactored Figure class so it is no longer backend dependent.
0 commit comments