Answers for "matplotlib labels"

4

matplotlib axes labels

fig = plt.figure()
ax = fig.add_subplot(...)

ax.set_title('Title Here')

ax.set_xlabel('x label here')
ax.set_ylabel('y label here')
ax.set_zlabel('z label here')
Posted by: Guest on April-18-2020
0

python display name plot

plt.plot(x, y, label='First Line')
plt.plot(x2, y2, label='Second Line')
Posted by: Guest on December-16-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