Skip to content

Commit 92d2ae3

Browse files
committed
Correcting for a bad rebase.
1 parent 64130e2 commit 92d2ae3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/matplotlib/pyplot.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -911,16 +911,15 @@ def subplots(nrows=1, ncols=1, sharex=False, sharey=False, squeeze=True,
911911
# ever occur, but mysterious behavior will result because what was
912912
# intended to be the subplot index is instead treated as a bool for
913913
# sharex.
914-
if isinstance(sharex, int) :
915-
warnings.warn("sharex argument to subplots() was not boolean."
916-
" Did you intend to use subplot()?")
914+
if isinstance(sharex, int):
915+
warnings.warn("sharex argument to subplots() was an integer."
916+
" Did you intend to use subplot() (without 's')?")
917917

918918
raise ValueError("sharex [%s] must be one of %s" % \
919919
(sharex, share_values))
920920
if sharey not in share_values:
921921
raise ValueError("sharey [%s] must be one of %s" % \
922922
(sharey, share_values))
923-
924923
if subplot_kw is None:
925924
subplot_kw = {}
926925

0 commit comments

Comments
 (0)