Skip to content

Commit f80f61e

Browse files
committed
Use a consistent figure size for style sheet reference
1 parent 25a54a4 commit f80f61e

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

examples/style_sheets/style_sheets_reference.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,8 @@ def plot_figure(style_label=""):
104104
# across the different figures.
105105
prng = np.random.RandomState(96917002)
106106

107-
# Tweak the figure size to be better suited for a row of numerous plots:
108-
# double the width and halve the height. NB: use relative changes because
109-
# some styles may have a figure size different from the default one.
110-
(fig_width, fig_height) = plt.rcParams['figure.figsize']
111-
fig_size = [fig_width * 2, fig_height / 2]
112-
113-
fig, axs = plt.subplots(ncols=6, nrows=1, num=style_label,
114-
figsize=fig_size, squeeze=True)
107+
fig, axs = plt.subplots(ncols=6, nrows=1, num=style_label, squeeze=True,
108+
figsize=(12, 3))
115109
axs[0].set_ylabel(style_label)
116110

117111
plot_scatter(axs[0], prng)

0 commit comments

Comments
 (0)