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

Skip to content

Commit c09ac03

Browse files
committed
Add to release notes
1 parent 1f4708b commit c09ac03

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Setting collection offset transform after initialization
2+
--------------------------------------------------------
3+
`~matplotlib.collections.Collection.set_offset_transform` was added.
4+
5+
Previously the offset transform could not be set after initialization.

lib/matplotlib/collections.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ def get_offset_transform(self):
229229

230230
def set_offset_transform(self, transOffset):
231231
self._transOffset = transOffset
232+
self.pchanged()
233+
self.stale = True
232234

233235
def get_datalim(self, transData):
234236
# Calculate the data limits and return them as a `.Bbox`.

0 commit comments

Comments
 (0)