bar

bar(tup, 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
  • tup (named-tuple) – The named tuple returned by various functions in the porespy.metrics submodule, such as chord_length_distribution.

  • h (str) – The value to use for bin heights. The default is pdf, but cdf 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, including edgecolor if you wish to overwrite the default black.

Returns

fig

Return type

Matplotlib figure handle