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

Skip to content

Commit 8aaeadc

Browse files
committed
Fix broken example.
svn path=/trunk/matplotlib/; revision=7136
1 parent 07072da commit 8aaeadc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/api/custom_projection_example.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ class HammerAxes(Axes):
2727
# projection='hammer')``.
2828
name = 'hammer'
2929

30-
# The number of interpolation steps when converting from straight
31-
# lines to curves. (See ``transform_path``).
32-
RESOLUTION = 75
33-
3430
def __init__(self, *args, **kwargs):
3531
Axes.__init__(self, *args, **kwargs)
3632
self.set_aspect(0.5, adjustable='box', anchor='C')
@@ -91,7 +87,7 @@ def _set_lim_and_transforms(self):
9187

9288
# 1) The core transformation from data space into
9389
# rectilinear space defined in the HammerTransform class.
94-
self.transProjection = self.HammerTransform(self.RESOLUTION)
90+
self.transProjection = self.HammerTransform()
9591

9692
# 2) The above has an output range that is not in the unit
9793
# rectangle, so scale and translate it so it fits correctly

0 commit comments

Comments
 (0)