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

Skip to content

Commit 19894ac

Browse files
committed
fix pyplot.subplot2grid to support the projection keyword
svn path=/branches/v1_0_maint/; revision=8581
1 parent 1e45f00 commit 19894ac

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,7 @@ def subplot2grid(shape, loc, rowspan=1, colspan=1, **kwargs):
797797
subplotspec = GridSpec(s1, s2).new_subplotspec(loc,
798798
rowspan=rowspan,
799799
colspan=colspan)
800-
a = Subplot(fig, subplotspec, **kwargs)
801-
fig.add_subplot(a)
800+
a = fig.add_subplot(subplotspec, **kwargs)
802801
bbox = a.bbox
803802
byebye = []
804803
for other in fig.axes:

0 commit comments

Comments
 (0)