Skip to content

Commit 2454767

Browse files
bmaranvillegvwilson
authored andcommitted
update documentation example to use validator from ValidatorCache
1 parent ba8ec10 commit 2454767

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/python/marker-style.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,10 @@ In the following figure, hover over a symbol to see its name or number. Set the
336336
337337
```python
338338
import plotly.graph_objects as go
339-
from plotly.validators.scatter.marker import SymbolValidator
339+
from plotly.validator_cache import ValidatorCache
340340

341-
raw_symbols = SymbolValidator().values
341+
SymbolValidator = ValidatorCache.get_validator("scatter.marker", "symbol")
342+
raw_symbols = SymbolValidator.values
342343
namestems = []
343344
namevariants = []
344345
symbols = []

0 commit comments

Comments
 (0)