I have made a plot, and I don't want extra whitespaces in my plot; the question is:
How can I strip extra whitespaces from a plot?
I know you can strip extra whitespaces from a plot when you save it; Then you just do this: plt.savefig('file_name.png', bbox_inches='tight')
But I can't find any similar arguments you can pass to plt.plot()
to have no extra whitespaces. Is it possible to pass an argument to plt.plot()
?