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

Skip to content

Commit 182e3a9

Browse files
committed
fixed subplots_adjust docstring bug
svn path=/trunk/matplotlib/; revision=2867
1 parent c2694b6 commit 182e3a9

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

examples/broken_barh.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
"""
23
Make a "broken" horizontal bar plot, ie one with gaps
34
"""
@@ -20,5 +21,5 @@
2021
fontsize=16,
2122
horizontalalignment='right', verticalalignment='top')
2223

23-
fig.savefig('broken_barh')
24+
fig.savefig('broken_barh', dpi=100)
2425
show()

lib/matplotlib/figure.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,8 @@ def colorbar_classic(self, mappable, cax=None,
872872

873873
def subplots_adjust(self, *args, **kwargs):
874874
"""
875+
subplots_adjust(self, left=None, bottom=None, right=None, top=None,
876+
wspace=None, hspace=None)
875877
fig.subplots_adjust(left=None, bottom=None, right=None, wspace=None, hspace=None):
876878
Update the SubplotParams with kwargs (defaulting to rc where
877879
None) and update the subplot locations

lib/matplotlib/pylab.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,8 @@ def setp(*args, **kwargs):
14681468

14691469
def subplots_adjust(*args, **kwargs):
14701470
"""
1471-
subplots_adjust(left=None, right=None, bottom=None, top=None, wspace=0.2, hspace=0.2)
1471+
subplots_adjust(left=None, bottom=None, right=None, top=None,
1472+
wspace=None, hspace=None)
14721473
14731474
Tune the subplot layout via the figure.SubplotParams mechanism.
14741475
The parameter meanings (and suggested defaults) are

0 commit comments

Comments
 (0)