Skip to content

Commit 864c2c5

Browse files
authored
Adjust plot sizes for Gamma distribution visualizations
1 parent 7776cec commit 864c2c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Chapters/Distributions.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ dist = pz.Gamma(3, 2)
150150
mean = dist.mean()
151151
median = dist.median()
152152
mode = dist.mode()
153-
ax = dist.plot_pdf(figsize=(10, 3), legend="title")
153+
ax = dist.plot_pdf(figsize=(8, 3), legend="title")
154154
for idx, (stat, value) in enumerate(zip(
155155
[f"mean = {mean:.1f}", f"median = {median:.1f}", f"mode = {mode:.1f}"], [mean, median, mode]
156156
)):
@@ -194,7 +194,7 @@ For some distributions like asymmetric ones, the HDI is usually preferred over t
194194
#| code-fold: true
195195
#| label: credible-intervals
196196
#| fig-cap: "HDI (top) and ETI (bottom) credible intervals for a Gamma distribution. The thin line of the interval shows the 89% interval and the thick line shows the 50% interval."
197-
_, ax = plt.subplots(2, 1, figsize=(10, 3), sharex=True)
197+
_, ax = plt.subplots(2, 1, figsize=(8, 3), sharex=True)
198198
dist = pz.Gamma(3, 2)
199199
dist.plot_pdf(ax=ax[0], legend="title", pointinterval=True, interval="hdi")
200200
dist.plot_pdf(ax=ax[1], legend=None, pointinterval=True, interval="eti");

0 commit comments

Comments
 (0)