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

Skip to content
Prev Previous commit
Next Next commit
Corrected having not hit git add before committing.
  • Loading branch information
Phil Elson committed Feb 6, 2012
commit 1fa7d390dd15c371a8ccb83870ad71640371b645
10 changes: 6 additions & 4 deletions lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,9 @@ def add_axes(self, *args, **kwargs):
if ispolar:
if projection is not None and projection != 'polar':
raise ValueError(
"polar=True, yet projection='%s'. " % projection +
"Only one of these arguments should be supplied.")
"polar=True, yet projection=%r. "
"Only one of these arguments should be supplied."
% projection)
projection = 'polar'

if isinstance(projection, basestring) or projection is None:
Expand Down Expand Up @@ -762,8 +763,9 @@ def add_subplot(self, *args, **kwargs):
if ispolar:
if projection is not None:
raise ValueError(
"polar=True, yet projection=%r. " % projection +
"Only one of these arguments should be supplied.")
"polar=True, yet projection=%r. "
"Only one of these arguments should be supplied."
% projection)
projection = 'polar'

if isinstance(projection, basestring) or projection is None:
Expand Down