Save plot from matplotlib so that plot is centered
I am trying to make a plot in Python using matplotlib
. Specifically, I am using contourf(Xm,Ym,Zm)
with colorbar
and saving the plot using figX.savefig('name')
, with Xm,Ym,Zm
being some meshgrids.
Save plot from matplotlib so that plot is centered
I am trying to make a plot in Python using matplotlib
. Specifically, I am using contourf(Xm,Ym,Zm)
with colorbar
and saving the plot using figX.savefig('name')
, with Xm,Ym,Zm
being some meshgrids.
How to reduce unnecessary white spaces in matplotlib subplot2grid?
I’m creating some plots with histograms and a color bar, but I’m struggling with the huge white gaps between subplots and I don’t know how to reduce them. This an example of a more complex code:
Changing the size of TransformedBbox in matplotlib
When using copy_from_bbox of matplotlib’s canvas, is it possible to create a background by changing xlim and ylim?
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.
adding matplotlib plot directly to word document without saving image to disk first
I can add a plot generated by matpltlib to word file (using python-docx) if I save the plot as a .png file first using the following lines of code
Three plots sharing x-axis on top of each other as in figure
I’m struggling with matplotlib
.
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.