@@ -59,8 +59,10 @@ def __init__(
59
59
plotly.graph_objs.layout.Annotation instance or
60
60
dict with compatible properties
61
61
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
64
66
autosize
65
67
Determines whether or not a layout width or
66
68
height that has been left undefined by the user
@@ -212,8 +214,10 @@ def __init__(
212
214
plotly.graph_objs.layout.Image instance or dict
213
215
with compatible properties
214
216
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
217
221
legend
218
222
plotly.graph_objs.layout.Legend instance or
219
223
dict with compatible properties
@@ -265,8 +269,10 @@ def __init__(
265
269
plotly.graph_objs.layout.Shape instance or dict
266
270
with compatible properties
267
271
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
270
276
showlegend
271
277
Determines whether or not a legend is drawn.
272
278
Default is `true` if there is a trace to show
@@ -278,8 +284,10 @@ def __init__(
278
284
plotly.graph_objs.layout.Slider instance or
279
285
dict with compatible properties
280
286
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
283
291
spikedistance
284
292
Sets the default distance (in pixels) to look
285
293
for data to draw spikelines to (-1 means no
@@ -289,8 +297,32 @@ def __init__(
289
297
hovered on but will not generate spikelines,
290
298
such as scatter fills.
291
299
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`.
294
326
ternary
295
327
plotly.graph_objs.layout.Ternary instance or
296
328
dict with compatible properties
@@ -302,8 +334,10 @@ def __init__(
302
334
plotly.graph_objs.layout.Updatemenu instance or
303
335
dict with compatible properties
304
336
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
307
341
violingap
308
342
Sets the gap (in plot fraction) between violins
309
343
of adjacent location coordinates.
@@ -4960,8 +4994,10 @@ def add_parcoords(
4960
4994
The dimensions (variables) of the parallel coordinates
4961
4995
chart. 2..60 dimensions are supported.
4962
4996
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
4965
5001
domain
4966
5002
plotly.graph_objs.parcoords.Domain instance or dict
4967
5003
with compatible properties
@@ -8186,8 +8222,10 @@ def add_splom(
8186
8222
plotly.graph_objs.splom.Dimension instance or dict with
8187
8223
compatible properties
8188
8224
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
8191
8229
hoverinfo
8192
8230
Determines which trace information appear on hover. If
8193
8231
`none` or `skip` are set, no information is displayed
0 commit comments