Skip to content

Commit 8fb7f0f

Browse files
committed
Shrink Zoom Window to fit side-by-side in docs
This is a small tweak to make it fit in one line when the CSS to drop the max-width is added.
1 parent 46c44b6 commit 8fb7f0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/event_handling/zoom_window.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
# Fixing random state for reproducibility
3030
np.random.seed(19680801)
3131

32-
figsrc, axsrc = plt.subplots()
33-
figzoom, axzoom = plt.subplots()
32+
figsrc, axsrc = plt.subplots(figsize=(3.7, 3.7))
33+
figzoom, axzoom = plt.subplots(figsize=(3.7, 3.7))
3434
axsrc.set(xlim=(0, 1), ylim=(0, 1), autoscale_on=False,
3535
title='Click to zoom')
3636
axzoom.set(xlim=(0.45, 0.55), ylim=(0.4, 0.6), autoscale_on=False,

0 commit comments

Comments
 (0)