more on line plot (1)
more on line plot (1)
Output:
*****
We can see in the above output image that there is no label on the x-axis and y-axis. Since labeling is
necessary for understanding the chart dimensions. In the following example, we will see how to add
labels, Ident in the charts.
import matplotlib.pyplot as plt
import numpy as np
plt.plot(x, y)
plt.xlabel("X-axis") # add X-axis label
plt.ylabel("Y-axis") # add Y-axis label
plt.title("Any suitable title") # add title
plt.show()