plot_stats¶
-
mastml.plot_helper.
plot_stats
(fig, stats, x_align=0.65, y_align=0.9, font_dict={}, fontsize=14)[source]¶ Method that prints stats onto the plot. Goes off screen if they are too long or too many in number.
Args:
fig: (matplotlib figure object), a matplotlib figure object
stats: (dict), dict of statistics to be included with a plot
x_align: (float), float denoting x position of where to align display of stats on a plot
y_align: (float), float denoting y position of where to align display of stats on a plot
font_dict: (dict), dict of matplotlib font options to alter display of stats on plot
fontsize: (int), the fontsize of stats to display on plot
Returns:
None