Location of reference for all magics to use in update_layout

Hi @joemac1985,

What you call magics is in fact a shorter method to access an inner item of a nested dictionary.

Using low level coding, suppose that we have the following initial settings for the dict xaxis:

layout = go.Layout(xaxis= {'range': [0, 12],
                           'showticklabels': False,
                           'title': {'text':  'x',
                                     'font': {'family': 'Balto',
                                              'size':10
                                             }
                                    } 
                          }
                   )

A nested dict is like a rooted tree: Here xaxis is the root. Magics is a Plotly rule of giving the path from the root to a children, located at some tree level.

We are updating the font size as follows:

xaxis_title_font_size=12

instead of the classical rule:

xaxis['title']['font']['size']=12    

Hence no reference to these magics is needed because from https://plotly.com/python/reference we can find the path from a root to a children and then just add underscore between the root and the next successor and two successive children.