@@ -26,8 +26,8 @@ class HammerAxes(Axes):
2626 """
2727 # The projection must specify a name. This will be used be the
2828 # user to select the projection, i.e. ``subplot(111,
29- # projection='hammer ')``.
30- name = 'hammer '
29+ # projection='custom_hammer ')``.
30+ name = 'custom_hammer '
3131
3232 def __init__ (self , * args , ** kwargs ):
3333 Axes .__init__ (self , * args , ** kwargs )
@@ -237,7 +237,7 @@ def _gen_axes_patch(self):
237237 return Circle ((0.5 , 0.5 ), 0.5 )
238238
239239 def _gen_axes_spines (self ):
240- return {'hammer ' :mspines .Spine .circular_spine (self ,
240+ return {'custom_hammer ' :mspines .Spine .circular_spine (self ,
241241 (0.5 , 0.5 ), 0.5 )}
242242
243243 # Prevent the user from applying scales to one or both of the
@@ -449,7 +449,7 @@ def inverted(self):
449449# Now make a simple example using the custom projection.
450450from pylab import *
451451
452- subplot (111 , projection = "hammer " )
452+ subplot (111 , projection = "custom_hammer " )
453453p = plot ([- 1 , 1 , 1 ], [- 1 , - 1 , 1 ], "o-" )
454454grid (True )
455455
0 commit comments