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 an example for plotting multi-parameter symbols #772

Merged
merged 15 commits into from
Dec 31, 2020

Conversation

michaelgrund
Copy link
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
Member Author

/format

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

seisman commented Dec 29, 2020

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
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
Copy link
Member

seisman commented Dec 29, 2020

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
Copy link
Member Author

michaelgrund commented Dec 29, 2020

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
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
examples/gallery/plot/multi_parameters.py Outdated Show resolved Hide resolved
examples/gallery/plot/multi_parameters.py Outdated Show resolved Hide resolved
examples/gallery/plot/multi_parameters.py Outdated Show resolved Hide resolved
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@michaelgrund michaelgrund changed the title Create multi_parameters.py Create multi-parameter-symbols.py Dec 30, 2020
michaelgrund and others added 2 commits December 31, 2020 16:12
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@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
…ols#772)

Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
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