Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update_layout argument list with Plotly

Tags:

python

plotly

I am learning to use Plotly and in every single example the layout is updated with fig.update_layout(...

https://plotly.com/python/text-and-annotations/

And I would like to know exactly everything which is possible to do there.

Where could I find the exhaustive argument list for

fig.update_layout( ???
like image 616
Bertrand Avatar asked Oct 24 '25 17:10

Bertrand


2 Answers

As the name implies, 'update layout', you can update alot of things with it.

Check out: https://plotly.com/python/reference/layout/

like image 99
AbdulHafeez Avatar answered Oct 26 '25 07:10

AbdulHafeez


You can easily compute :

fig.update_layout(
        title=title,
        xaxis_title=xaxis,
        yaxis_title=yaxis)

where title, xaxis_title and yaxis_title are strings.

like image 22
salomepx Avatar answered Oct 26 '25 06:10

salomepx