Relative Content

Tag Archive for pythonpython-3.xmatplotlib

matplotlib uses tight layout when it’s not specified

I copied and pasted code from this matplotlib demo into my python IDE, and the figure it produced had larger figure margins than the demo figure. It looks to me like matplotlib is calling tight layout internally. How do I force matplotlib to use the original/demo margins?

Matplotlib layout problems

I am writing some mass spec data reduction software in Python v3.7.9, and using matplotlib v3.5.3 to display the data.

Python matplotlib program hangs after every interval after using for loop

Below is my python matplotlib code. It was working fine until I used the for loop in it to reduce the repeated code lines. Now, after every 1 second, the bar chart window hangs for 1 second. When I try to mouse hover on the bar chart it hangs for every 1 second. Also, when I try to drag the entire window on screen then also, it hangs for every 1 second.