'How to change the default font size in plotly?

I generally would like to have large font sizes in plotly figures.

Is there a way to do that globally with themes? And how can I do that for a single figure after creating it e.g. with

fig = px.scatter(...)


Sources

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

Source: Stack Overflow

Solution Source