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

Method update_layout

plotly/basedatatypes.py:1391–1416  ·  view source on GitHub ↗

Update the properties of the figure's layout with a dict and/or with keyword arguments. This recursively updates the structure of the original layout with the values in the input dict / keyword arguments. Parameters ---------- dict1 : dict

(self, dict1=None, overwrite=False, **kwargs)

Source from the content-addressed store, hash-verified

1389 return self
1390
1391 def update_layout(self, dict1=None, overwrite=False, **kwargs):
1392 """
1393 Update the properties of the figure's layout with a dict and/or with
1394 keyword arguments.
1395
1396 This recursively updates the structure of the original
1397 layout with the values in the input dict / keyword arguments.
1398
1399 Parameters
1400 ----------
1401 dict1 : dict
1402 Dictionary of properties to be updated
1403 overwrite: bool
1404 If True, overwrite existing properties. If False, apply updates
1405 to existing properties recursively, preserving existing
1406 properties that are not specified in the update operation.
1407 kwargs :
1408 Keyword/value pair of properties to be updated
1409
1410 Returns
1411 -------
1412 BaseFigure
1413 The Figure object that the update_layout method was called on
1414 """
1415 self.layout.update(dict1, overwrite=overwrite, **kwargs)
1416 return self
1417
1418 def _select_layout_subplots_by_prefix(
1419 self, prefix, selector=None, row=None, col=None, secondary_y=None

Calls 1

updateMethod · 0.45