Thanks to visit codestin.com Credit goes to github.com
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 00cfd28 commit 11149dfCopy full SHA for 11149df
1 file changed
lib/matplotlib/spines.py
@@ -297,14 +297,15 @@ def linear_spine(cls, axes, spine_type, **kwargs):
297
"""
298
(staticmethod) Returns a linear :class:`Spine`.
299
300
+ # all values of 13 get replaced upon call to set_bounds()
301
if spine_type=='left':
- path = mpath.Path([(0.0, 0.0), (0.0, 1.0)])
302
+ path = mpath.Path([(0.0, 13), (0.0, 13)])
303
elif spine_type=='right':
- path = mpath.Path([(1.0, 0.0), (1.0, 1.0)])
304
+ path = mpath.Path([(1.0, 13), (1.0, 13)])
305
elif spine_type=='bottom':
- path = mpath.Path([(0.0, 0.0), (1.0, 0.0)])
306
+ path = mpath.Path([(13, 0.0), (13, 0.0)])
307
elif spine_type=='top':
- path = mpath.Path([(0.0, 1.0), (1.0, 1.0)])
308
+ path = mpath.Path([(13, 1.0), (13, 1.0)])
309
else:
310
raise ValueError('unable to make path for spine "%s"'%spine_type)
311
result = cls(axes,spine_type,path,**kwargs)
0 commit comments