hor_barplot_exp_plot

nawdex_analysis.plot.stacked_analysis_plots.hor_barplot_exp_plot(dset, vname, idlist='all', catlist='all', iddim='idname', catdim='ct', obsref_name='msevi-scaled', doffset=0.05, offset0=-0.4, icount0=0, make_labels=True)

A generic function that makes a colorful plot with categories stacked in the vertical. In each category, the different IDs are also stacked.

Parameters:
  • dset (xarray Dataset) – dataset object containing variables for different IDs and categories
  • vname (str) – variable to be plotted
  • idlist (list, optional, default = 'all') – list of IDnames to be stacked and compared if ‘all’: all IDs will be used
  • catlist (list, optional, default = 'all') – list of categories to be stacked and compared if ‘all’: all categories will be used
  • iddim (str, optional, default = 'idname') – name of the dimension that contains IDnames
  • catdim (str, optional, default = 'idname') – name of the dimension that contains category names
Returns:

ax – axis instance which contains the plot

Return type:

pylab axis object