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 non-geographic plots to projection gallery #728

Merged
merged 7 commits into from
Dec 14, 2020

Conversation

willschlitzer
Copy link
Contributor

I added cartesian.py to have a Cartesian example for the projection gallery for #292.

@willschlitzer
Copy link
Contributor Author

I'm looking to add a polar coordinate plot example to the non-geographic gallery, but can't figure out how to plot it. I can use the P argument but am not sure how to add the other inputs, as the example code on the GMT docs uses grdmath, which doesn't look like an option on PyGMT at this time. I'll add polar plotting to the pull request if I can figure it out.

@seisman
Copy link
Member

seisman commented Dec 13, 2020

how to add the other inputs

You can simply pass x and y (i.e., angle theta and radius r) to the plot function.

@willschlitzer willschlitzer changed the title Add Cartesian plot to projection gallery Add non-geographic plots to projection gallery Dec 14, 2020
@weiji14 weiji14 added the documentation Improvements or additions to documentation label Dec 14, 2020
@seisman seisman added this to the 0.3.0 milestone Dec 14, 2020
@seisman seisman merged commit 47fbf9c into GenericMappingTools:master Dec 14, 2020
@willschlitzer willschlitzer deleted the non-geo-proj branch December 16, 2020 15:00
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