-
-
Notifications
You must be signed in to change notification settings - Fork 458
Plot hierarchy
Ari Hartikainen edited this page Nov 17, 2019
·
8 revisions
NOTE: This currently WIP
Function structure:
function = one axis <-> one function
{function1, function2} = one axis <-> select one function
(function1, function2) = one axis <-> multiple functions
function_name <- function_combine[{function_select1,function_select2},function_name1,(function_same_ax1, function_same_axis2)]
ArviZ has hierarchical plot-function structure.
The first level functions operates against one axis with one or more variables. Each function then calls backend function to do actual plotting.
These functions include:
plot_one_kdeplot_one_histplot_one_sampleplot_one_boxplot_one_rugplot_one_textplot_one_pointplot_one_autocorrplot_one_rank
The common input and default values for these functions are
*arr: one or two {ndarray, str}
source: {xarray.Dataset, pandas.DataFrame,bokeh.ColumnDataSource}; optional
ax: {matplotlib.axis, bokeh.figure}; optional
labels: one or two {str, bokeh.Text}
line_kwargs: {dict}; optional
line properties
fill_kwargs: {dict}; optional
area properties
special_kwargs: {dict}; optional
special plot specific properties
backend: {"matplotlib","bokeh"}
Atomic plot returns the axis.
plot_hpdplot_regressionplot_pairplot_parallelplot_essplot_density <- plot_one_kde
plot_rankplot_ppcplot_jointplot_autocorr <- plot_grid[plot_one_autocorr]plot_trace <- plot_grid[plot_grid[plot_dist,{plot_one_sample,plot_one_rank}]]plot_forest <- plot_grid[plot_grid[{plot_box,plot_kde,plot_violin},plot_one_point,plot_one_point]]
plot_compareplot_elpdplot_energy <- plot_one_kdeplot_khatplot_loopitplot_posterior <- plot_grid[(plot_dist,plot_text)]
plot_dashboardplot_grid