8000 Reverted polar check. · pelson/matplotlib@89053c5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 89053c5

Browse files
author
Phil Elson
committed
Reverted polar check.
1 parent 1fa7d39 commit 89053c5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/figure.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,8 @@ def add_axes(self, *args, **kwargs):
698698
if projection is not None and projection != 'polar':
699699
raise ValueError(
700700
"polar=True, yet projection=%r. "
701-
"Only one of these arguments should be supplied."
702-
% projection)
701+
"Only one of these arguments should be supplied." %
702+
projection)
703703
projection = 'polar'
704704

705705
if isinstance(projection, basestring) or projection is None:
@@ -761,11 +761,11 @@ def add_subplot(self, *args, **kwargs):
761761
ispolar = kwargs.pop('polar', False)
762762
projection = kwargs.pop('projection', None)
763763
if ispolar:
764-
if projection is not None:
764+
if projection is not None and projection != 'polar':
765765
raise ValueError(
766766
"polar=True, yet projection=%r. "
767-
"Only one of these arguments should be supplied."
768-
% projection)
767+
"Only one of these arguments should be supplied." %
768+
projection)
769769
projection = 'polar'
770770

771771
if isinstance(projection, basestring) or projection is None:

0 commit comments

Comments
 (0)
0