Here is a simple example of a line plot, using the matplotlib library.
Changing the axis labels
We can change the labels and the axis values themselves.
In order to change the axis labels we use the axes.set_xlabel() and axes.set_ylabel() methods as in the following example.
More on plots
If you want to know more about how to add labels, plot different types of plots, etc... checkout the other articles I wrote on the topic, just here :