Skip to content

Optional Interval descriptions in striplog plots #156

@kwinkunks

Description

@kwinkunks

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions