2

I am having an issue with resizing a bar chart using matplotlib in jupyter notebook, and even after going through other answered questions (How to make inline plots in Jupyter Notebook larger? and Plot width settings in ipython notebook) and using the methods described within the answers to those questions, my bar chart does not change size.

Output before resize: enter image description here

Output after resize: enter image description here

As you can see, even though the rcParams have clearly changed, the plot still remains the same size. Any pointers as to how I can resolve this issue would be greatly appreciated!

2
  • 1
    did you try setting the rc params to the new desired figsize before calling plt.figure()? or put plt.gcf().set_size_inches(*fig_size) before plt.show() Commented Nov 6, 2017 at 21:18
  • @aorr Yes, using the plt.gcf().set_size_inches(*fig_size) resolved my issue. Thank you so much for help! Commented Nov 6, 2017 at 21:25

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.