How to Set X-Axis Values in Matplotlib in Python?
https://www.geeksforgeeks.org/how-to-set-x-axis-values-in-matplotlib-in-python/
WEBSep 13, 2022 · Example #1 : In this example, we will be setting up the X-Axis Values in Matplotlib using the xtick () function in the python programming language. Python3. import matplotlib.pyplot as plt. x = [1, 2, 3, 4, 5, 6] y = [3, 1, 4, 5, 3, 6] labels = ['A', 'B', 'C', 'D', 'E', 'F'] plt.plot(x, y) plt.xlabel("X-Axis") plt.ylabel("Y-Axis")
DA: 19 PA: 49 MOZ Rank: 18