0

I'm working with pandas and a few other visualization libraries in a Jupyter Notebook. I have a dataframe with 80 columns (variables). I want to make a very wide boxplot image so I can see each boxplot.

When I use the simple boxplot method it horizontally compresses the image so it can all be seen at once.

enter image description here

I would like to horizontally stretch the image so each boxplot can be seen. Ideally I would be scrolling to the side to look at all of the plots.

Edit: After using the figsize parameter I'm thinking maybe the problem is the Jupyter notebook scaling the image down. Has anyone ever experienced this with Jupyter?

This is after using figsize. enter image description here

But its just too small to see.

QHarr
  • 83,427
  • 12
  • 54
  • 101
Jordan
  • 3
  • 4
  • Maybe the `figsize` parameter? – BigBen Apr 18 '23 at 19:05
  • Thanks @BigBen that did help! now I just need to figure out how to stop jupyter from scaling the image down! – Jordan Apr 18 '23 at 19:29
  • You could also try plt.tight_layout() - this might help ensure that the whole image is maintained without scaling down. – Michael Grogan Apr 18 '23 at 19:57
  • I realized I shouldn't have been trying to put all of the boxplot's in the same image. The scale for SalePrice of a house made NumberofBedrooms impossible to see. I ended up printing a new boxplot for each variable. – Jordan Apr 20 '23 at 21:07

0 Answers0