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

Skip to content

Commit 3bf76b9

Browse files
astropy-buildbotddale
authored andcommitted
Commit geo_demo example as part of documentation build.
1 parent 9a93a5c commit 3bf76b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/api/custom_projection_example.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
450450
from pylab import *
451451

452-
subplot(111, projection="hammer")
452+
subplot(111, projection="custom_hammer")
453453
p = plot([-1, 1, 1], [-1, -1, 1], "o-")
454454
grid(True)
455455

0 commit comments

Comments
 (0)