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!

DGav
  • 271
  • 3
  • 14
  • 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()` – aorr Nov 06 '17 at 21:18
  • @aorr Yes, using the `plt.gcf().set_size_inches(*fig_size)` resolved my issue. Thank you so much for help! – DGav Nov 06 '17 at 21:25

0 Answers0