How can I decrease the y tick with matplotlib?
Here is my code for create the plot:
plt.plot(loss)
plt.locator_params(nbins=10)
plt.title('andamento loss')
plt.ylabel('loss')
plt.xlabel('epoch')
plt.show()
plt.savefig('andamento_loss.png')
but I get this error:
UserWarning: 'set_params()' not defined for locator of type <class 'matplotlib.category.StrCategoryLocator'>
str(type(self)))
How can I solve this problem?