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 de88555

Browse filesBrowse files
dkweiss31jklymak
andauthored
Update galleries/examples/subplots_axes_and_figures/secondary_axis.py
make endpoints large in magnitude Co-authored-by: Jody Klymak <jklymak@gmail.com>
1 parent cd1c6cc commit de88555
Copy full SHA for de88555

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
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
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ def one_over(x):
122122

123123
# need to define mapped values outside of plotted range to ensure the secondary
124124
# axis is plotted correctly
125-
x1n = np.concatenate(([0.0], x1_vals, [20]))
126-
x2n = np.concatenate(([0.0], x2_vals, [20**2]))
125+
x1n = np.concatenate(([-1e10, 0], x1_vals, [20, 1e10]))
126+
x2n = np.concatenate(([-1e10, 0], x2_vals, [20**2, 1e10**2]))
127127

128128

129129
def forward(x):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.