We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22d5ecd commit 609974cCopy full SHA for 609974c
pymc3/plots/artists.py
@@ -112,13 +112,15 @@ def display_hpd():
112
hpd_intervals = hpd(trace_values, alpha=alpha_level)
113
ax.plot(hpd_intervals, (plot_height * 0.02,
114
plot_height * 0.02), linewidth=4, color='k')
115
- text_props = dict(size=text_size, horizontalalignment='center')
116
ax.text(hpd_intervals[0], plot_height * 0.07,
117
- hpd_intervals[0].round(round_to), **text_props)
+ hpd_intervals[0].round(round_to),
+ size=16, horizontalalignment='right')
118
ax.text(hpd_intervals[1], plot_height * 0.07,
119
- hpd_intervals[1].round(round_to), **text_props)
+ hpd_intervals[1].round(round_to),
120
+ size=16, horizontalalignment='left')
121
ax.text((hpd_intervals[0] + hpd_intervals[1]) / 2, plot_height * 0.2,
- format_as_percent(1 - alpha_level) + ' HPD', **text_props)
122
+ format_as_percent(1 - alpha_level) + ' HPD',
123
+ size=16, horizontalalignment='center')
124
125
def format_axes():
126
ax.yaxis.set_ticklabels([])
0 commit comments