Matplotlib 3.0 Cookbook
上QQ阅读APP看书,第一时间看更新

There's more...

You can reset all the parameters to their default values, using the rsdefaults() command, as shown in the following block:

# To restore all default parameters
matplotlib.rcdefaults()
plt.plot(x,y)
plt.show()

The graph will look as follows:

 

.