Skip to content

Commit de88555

Browse files
dkweiss31jklymak
andauthored
Update galleries/examples/subplots_axes_and_figures/secondary_axis.py
make endpoints large in magnitude Co-authored-by: Jody Klymak <[email protected]>
1 parent cd1c6cc commit de88555

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

galleries/examples/subplots_axes_and_figures/secondary_axis.py

Lines 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)