diff --git a/examples/statistics/hist.py b/examples/statistics/hist.py index 6e3627a9aeab..98e1f95d43eb 100644 --- a/examples/statistics/hist.py +++ b/examples/statistics/hist.py @@ -46,7 +46,7 @@ # edit the histogram to our liking. Let's change the color of each bar # based on its y value. -fig, axs = plt.subplots(1, 2, figsize=(10, 5), tight_layout=True) +fig, axs = plt.subplots(1, 2, tight_layout=True) # N is the count in each bin, bins is the lower-limit of the bin N, bins, patches = axs[0].hist(x, bins=n_bins) @@ -87,7 +87,7 @@ # Customizing a 2D histogram is similar to the 1D case, you can control # visual components such as the bin size or color normalization. -fig, axs = plt.subplots(1, 3, figsize=(15, 5), sharex=True, sharey=True, +fig, axs = plt.subplots(3, 1, figsize=(5, 15), sharex=True, sharey=True, tight_layout=True) # We can increase the number of bins on each axis