Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional Interval descriptions in striplog plots #156

Open
kwinkunks opened this issue May 26, 2022 · 0 comments
Open

Optional Interval descriptions in striplog plots #156

kwinkunks opened this issue May 26, 2022 · 0 comments

Comments

@kwinkunks
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant