@@ -64,12 +64,12 @@ def display_ref_val(ref_val):
64
64
ax .axvline (ref_val , ymin = 0.02 , ymax = .75 , color = 'g' ,
65
65
linewidth = 4 , alpha = 0.65 )
66
66
ax .text (trace_values .mean (), plot_height * 0.6 , ref_in_posterior ,
67
- size = 14 , horizontalalignment = 'center' )
67
+ size = text_size , horizontalalignment = 'center' )
68
68
69
69
def display_rope (rope ):
70
70
ax .plot (rope , (plot_height * 0.02 , plot_height * 0.02 ),
71
71
linewidth = 20 , color = 'r' , alpha = 0.75 )
72
- text_props = dict (size = 16 , horizontalalignment = 'center' , color = 'r' )
72
+ text_props = dict (size = text_size , horizontalalignment = 'center' , color = 'r' )
73
73
ax .text (rope [0 ], plot_height * 0.14 , rope [0 ], ** text_props )
74
74
ax .text (rope [1 ], plot_height * 0.14 , rope [1 ], ** text_props )
75
75
@@ -102,13 +102,13 @@ def display_hpd():
102
102
plot_height * 0.02 ), linewidth = 4 , color = 'k' )
103
103
ax .text (hpd_intervals [0 ], plot_height * 0.07 ,
104
104
hpd_intervals [0 ].round (round_to ),
105
- size = 16 , horizontalalignment = 'right' )
105
+ size = text_size , horizontalalignment = 'right' )
106
106
ax .text (hpd_intervals [1 ], plot_height * 0.07 ,
107
107
hpd_intervals [1 ].round (round_to ),
108
- size = 16 , horizontalalignment = 'left' )
108
+ size = text_size , horizontalalignment = 'left' )
109
109
ax .text ((hpd_intervals [0 ] + hpd_intervals [1 ]) / 2 , plot_height * 0.2 ,
110
110
format_as_percent (1 - alpha_level ) + ' HPD' ,
111
- size = 16 , horizontalalignment = 'center' )
111
+ size = text_size , horizontalalignment = 'center' )
112
112
113
113
def format_axes ():
114
114
ax .yaxis .set_ticklabels ([])
@@ -119,7 +119,7 @@ def format_axes():
119
119
ax .yaxis .set_ticks_position ('none' )
120
120
ax .xaxis .set_ticks_position ('bottom' )
121
121
ax .tick_params (axis = 'x' , direction = 'out' , width = 1 , length = 3 ,
122
- color = '0.5' )
122
+ color = '0.5' , labelsize = text_size )
123
123
ax .spines ['bottom' ].set_color ('0.5' )
124
124
125
125
def set_key_if_doesnt_exist (d , key , value ):
0 commit comments