Very Small Output for Plots

Screen Link: https://app.dataquest.io/m/145/histograms-and-box-plots/5/comparing-histograms

fig = plt.figure(figsize=(5,20))
ax1 = fig.add_subplot(4,1,1)
ax2 = fig.add_subplot(4,1,2)
ax3 = fig.add_subplot(4,1,3)
ax4 = fig.add_subplot(4,1,4)

ax1.hist(norm_reviews["Fandango_Ratingvalue"], 20, range=(0,5))
ax1.set_title("Distribution of Fandango Ratings")
ax1.set_ylim(0,50)

ax2.hist(norm_reviews["RT_user_norm"], 20, range=(0,5))
ax2.set_title("Distribution of Rotten Tomatoes Ratings")
ax2.set_ylim(0,50)

ax3.hist(norm_reviews["Metacritic_user_nom"], 20, range=(0,5))
ax3.set_title("Distribution of Metacritic Ratings")
ax3.set_ylim(0,50)

ax4.hist(norm_reviews["IMDB_norm"], 20, range=(0,5))
ax4.set_title("Distribution of IMDB Ratings")
ax4.set_ylim(0,50)



plt.plot()

When I run the above code, the output is really small and I can actually read the histograms I made. I tried increasing the figsize but it just makes it unreadable in that particular output. Is this the script.py terminal or is it something I’m doing wrong?

1 Like

Hi @burnsdillion,

The output section is just trying to make the image fit into that area. To view the original size, right click the image and open it in a new tab like this:

Now, let’s try changing the size to (10, 40):

As you can see, the image size got really big.

Best,
Sahil

2 Likes

Thank you! @Sahil This is great :slight_smile:

2 Likes