Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 16922e7

Browse filesBrowse files
committed
git is so agitating sometimes
1 parent 0f22531 commit 16922e7
Copy full SHA for 16922e7

File tree

1 file changed

+20
-2
lines changed
Filter options

1 file changed

+20
-2
lines changed

‎fastplotlib/graphics/linecollection.py

Copy file name to clipboardExpand all lines: fastplotlib/graphics/linecollection.py
+20-2Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import numpy as np
22
import pygfx
3-
from typing import Union
3+
from typing import Union, List
4+
5+
from fastplotlib.graphics._base import Graphic
6+
47
from .line import LineGraphic
58
from typing import *
9+
from ._base import Interaction
610

711

8-
class LineCollection():
12+
class LineCollection(Interaction):
913
def __init__(self, data: List[np.ndarray], zlevel: Union[List[float], float] = None, size: Union[float, List[float]] = 2.0, colors: Union[List[np.ndarray], np.ndarray] = None,
1014
cmap: Union[List[str], str] = None, *args, **kwargs):
1115

@@ -47,6 +51,20 @@ def __init__(self, data: List[np.ndarray], zlevel: Union[List[float], float] = N
4751

4852
self.collection.append(LineGraphic(d, _zlevel, _size, _colors, _cmap))
4953

54+
@property
55+
def indices(self) -> Any:
56+
pass
57+
58+
@property
59+
def features(self) -> List[str]:
60+
pass
61+
62+
def _set_feature(self, feature: str, new_data: Any, indices: Any):
63+
pass
64+
65+
def link(self, event_type: str, target: Graphic, feature: str, new_data: Any, indices_mapper: callable = None):
66+
pass
67+
5068
def __getitem__(self, item):
5169
return self.collection[item]
5270

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.