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

Skip to content
Prev Previous commit
Next Next commit
Reverted polar check.
  • Loading branch information
Phil Elson committed Feb 6, 2012
commit 89053c5bcd2f2be565a597292d6064f75168911f
10 changes: 5 additions & 5 deletions lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,8 @@ def add_axes(self, *args, **kwargs):
if projection is not None and projection != 'polar':
raise ValueError(
"polar=True, yet projection=%r. "
"Only one of these arguments should be supplied."
% projection)
"Only one of these arguments should be supplied." %
projection)
projection = 'polar'

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

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