python matplotlib plots preview not display properly

when I use the matplotlib libray in python and draw a simple plot, the margin croped parts of the figure. Please refer to the snap and code below:

import matplotlib.pyplot as plt
plt.plot(range(0,1000),range(0,1000))
plt.xlabel('Number',fontsize=18)
plt.show()

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.