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

  • results (object) – The objects 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.



Return type:

Matplotlib figure handle


Click here to view online example.