You can reset all the parameters to their default values, using the rsdefaults() command, as shown in the following block:
# To restore all default parametersmatplotlib.rcdefaults() plt.plot(x,y)plt.show()
The graph will look as follows:
.