@@ -59,8 +59,10 @@ def __init__(
5959 plotly.graph_objs.layout.Annotation instance or
6060 dict with compatible properties
6161 annotationdefaults
62- plotly.graph_objs.layout.Annotation instance or
63- dict with compatible properties
62+ When used in a template (as
63+ layout.template.layout.annotationdefaults),
64+ sets the default property values to use for
65+ elements of layout.annotations
6466 autosize
6567 Determines whether or not a layout width or
6668 height that has been left undefined by the user
@@ -212,8 +214,10 @@ def __init__(
212214 plotly.graph_objs.layout.Image instance or dict
213215 with compatible properties
214216 imagedefaults
215- plotly.graph_objs.layout.Image instance or dict
216- with compatible properties
217+ When used in a template (as
218+ layout.template.layout.imagedefaults), sets the
219+ default property values to use for elements of
220+ layout.images
217221 legend
218222 plotly.graph_objs.layout.Legend instance or
219223 dict with compatible properties
@@ -265,8 +269,10 @@ def __init__(
265269 plotly.graph_objs.layout.Shape instance or dict
266270 with compatible properties
267271 shapedefaults
268- plotly.graph_objs.layout.Shape instance or dict
269- with compatible properties
272+ When used in a template (as
273+ layout.template.layout.shapedefaults), sets the
274+ default property values to use for elements of
275+ layout.shapes
270276 showlegend
271277 Determines whether or not a legend is drawn.
272278 Default is `true` if there is a trace to show
@@ -278,8 +284,10 @@ def __init__(
278284 plotly.graph_objs.layout.Slider instance or
279285 dict with compatible properties
280286 sliderdefaults
281- plotly.graph_objs.layout.Slider instance or
282- dict with compatible properties
287+ When used in a template (as
288+ layout.template.layout.sliderdefaults), sets
289+ the default property values to use for elements
290+ of layout.sliders
283291 spikedistance
284292 Sets the default distance (in pixels) to look
285293 for data to draw spikelines to (-1 means no
@@ -289,8 +297,32 @@ def __init__(
289297 hovered on but will not generate spikelines,
290298 such as scatter fills.
291299 template
292- plotly.graph_objs.layout.Template instance or
293- dict with compatible properties
300+ Default attributes to be applied to the plot.
301+ This should be a dict with format: `{'layout':
302+ layoutTemplate, 'data': {trace_type:
303+ [traceTemplate, ...], ...}}` where
304+ `layoutTemplate` is a dict matching the
305+ structure of `figure.layout` and
306+ `traceTemplate` is a dict matching the
307+ structure of the trace with type `trace_type`
308+ (e.g. 'scatter'). Alternatively, this may be
309+ specified as an instance of
310+ plotly.graph_objs.layout.Template. Trace
311+ templates are applied cyclically to traces of
312+ each type. Container arrays (eg `annotations`)
313+ have special handling: An object ending in
314+ `defaults` (eg `annotationdefaults`) is applied
315+ to each array item. But if an item has a
316+ `templateitemname` key we look in the template
317+ array for an item with matching `name` and
318+ apply that instead. If no matching `name` is
319+ found we mark the item invisible. Any named
320+ template item not referenced is appended to the
321+ end of the array, so this can be used to add a
322+ watermark annotation or a logo image, for
323+ example. To omit one of these items on the
324+ plot, make an item with matching
325+ `templateitemname` and `visible: false`.
294326 ternary
295327 plotly.graph_objs.layout.Ternary instance or
296328 dict with compatible properties
@@ -302,8 +334,10 @@ def __init__(
302334 plotly.graph_objs.layout.Updatemenu instance or
303335 dict with compatible properties
304336 updatemenudefaults
305- plotly.graph_objs.layout.Updatemenu instance or
306- dict with compatible properties
337+ When used in a template (as
338+ layout.template.layout.updatemenudefaults),
339+ sets the default property values to use for
340+ elements of layout.updatemenus
307341 violingap
308342 Sets the gap (in plot fraction) between violins
309343 of adjacent location coordinates.
@@ -4960,8 +4994,10 @@ def add_parcoords(
49604994 The dimensions (variables) of the parallel coordinates
49614995 chart. 2..60 dimensions are supported.
49624996 dimensiondefaults
4963- plotly.graph_objs.parcoords.Dimension instance or dict
4964- with compatible properties
4997+ When used in a template (as
4998+ layout.template.data.parcoords.dimensiondefaults), sets
4999+ the default property values to use for elements of
5000+ parcoords.dimensions
49655001 domain
49665002 plotly.graph_objs.parcoords.Domain instance or dict
49675003 with compatible properties
@@ -8186,8 +8222,10 @@ def add_splom(
81868222 plotly.graph_objs.splom.Dimension instance or dict with
81878223 compatible properties
81888224 dimensiondefaults
8189- plotly.graph_objs.splom.Dimension instance or dict with
8190- compatible properties
8225+ When used in a template (as
8226+ layout.template.data.splom.dimensiondefaults), sets the
8227+ default property values to use for elements of
8228+ splom.dimensions
81918229 hoverinfo
81928230 Determines which trace information appear on hover. If
81938231 `none` or `skip` are set, no information is displayed
0 commit comments