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

Method update_layout

plotly/graph_objs/_figure.py:192–218  ·  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

190 )
191
192 def update_layout(self, dict1=None, overwrite=False, **kwargs) -> "Figure":
193 """
194
195 Update the properties of the figure's layout with a dict and/or with
196 keyword arguments.
197
198 This recursively updates the structure of the original
199 layout with the values in the input dict / keyword arguments.
200
201 Parameters
202 ----------
203 dict1 : dict
204 Dictionary of properties to be updated
205 overwrite: bool
206 If True, overwrite existing properties. If False, apply updates
207 to existing properties recursively, preserving existing
208 properties that are not specified in the update operation.
209 kwargs :
210 Keyword/value pair of properties to be updated
211
212 Returns
213 -------
214 BaseFigure
215 The Figure object that the update_layout method was called on
216
217 """
218 return super().update_layout(dict1, overwrite, **kwargs)
219
220 def for_each_trace(
221 self, fn, selector=None, row=None, col=None, secondary_y=None

Callers 8

make_subplotsFunction · 0.95
test_repr_htmlFunction · 0.95
test_repr_mimebundleFunction · 0.95
make_figureFunction · 0.45
imshowFunction · 0.45

Calls

no outgoing calls

Tested by 5

test_repr_htmlFunction · 0.76
test_repr_mimebundleFunction · 0.76