diff --git a/doc/users/artists.rst b/doc/users/artists.rst index ab42616bf871..b1e0e9476b02 100644 --- a/doc/users/artists.rst +++ b/doc/users/artists.rst @@ -104,7 +104,7 @@ The Axes also has helper methods to configure and decorate the x-axis and y-axis tick, tick labels and axis labels:: xtext = ax.set_xlabel('my xdata') # returns a Text instance - ytext = ax.set_ylabel('my xdata') + ytext = ax.set_ylabel('my ydata') When you call :meth:`ax.set_xlabel `, it passes the information on the :class:`~matplotlib.text.Text`