@@ -26,8 +26,8 @@ class HammerAxes(Axes):
26
26
"""
27
27
# The projection must specify a name. This will be used be the
28
28
# user to select the projection, i.e. ``subplot(111,
29
- # projection='hammer ')``.
30
- name = 'hammer '
29
+ # projection='custom_hammer ')``.
30
+ name = 'custom_hammer '
31
31
32
32
def __init__ (self , * args , ** kwargs ):
33
33
Axes .__init__ (self , * args , ** kwargs )
@@ -237,7 +237,7 @@ def _gen_axes_patch(self):
237
237
return Circle ((0.5 , 0.5 ), 0.5 )
238
238
239
239
def _gen_axes_spines (self ):
240
- return {'hammer ' :mspines .Spine .circular_spine (self ,
240
+ return {'custom_hammer ' :mspines .Spine .circular_spine (self ,
241
241
(0.5 , 0.5 ), 0.5 )}
242
242
243
243
# Prevent the user from applying scales to one or both of the
@@ -449,7 +449,7 @@ def inverted(self):
449
449
# Now make a simple example using the custom projection.
450
450
from pylab import *
451
451
452
- subplot (111 , projection = "hammer " )
452
+ subplot (111 , projection = "custom_hammer " )
453
453
p = plot ([- 1 , 1 , 1 ], [- 1 , - 1 , 1 ], "o-" )
454
454
grid (True )
455
455
0 commit comments