agilescientific / striplog

Lithology and stratigraphic logs for wells or outcrop.

Home Page:https://code.agilescientific.com/striplog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optional Interval descriptions in striplog plots

kwinkunks opened this issue · comments

POC here Evan made two axes, one for the Striplog, one for the descriptions. Features include text wrapping and minimum interval thickness thresholding to avoid text collisions (only thick intervals get text).

image

Matt: should not be too hard to adapt the existing label arg in Striplog.plot(). It's pretty close already, taking any component properties (label='lithology') or a format string thing for multiple properties, eg label='{colour} {lithology}'.

The relevant code is https://github.com/agilescientific/striplog/blob/main/striplog/striplog.py#L1678-L1690

If the inner if had elif label=='description': label_text = iv.description (at line 1682) that should do it

The minimum thickness to label should probably just be another arg (label_min_thickness or whatever), although to give finer control a person could always make another field in the interval that only exists for certain beds.