close

How to make inline plots in Jupyter Notebook larger?

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to make inline plots in Jupyter Notebook larger in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How to make inline plots in Jupyter Notebook larger?

  1. How to make inline plots in Jupyter Notebook larger?

    Yes, play with figuresize and dpi like so (before you call your subplot):
    fig=plt.figure(figsize=(12,8), dpi= 100, facecolor='w', edgecolor='k')

  2. make inline plots in Jupyter Notebook larger

    Yes, play with figuresize and dpi like so (before you call your subplot):
    fig=plt.figure(figsize=(12,8), dpi= 100, facecolor='w', edgecolor='k')

Method 1

The default figure size (in inches) is controlled by

matplotlib.rcParams['figure.figsize'] = [width, height]

For example:

import matplotlib.pyplot as plt
plt.rcParams['figure.figsize'] = [10, 5]

creates a figure with 10 (width) x 5 (height) inches

Method 2

Yes, play with figuresize and dpi like so (before you call your subplot):

fig=plt.figure(figsize=(12,8), dpi= 100, facecolor='w', edgecolor='k')

you can also change the defaults if it’s not a one-off:

plt.rcParams['figure.figsize'] = [12, 8]
plt.rcParams['figure.dpi'] = 100 # 200 e.g. is really fine, but slower

Summery

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read