MCPcopy Index your code
hub / github.com/plotly/plotly.py / _subplotid_validators

Method _subplotid_validators

plotly/graph_objs/_layout.py:28–50  ·  view source on GitHub ↗

dict of validator classes for each subplot type Returns ------- dict

(self)

Source from the content-addressed store, hash-verified

26
27 @property
28 def _subplotid_validators(self):
29 """
30 dict of validator classes for each subplot type
31
32 Returns
33 -------
34 dict
35 """
36 from plotly.validator_cache import ValidatorCache
37
38 return {
39 "coloraxis": ValidatorCache.get_validator("layout", "coloraxis"),
40 "geo": ValidatorCache.get_validator("layout", "geo"),
41 "legend": ValidatorCache.get_validator("layout", "legend"),
42 "map": ValidatorCache.get_validator("layout", "map"),
43 "mapbox": ValidatorCache.get_validator("layout", "mapbox"),
44 "polar": ValidatorCache.get_validator("layout", "polar"),
45 "scene": ValidatorCache.get_validator("layout", "scene"),
46 "smith": ValidatorCache.get_validator("layout", "smith"),
47 "ternary": ValidatorCache.get_validator("layout", "ternary"),
48 "xaxis": ValidatorCache.get_validator("layout", "xaxis"),
49 "yaxis": ValidatorCache.get_validator("layout", "yaxis"),
50 }
51
52 def _subplot_re_match(self, prop):
53 return self._subplotid_prop_re.match(prop)

Callers

nothing calls this directly

Calls 1

get_validatorMethod · 0.80

Tested by

no test coverage detected