Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4838fbe

Browse files
committed
Add information about numpy copies. Add suggested replacement for offset_copy().
svn path=/trunk/matplotlib/; revision=5687
1 parent bef4c94 commit 4838fbe

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

API_CHANGES

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ TRANSFORMS REFACTORING
5555
See transforms.py for a description of the design of the new
5656
transformation framework.
5757

58+
For efficiency, many of these functions return views into Numpy
59+
arrays. This means that if you hold on to a reference to them,
60+
their contents may change. If you want to store a snapshot of
61+
their current values, use the Numpy array method copy().
62+
5863
The view intervals are now stored only in one place -- in the Axes
5964
instance, not in the formatter instances as well. This means
6065
formatters must get their limits from their Axis, which in turn
@@ -122,6 +127,8 @@ TRANSFORMS REFACTORING
122127

123128
Transform.inverse_xy_tup(points) Transform.inverted().transform(points)
124129

130+
offset_copy(trans, x, y) trans + Affine2D().translate(x, y)
131+
125132
axes.py
126133
Axes.get_position() Axes.get_position()
127134
[Axes.get_position() used to return a list of points, not it

0 commit comments

Comments
 (0)