'Update the layout of the Plotly graph.
Args:
layout (dict):
dict where keys are the graph attribute strings
and values are the value of the graph attribute.
To update graph objects that are nested, like
the title of an axis, combine the keys with a period
e.g. `xaxis.title`. To set a value of an element in an array,
like an axis\'s range, use brackets, e.g. \'xaxis.range[0]\'.
To replace an entire nested object, just specify the value to
the sub-object. See example 4 below.
See all of the layout attributes in our reference documentation
https://plot.ly/python/reference/#Layout
Or by calling `help` on `plotly.graph_objs.Layout`
Examples - Start each example below with this setup:
Initialization:
from plotly.widgets import GraphWidget
from IPython.display import display
graph = GraphWidget(\'https://plot.ly/~chris/3979\')
display(graph)
Example 1 - Update the title
graph.relayout({\'title\': \'Experimental results\'})
Example 2 - Update the xaxis range
graph.relayout({\'xaxis.range\': [-1, 6]})
Example 3 - Update the first element of the xaxis range
graph.relayout({\'xaxis.range[0]\': -3})
Example 4 - Replace the entire xaxis object
graph.relayout({\'xaxis\': {\'title\': \'Experimental results\'}})'

def relayout(self, layout):

    message = {'task': 'relayout', 'update': layout, 'graphId': self._graphId}
    self._handle_outgoing_message(message)
