'Change title font size in Plotly

I'm trying to update the title font size on my plot using the Plotly library, but it doesn't works. This is how I defined my layout:

y_layout = {
        'title': 'y / y_hat comparison',
        'shapes': y_shapes,
        'title_font_size': 6,
    }
y_df.iplot(kind='scatter', layout=y_layout)

It correctly set the the title and the shapes, but not the font size.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source