Skip to content

Commit 132c838

Browse files
dkweiss31timhoffm
andauthored
Update galleries/examples/subplots_axes_and_figures/secondary_axis.py
explicitly label x2 = x1**2 Co-authored-by: Tim Hoffmann <[email protected]>
1 parent de88555 commit 132c838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

galleries/examples/subplots_axes_and_figures/secondary_axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def one_over(x):
116116
x2_vals = x1_vals ** 2
117117
ydata = 50.0 + 20 * np.random.randn(len(x1_vals))
118118
ax.plot(x1_vals, ydata, label='Plotted data')
119-
ax.plot(x1_vals, x2_vals, label=r'$x_2(x_1)$')
119+
ax.plot(x1_vals, x2_vals, label=r'$x_2 = x_1^2$')
120120
ax.set_xlabel(r'$x_1$')
121121
ax.legend()
122122

0 commit comments

Comments
 (0)