Answers for "plt 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

Python Answers by Framework

Browse Popular Code Answers by Language