I have a matplotlib plot of >200 vertical bar charts.
# first line of code:
fig, ax = plt.subplots(figsize=(5, 100), dpi=150)
Despite setting the figsize
to huge values, it does not apply the value and the chart gets crammed with overlapping rows:
I am using matplotlib 3.3.3 and Python 3.9.1. The issue occures both when executing the python script via command line and pyCharm.
I also tried exporting as PDF using fig.savefig(pdfpath, bbox_inches='tight')
but it looks the same.
What do I need to change? Is there a maximum figsize?
Does my screen resolution/size limit the max figsize?
Edit: If I set figsize
to even lager value, e.g. 4000 inches, then I run into
error "Fail to create pixmap with Tk_GetPixmap in TkImgPhotoInstanceSetSize"
question from:
https://stackoverflow.com/questions/65883665/matplotlib-increase-figure-height-plot-spacing-is-there-a-max-fixsize 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…