change axis labels matplotlib code example
Example 1: set axis labels python
plt.xlabel("X axis label")
plt.ylabel("Y axis label")
plt.plot(range(5))
plt.xlabel("X axis label")
plt.ylabel("Y axis label")
plt.title("Figure title", fontsize = 20)
Example 2: changing axis labels matplotlib
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
labels = [item.get_text() for item in ax.get_xticklabels()]
labels[1] = 'Testing'
ax.set_xticklabels(labels)
Example 3: change xticks python
plt.xticks(np.arange(0,10),np.arange(10,20))