bar#
- bar(results, h='pdf', **kwargs)[source]#
Convenience wrapper for matplotlib’s
bar
.This automatically:
fetches the
bin_centers
fetches the bin heights from the specified
h
sets the bin widths
sets the edges to black
- Parameters:
results (object) – The objects returned by various functions in the
porespy.metrics
submodule, such aschord_length_distribution
.h (str) – The value to use for bin heights. The default is
pdf
, butcdf
is another option. Depending on the function the named-tuple may have different options.kwargs (keyword arguments) – All other keyword arguments are passed to
bar
, includingedgecolor
if you wish to overwrite the default black.
- Returns:
fig
- Return type:
Matplotlib figure handle
Examples
Click here to view online example.