Skip to content

Commit 25d39f2

Browse files
committed
fix sticky edges, use 'mirror' mode of get_lines
1 parent f0fabc1 commit 25d39f2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

data_prototype/artist.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from bisect import insort
2+
from collections import namedtuple
23
from typing import Sequence
34

45
import numpy as np
@@ -234,6 +235,7 @@ def __init__(self, axes):
234235
self.figure = None
235236
self._clippath = None
236237
self.zorder = 2
238+
self.sticky_edges = namedtuple("Sticky", ["x", "y"])([], [])
237239

238240
@property
239241
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)