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

Add another gallery example for inset #1018

Closed
seisman opened this issue Mar 7, 2021 · 0 comments · Fixed by #1020
Closed

Add another gallery example for inset #1018

seisman opened this issue Mar 7, 2021 · 0 comments · Fixed by #1020
Labels
documentation Improvements or additions to documentation help wanted Helping hands are appreciated
Milestone

Comments

@seisman
Copy link
Member

seisman commented Mar 7, 2021

Currently, we already have a good and nice inset example at https://www.pygmt.org/v0.3.0/gallery/plot/inset.html. This example doesn't cover all use cases of insets.

Another common use case is plotting a rectangle in the inset map to show the area of the main figure. Below is an example (originally from https://docs.gmt-china.org/latest/tutorial/inset/):

image

The corresponding bash script is:

#!/usr/bin/env bash
gmt begin inset-map png,pdf
    gmt coast -R139.2/140.5/34.8/36 -JM12c -Baf -BWSne -W2p -A1000 -Glightbrown -Sazure1 --FORMAT_GEO_MAP=dddF
    gmt inset begin -DjBL+w3c/3.6c+o0.1c -F+gwhite+p1p
        gmt coast -R129/146/30/46 -JM? -EJP+glightbrown+p0.2p -A10000
        echo 139.2 34.8 140.5 36 | gmt plot -Sr+s -W1p,blue
    gmt inset end
gmt end show

We should add a gallery example for this use case.

@seisman seisman added documentation Improvements or additions to documentation help wanted Helping hands are appreciated labels Mar 7, 2021
@seisman seisman mentioned this issue Mar 7, 2021
5 tasks
@seisman seisman added this to the 0.3.1 milestone Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Helping hands are appreciated
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant