|
15 | 15 | import numpy as np |
16 | 16 | from glob import glob |
17 | 17 | import plotly.colors as plotly_colour |
18 | | -from plotly.validators.scatter.marker import SymbolValidator |
| 18 | + |
19 | 19 |
|
20 | 20 | from .metbit import opls_da |
21 | 21 | from .utility import project_name_generator, lazypair |
@@ -88,7 +88,6 @@ class lazy_opls_da: |
88 | 88 | import numpy as np |
89 | 89 | from glob import glob |
90 | 90 | import plotly.colors as plotly_colour |
91 | | - from plotly.validators.scatter.marker import SymbolValidator |
92 | 91 |
|
93 | 92 | from .metbit import opls_da |
94 | 93 | from .utility import project_name_generator, lazypair |
@@ -295,8 +294,18 @@ def fit(self, marker_color: dict = None, custom_color: list = None, |
295 | 294 | scale = self.scale |
296 | 295 | feature_names = self.feature_names |
297 | 296 |
|
298 | | - from plotly.validators.scatter.marker import SymbolValidator |
299 | | - raw_symbols = SymbolValidator().values |
| 297 | + |
| 298 | + raw_symbols = [ |
| 299 | + "circle", "circle-open", "circle-dot", "circle-open-dot", |
| 300 | + "square", "square-open", "square-dot", "square-open-dot", |
| 301 | + "diamond", "diamond-open", "diamond-dot", "diamond-open-dot", |
| 302 | + "cross", "x", "cross-dot", "x-dot", "cross-open", "x-open", |
| 303 | + "triangle-up", "triangle-down", "triangle-left", "triangle-right", |
| 304 | + "triangle-up-open", "triangle-down-open", "triangle-left-open", "triangle-right-open", |
| 305 | + "star", "hexagram", "hourglass", "bowtie", "asterisk", "hash", |
| 306 | + "y-up", "y-down", "y-left", "y-right", |
| 307 | + "line-ew", "line-ns", "line-ne", "line-nw" |
| 308 | + ] |
300 | 309 | namestems = [] |
301 | 310 | for i in range(0,len(raw_symbols),3): |
302 | 311 | name = raw_symbols[i+2] |
|
0 commit comments