Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 132c838

Browse filesBrowse files
dkweiss31timhoffm
andauthored
Update galleries/examples/subplots_axes_and_figures/secondary_axis.py
explicitly label x2 = x1**2 Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent de88555 commit 132c838
Copy full SHA for 132c838

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎galleries/examples/subplots_axes_and_figures/secondary_axis.py

Copy file name to clipboardExpand all lines: galleries/examples/subplots_axes_and_figures/secondary_axis.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.