argopy.plotters.bar_plot

bar_plot(df: pandas.core.frame.DataFrame, by: str = 'institution', style: str = 'whitegrid', with_seaborn: bool = False, **kwargs)[source]

Create a bar plot for an Argo index dataframe

Parameters
df: Pandas DataFrame

As returned by a fetcher index property

by: str

The profile property to plot. Default is ‘institution’

style: str

Define the axes style: ‘white’, ‘darkgrid’, ‘whitegrid’, ‘dark’, ‘ticks’. Only used if Seaborn is available.

Returns
fig: matplotlib.figure.Figure
ax: matplotlib.axes.Axes