Answers for "matplotlin axes.axis"

0

matplotlib axis labels

ticks = [0, 1, 2]
labels = ["a", "b", "c"]

plt.figure()
plt.xticks(ticks, labels)
plt.show()
Posted by: Guest on June-17-2021
0

matplotlive y axis

from matplotlib.pyplot.ylim
plt.ylim(-2, 2)
plt.xlim(0,10)
Posted by: Guest on March-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language