Skip to content

Conversation

@PaulWessel
Copy link
Member

Description of proposed changes

To date, we have been able to plot (draw or fill) DCW countries or dump their coordinates to stdout. This PR adds clipping to the mix. With the new modifiers +c and +C you can use coast to set up clip paths that will affect the following plotting commands until you terminate clipping with clip -C. There are two flavors to the clipping option:

  1. +c will set up clip paths so the things plotted inside the paths will be visible.
  2. +C will set up clip paths so the things plotted outside the paths (i.e., between the map boundary and the paths) will be visible.

I have added a test script for this (coastclip.sh) which sets up these paths and then tries to paint the entire region using basemap -B+g:

coastclip

@PaulWessel PaulWessel self-assigned this Jun 15, 2021
@PaulWessel PaulWessel added new core module feature PR that implements a new core module feature new feature PR that implements a new feature or capability in GMT labels Jun 15, 2021
@PaulWessel PaulWessel added this to the 6.3.0 milestone Jun 15, 2021
@PaulWessel PaulWessel added the add-changelog Add PR to the changelog label Jun 15, 2021
@PaulWessel PaulWessel merged commit 6ccb985 into master Jun 15, 2021
@PaulWessel PaulWessel deleted the dcw-clipping branch June 15, 2021 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

add-changelog Add PR to the changelog new core module feature PR that implements a new core module feature new feature PR that implements a new feature or capability in GMT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants