8000 added add_subplot comment re hashing · matplotlib/matplotlib@bbc2899 · GitHub
[go: up one dir, main page]

Skip to content

Commit bbc2899

Browse files
author
pelson
committed
added add_subplot comment re hashing
1 parent cb436a5 commit bbc2899

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/figure.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,8 @@ def add_subplot(self, *args, **kwargs):
791791

792792
a = args[0]
793793
assert(a.get_figure() is self)
794+
# make a key for the subplot (which includes the axes object id
795+
# in the hash)
794796
key = self._make_key(*args, **kwargs)
795797
else:
796798
projection_class, kwargs, key = \

0 commit comments

Comments
 (0)
0