@@ -697,9 +697,8 @@ def add_axes(self, *args, **kwargs):
697
697
if ispolar :
698
698
if projection is not None and projection != 'polar' :
699
699
raise ValueError (
700
- "polar=True, yet projection='%s'. " +
701
- "Only one of these arguments should be supplied." %
702
- projection )
700
+ "polar=True, yet projection='%s'. " % projection +
701
+ "Only one of these arguments should be supplied." )
703
702
projection = 'polar'
704
703
705
704
if isinstance (projection , basestring ) or projection is None :
@@ -708,7 +707,8 @@ def add_axes(self, *args, **kwargs):
708
707
projection_class , extra_kwargs = projection ._as_mpl_axes ()
709
708
kwargs .update (** extra_kwargs )
710
709
else :
711
- TypeError ('projection must be a string, None or implement a _as_mpl_axes method. Got %r' % projection )
710
+ TypeError ('projection must be a string, None or implement a '
711
+ '_as_mpl_axes method. Got %r' % projection )
712
712
713
713
a = projection_factory (projection , self , rect , ** kwargs )
714
714
@@ -762,9 +762,8 @@ def add_subplot(self, *args, **kwargs):
762
762
if ispolar :
763
763
if projection is not None :
764
764
raise ValueError (
765
- "polar=True, yet projection=%r. " +
766
- "Only one of these arguments should be supplied." %
767
- projection )
765
+ "polar=True, yet projection=%r. " % projection +
766
+ "Only one of these arguments should be supplied." )
768
767
projection = 'polar'
769
768
770
769
if isinstance (projection , basestring ) or projection is None :
@@ -773,7 +772,8 @@ def add_subplot(self, *args, **kwargs):
773
772
projection_class , extra_kwargs = projection ._as_mpl_axes ()
774
773
kwargs .update (** extra_kwargs )
775
774
else :
776
- TypeError ('projection must be a string, None or implement a _as_mpl_axes method. Got %r' % projection )
775
+ TypeError ('projection must be a string, None or implement a '
776
+ '_as_mpl_axes method. Got %r' % projection )
777
777
778
778
# Remake the key without projection kwargs:
779
779
key = self ._make_key (* args , ** kwargs )
@@ -1058,9 +1058,8 @@ def gca(self, **kwargs):
1058
1058
if ispolar :
1059
1059
if projection is not None and projection != 'polar' :
1060
1060
raise ValueError (
1061
- "polar=True, yet projection='%s'. " +
1062
- "Only one of these arguments should be supplied." %
1063
- projection )
1061
+ "polar=True, yet projection='%s'. " % projection +
1062
+ "Only one of these arguments should be supplied." )
1064
1063
projection = 'polar'
1065
1064
1066
1065
projection_class = get_projection_class (projection )
0 commit comments