Skip to content

Commit 9a89262

Browse files
committed
fix sticky edges, use 'mirror' mode of get_lines
1 parent 84c6305 commit 9a89262

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

data_prototype/artist.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from bisect import insort
2-
from collections import OrderedDict
2+
from collections import namedtuple, OrderedDict
33
from typing import Sequence
44
from contextlib import contextmanager
55

@@ -263,6 +263,7 @@ def __init__(self, axes):
263263
self.figure = None
264264
self._clippath = None
265265
self.zorder = 2
266+
self.sticky_edges = namedtuple("Sticky", ["x", "y"])([], [])
266267

267268
@property
268269
def axes(self):

data_prototype/axes.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ def scatter(
154154

155155
def plot(self, *args, scalex=True, scaley=True, data=None, **kwargs):
156156
kwargs = cbook.normalize_kwargs(kwargs, mlines.Line2D)
157-
line_args = [*self._get_lines_mirror(self, *args, data=data, **kwargs)]
157+
line_args = [
158+
*self._get_lines_mirror(
159+
self, *args, data=data, **kwargs, return_kwargs=True
160+
)
161+
]
158162
print(line_args)
159163
lines = []
160164
for coord, kws in line_args:

0 commit comments

Comments
 (0)