make_fig_ax

mastml.plots.make_fig_ax(aspect_ratio=0.5, x_align=0.65, left=0.1)[source]

Method to make matplotlib figure and axes objects. Using Object Oriented interface from https://matplotlib.org/gallery/api/agg_oo_sgskip.html

Args:

aspect_ratio: (float), aspect ratio for figure and axes creation

x_align: (float), x position to draw edge of figure. Needed so can display stats alongside plot

left: (float), the leftmost position to draw edge of figure

Returns:

fig: (matplotlib fig object), a matplotlib figure object with the specified aspect ratio

ax: (matplotlib ax object), a matplotlib axes object with the specified aspect ratio