Is it possible to scale the size of the matplotlib graphs in jupyter laptops? You can increase the size of the graph by changing the default values figure.figsize, but this does not affect parameters such as fontsize, linewidth, markersize, etc. I need a graph in which all parameters are scaled accordingly.
PS: I use jupyter laptops to display graphs %matplotlib inline, see screenshot below.

Edit
For completeness, here is a snippet of code that does exactly what I need:
def scale_plot_size(factor=1.5):
import matplotlib as mpl
default_dpi = mpl.rcParamsDefault['figure.dpi']
mpl.rcParams['figure.dpi'] = default_dpi*factor
Timon source
share