Thank you for reading this post.
I would like to load saved plot (graph) drawn by matplotlib and edit in python to resize it.
Is there anyway how to do this?
Simply becuase the subtitle of one graph and x_ticks were overlapped and looks uggly.
Please help me out.
Thanks.
Sincerely,
SANGWOO SON.
Asked
Active
Viewed 820 times
0

손상우
- 111
- 1
- 9
-
1If you saved this graph as an image already, then there is no way you can import this and then resize and save it back, since the graph is converted to an image now. You need to draw/create this graph and then save it again. – krxat Jul 30 '20 at 10:55
1 Answers
1
As said by Arjun Muraleedharan, once you save your plot in Matplotlib, you will not be able to modify it.
However, if your problem is with the axes overlapping in the image, then try plt.tight_layout()
. Call this just before your plt.show()
in your code, assuming you did import matplotlib.pyplot as plt
.
What it does is it prevents any overlapping of anything in your plots and makes everything look a lot neater, which (I think) is what you are looking for.

Arvind Raghu
- 408
- 3
- 9