striplog icon indicating copy to clipboard operation
striplog copied to clipboard

Lithology histogram method

Open kwinkunks opened this issue 10 years ago • 1 comments

Make and plot a histogram of all depth samples, including empty ones, showing all lithologies.

kwinkunks avatar Jul 09 '15 16:07 kwinkunks

Something like:

comps, counts = s.histogram()

labels = [c.pay for c in comps]
colours = [legend.get_colour(c) for c in comps]

fig, ax = plt.subplots(figsize=(4,4))
ind = np.arange(len(comps))
bars = ax.bar(ind, counts, align='center')
ax.set_xticks(ind)
ax.set_xticklabels(labels)
for b, c in zip(bars, colours):
    b.set_color(c)
plt.show()

See Expert notebook, Histogram section, near the end.

kwinkunks avatar Mar 01 '19 21:03 kwinkunks