Answers for "plt.plot python axis"

0

set axis plt python

from matplotlib import pyplot as plt
plt.axis([0, 10, 0, 20])
Posted by: Guest on November-28-2020
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

Python Answers by Framework

Browse Popular Code Answers by Language