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

Class Template

plotly/graph_objs/layout/_template.py:9–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8
9class Template(_BaseLayoutHierarchyType):
10 _parent_path_str = "layout"
11 _path_str = "layout.template"
12 _valid_props = {"data", "layout"}
13
14 @property
15 def data(self):
16 """
17 The 'data' property is an instance of Data
18 that may be specified as:
19 - An instance of :class:`plotly.graph_objs.layout.template.Data`
20 - A dict of string/value properties that will be passed
21 to the Data constructor
22
23 Returns
24 -------
25 plotly.graph_objs.layout.template.Data
26 """
27 return self["data"]
28
29 @data.setter
30 def data(self, val):
31 self["data"] = val
32
33 @property
34 def layout(self):
35 """
36 The 'layout' property is an instance of Layout
37 that may be specified as:
38 - An instance of :class:`plotly.graph_objs.Layout`
39 - A dict of string/value properties that will be passed
40 to the Layout constructor
41
42 Returns
43 -------
44 plotly.graph_objs.layout.template.Layout
45 """
46 return self["layout"]
47
48 @layout.setter
49 def layout(self, val):
50 self["layout"] = val
51
52 @property
53 def _prop_descriptions(self):
54 return """\
55 data
56 :class:`plotly.graph_objects.layout.template.Data`
57 instance or dict with compatible properties
58 layout
59 :class:`plotly.graph_objects.Layout` instance or dict
60 with compatible properties
61 """
62
63 def __init__(self, arg=None, data=None, layout=None, **kwargs):
64 """
65 Construct a new Template object
66

Callers 6

__getitem__Method · 0.90
merge_templatesMethod · 0.90
presentationFunction · 0.90
xgridoffFunction · 0.90
ygridoffFunction · 0.90
gridonFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected