Xlabel and ylabel are not shown
Peter Pearson
pkpearson at nowhere.invalid
Sun Aug 18 15:18:01 EDT 2019
On Sat, 17 Aug 2019 10:58:43 -0700 (PDT), Amirreza Heidari wrote:
> plt.figure(1)
> plt.plot(history.history["loss"], "b", label="Mean Square Error of training")
> plt.plot(history.history["val_loss"], "g", label="Mean Square Error [snip]
> plt.legend()
> plt.xlabel("Epoche")
> plt.ylabel("Mean Square Error")
> plt.xlim(0,200)
> plt.show()
> plt.savefig(r"C:\Users\aheidari\Dropbox\Dissertation\primary hot [snip]
It works for me (using simple, fake data points, of course). Perhaps
you could tell us which versions of Python and matplotlib you're using?
--
To email me, substitute nowhere->runbox, invalid->com.
More information about the Python-list
mailing list