8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63e0993 commit 771592dCopy full SHA for 771592d
examples/api/skewt.py
@@ -67,14 +67,6 @@ def get_view_interval(self):
67
# upper X-axis and draw the spine there. It also provides this range
68
# to the X-axis artist for ticking and gridlines
69
class SkewSpine(mspines.Spine):
70
- def __init__(self, axes, spine_type):
71
- if spine_type == 'bottom':
72
- loc = 0.0
73
- else:
74
- loc = 1.0
75
- mspines.Spine.__init__(self, axes, spine_type,
76
- mpath.Path([(13, loc), (13, loc)]))
77
-
78
def _adjust_location(self):
79
trans = self.axes.transDataToAxes.inverted()
80
if self.spine_type == 'top':
@@ -109,7 +101,7 @@ def _init_axis(self):
109
101
self.spines['right'].register_axis(self.yaxis)
110
102
111
103
def _gen_axes_spines(self):
112
- spines = {'top':SkewSpine(self, 'top'),
104
+ spines = {'top':SkewSpine.linear_spine(self, 'top'),
113
105
'bottom':mspines.Spine.linear_spine(self, 'bottom'),
114
106
'left':mspines.Spine.linear_spine(self, 'left'),
115
107
'right':mspines.Spine.linear_spine(self, 'right')}
0 commit comments