Since I usually try to label my axes in matplotlib plots, I find that I regularly label the x/y/z axes individually, using something like this:
fig = plt.figure()
ax = fig.add_subplot(1, 1, 1, projection='3d')
# <plot plot plot>
ax.set_xlabel('x')
ax.set_ylabel('y')
ax.set_zlabel('z')
Is there a way to reduce the individual axis-label setting to one command, ideally something like ax.set_labels(['x', 'y', 'z'])
?