title: Scale plot size of Matplotlib Plots in Jupyter Notebooks
body: <p>Is there a possibility to scale the plot size of matplotlib plots in jupyter notebooks? You could increase the plot size by changing the default values of <code>figure.figsize</code>, but this does not affect parameters like fontsize, linewidth, markersize etc. What I need is a plot where all the parameters are scaled accordingly.</p>
  
  <p>P.S.: To display plots in jupyter notebooks I use <code>%matplotlib inline</code>, see screenshot below.</p>
  
  <p><img src="https://i.imgur.com/dpHwbwS.png" alt="Image"></p>
  
  <h3>Edit</h3>
  
  <p>For completeness, here is a code snippet doing exactly what I needed:</p>
  
  <pre><code>def scale_plot_size(factor=1.5):
      import matplotlib as mpl
      default_dpi = mpl.rcParamsDefault['figure.dpi']
      mpl.rcParams['figure.dpi'] = default_dpi*factor
  </code></pre>