bar

Import packages

[1]:
import porespy as ps
import matplotlib.pyplot as plt
ps.visualization.set_mpl_style()

Create input:

[2]:
im = ps.generators.blobs([100, 100])
tup = ps.metrics.chord_length_distribution(im)

Display image:

[3]:
fig, ax = plt.subplots(figsize=[7, 7]);
plt.axis(False);
ps.visualization.bar(tup)
plt.title("default, h = 'pdf'");
../../../_images/examples_visualization_howtos_bar_6_0.png

h

[4]:
fig, ax = plt.subplots(figsize=[7, 7]);
plt.axis(False);
ps.visualization.bar(tup, h = 'cdf')
plt.title("h = 'cdf'");
../../../_images/examples_visualization_howtos_bar_8_0.png