jade.basic.plotting.error_bars.calculate_set_errorbars_hist(ax, data, x, y, binomial_distro=True, total_column='total_entries', y_freq_column=None, x_order=None, hue_order=None, hue=None, caps=True, color='k', linewidth=0.75, base_columnwidth=0.8, full=True)[source]

Calculates the standard deviation of the data, sets erorr bars for a bar chart. Default base_columnwidth for seaborn plots is .8

Optionally give x_order and/or hue_order for the ordering of the columns. Make sure to pass this while plotting. Note:

If Hue is enabled, this base is divided by the number of hue_names for the final width used for plotting.
Parameters:
  • ax – mpl.Axes
  • data – pandas.DataFrame
  • x – str
  • y – str
  • binomial_distro – bool
  • total_column – str
  • y_freq_column – str
  • x_order – list
  • hue_order – list
  • hue – str
  • caps – bool
  • color – str
  • linewidth – float
  • base_columnwidth – float
  • full – bool
Return type:

None

jade.basic.plotting.error_bars.calculate_set_errorbars_scatter(ax, data, x, y, binomial_distro=False, total_column='total_entries', caps=False, color='k', lw=1.5)[source]

(Untested) - Calculates the standard deviation of the data, sets error bars for a typical scatter plot