Skip to content

Rewrite gallery example "track_sampling.py" #2282

Closed

Description

@yvonnefroehlich

Original posts by @weiji14 (#2190 (review)) and @seisman (#2190 (comment)) regarding gallery example track_sampling.py:

The original intention of the track_sampling.py gallery example added in #308 was to showcase the grdtrack data processing function, rather than as a proper 'map' per se.

Personally, I feel that having just one colorbar (the normalized elevation one) would be enough, since the background grayscale earth_relief elevation is just for context. But I also find normalized elevation to be hard to interpret (see my comment below), so not sure what's a good plan forward 😅 What are your thoughts?

Perhaps we can rewrite the grdtrack example to something like (https://docs.gmt-china.org/latest/examples/ex026/):
image

Activity

  1. added
    documentation
    on Dec 28, 2022
  2. added this to the 0.9.0 milestone on Dec 28, 2022
  3. added
    help wanted
    on Dec 28, 2022
  4. modified the milestones: 0.9.0, 0.10.0 on Mar 19, 2023
  5. yvonnefroehlich commented on Apr 23, 2023

    @yvonnefroehlich
    MemberAuthor

    Do we simply want to re-write the example at https://docs.gmt-china.org/latest/examples/ex026/ to PyGMT, or are there some ideas on how to change the existing gallery example track_sampling.py?

  6. weiji14 commented on Apr 23, 2023

    @weiji14
    Member

    Do we simply want to re-write the example at https://docs.gmt-china.org/latest/examples/ex026/ to PyGMT, or are there some ideas on how to change the existing gallery example track_sampling.py?

    Yes, it would be good to add ex026 as a new example for making cross-section plots along a transect. I would prefer to keep the existing track_sampling.py example intact if possible (because it's been surprisingly useful for catching bugs in the past, see e.g. #531), but no strong opinions on simply modifying it.

  7. yvonnefroehlich commented on Apr 24, 2023

    @yvonnefroehlich
    MemberAuthor

    Do we simply want to re-write the example at https://docs.gmt-china.org/latest/examples/ex026/ to PyGMT, or are there some ideas on how to change the existing gallery example track_sampling.py?

    Yes, it would be good to add ex026 as a new example for making cross-section plots along a transect.

    I started working on this in PR #2515.

    I would prefer to keep the existing track_sampling.py example intact if possible (because it's been surprisingly useful for catching bugs in the past, see e.g. #531), but no strong opinions on simply modifying it.

    From my side we can keep the track_sampling.py example. Just got the impression, that we want either the track_sampling.py example or the one from https://docs.gmt-china.org/latest/examples/ex026/.

  8. removed
    help wanted
    on Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions