8000 FIX: better default spine path (for logit) · matplotlib/matplotlib@a420913 · GitHub
[go: up one dir, main page]

Skip to content

Commit a420913

Browse files
committed
FIX: better default spine path (for logit)
1 parent 5672341 commit a420913

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/matplotlib/spines.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,15 +481,15 @@ def linear_spine(cls, axes, spine_type, **kwargs):
481481
"""
482482
(staticmethod) Returns a linear :class:`Spine`.
483483
"""
484-
# all values of 13 get replaced upon call to set_bounds()
484+
# all values of 0.999 get replaced upon call to set_bounds()
485485
if spine_type == 'left':
486-
path = mpath.Path([(0.0, 13), (0.0, 13)])
486+
path = mpath.Path([(0.0, 0.999), (0.0, 0.999)])
487487
elif spine_type == 'right':
488-
path = mpath.Path([(1.0, 13), (1.0, 13)])
488+
path = mpath.Path([(1.0, 0.999), (1.0, 0.999)])
489489
elif spine_type == 'bottom':
490-
path = mpath.Path([(13, 0.0), (13, 0.0)])
490+
path = mpath.Path([(0.999, 0.0), (0.999, 0.0)])
491491
elif spine_type == 'top':
492-
path = mpath.Path([(13, 1.0), (13, 1.0)])
492+
path = mpath.Path([(0.999, 1.0), (0.999, 1.0)])
493493
else:
494494
raise ValueError('unable to make path for spine "%s"' % spine_type)
495495
result = cls(axes, spine_type, path, **kwargs)

0 commit comments

Comments
 (0)
0