Skip to content

Add an example for plotting multi-parameter symbols - #772

Merged
seisman merged 15 commits into
GenericMappingTools:masterfrom
michaelgrund:patch-2
Dec 31, 2020
Merged

seisman merged 15 commits into
GenericMappingTools:masterfrom
michaelgrund:patch-2

Conversation

@michaelgrund

Copy link
Copy Markdown
Member

I added rot_rectangle.py to have an example showing the use of rotated rectangles (which I heavily used during my PhD to plot splitting parameters in map view).

I added rot_rectangle.py to have an example showing the use of rotated rectangles (which I heavily used during my PhD to plot splitting parameters in map view).
@michaelgrund

Copy link
Copy Markdown
Member Author

/format

@seisman seisman added the documentation Improvements or additions to documentation label Dec 28, 2020
@seisman

seisman commented Dec 29, 2020 •

Copy link
Copy Markdown
Member

plot splitting parameters

@michaelgrund Do you mean S-wave splitting results? Orientation for the fast axis and length for the splitting time?

EDIT: I just read your example. I think the answer is yes. My question is, what does the width of the rectangle mean? I thought most people plot the S-wave splitting results by just plotting lines or using velo.

@michaelgrund

Copy link
Copy Markdown
Member Author

plot splitting parameters

@michaelgrund Do you mean S-wave splitting results? Orientation for the fast axis and length for the splitting time?

EDIT: I just read your example. I think the answer is yes. My question is, what does the width of the rectangle mean? I thought most people plot the S-wave splitting results by just plotting lines or using velo.

@seisman Yes, I mean S-wave splitting. Depends on how you want to show the results (orientation for the fast axis and length for the delay time), either as simple line as you suggested (I also used that various times) or as a "bar" with a specific fill and edge color which can be done with the rotated rectangle. The provided example is based on the latter one and the width has no physical meaning (only length and orientation). Of course we could remove that note about S-wave splitting to avoid confusion. What do you mean?

@seisman

seisman commented Dec 29, 2020

Copy link
Copy Markdown
Member

GMT can plot so many different symbols (see https://docs.generic-mapping-tools.org/dev/plot.html), and I'm hesitant to add an example for each symbol (that would be more than 20 examples for symbols).

I think it would be better if we can show some symbols in one example. For example, the following symbols may have similar input and could be grouped in one example:

image

@michaelgrund

michaelgrund commented Dec 29, 2020 •

Copy link
Copy Markdown
Member Author

GMT can plot so many different symbols (see https://docs.generic-mapping-tools.org/dev/plot.html), and I'm hesitant to add an example for each symbol (that would be more than 20 examples for symbols).

I think it would be better if we can show some symbols in one example. For example, the following symbols may have similar input and could be grouped in one example:

image

totally agree with you @seisman, will prepare a corresponding gallery example ;)

@michaelgrund

Copy link
Copy Markdown
Member Author

/format

@michaelgrund michaelgrund changed the title Create rot_rectangle.py Create multi_parameters.py Dec 29, 2020
@seisman seisman added this to the 0.3.0 milestone Dec 29, 2020
Comment thread examples/gallery/plot/rot_rectangle.py Resolved
@michaelgrund michaelgrund changed the title Create multi_parameters.py Create multi-parameter-symbols.py Dec 30, 2020
@seisman seisman changed the title Create multi-parameter-symbols.py Add an example for plotting multi-parameter symbols Dec 31, 2020
@seisman
seisman merged commit f083a65 into GenericMappingTools:master Dec 31, 2020
@michaelgrund
michaelgrund deleted the patch-2 branch December 31, 2020 15:58
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022

This branch was previously deployed

1 inactive deployment
Preview — 759e89a4 Deployed Dec 31, 2020 by vercel[bot]
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants