Relative Content

Tag Archive for pythonmatplotlib

How to remove padding between the plot and window

I’m trying to rebuild the solar system in a 3D – koordinate system. I build one sphere as the sun and multiple circles (orbits) around it with sphere as planets. But I don’t know how I can remove the padding between the plot and window so you can see the right and left side of the orbit.

How to remove padding between the plot and window

I’m trying to rebuild the solar system in a 3D – koordinate system. I build one sphere as the sun and multiple circles (orbits) around it with sphere as planets. But I don’t know how I can remove the padding between the plot and window so you can see the right and left side of the orbit.

How to remove padding between the plot and window

I’m trying to rebuild the solar system in a 3D – koordinate system. I build one sphere as the sun and multiple circles (orbits) around it with sphere as planets. But I don’t know how I can remove the padding between the plot and window so you can see the right and left side of the orbit.

How to resize figure to fit window on event in matplotlib?

I’ve already got help with this problem, but stuck again.
I’m trying to pre-generate and store matplotlib figures in python, and then display them on a keyboard event (left-right cursor keys).
It is working fine, but will not fit the figures (after the first one) to the window.
How can I do that?
If I manually resize the window, then the figure will be adjusted to fit, but it is not working automatically.