-
Notifications
You must be signed in to change notification settings - Fork 220
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
Psvelo [Plot velocity vectors, crosses, and wedges] #510
Comments
Hi @lhoupert, it's called velo now 😉. Do you have an example of how it looks like? You can edit the original post with an example figure. I've not personally used Considering that
If you're keen, open up a Pull Request and give it a go! it'll be easier for us or someone else to pick up the PR and add things like gallery examples and unit tests. It might be useful to see how |
Thank you @weiji14 . It is exactly the I added two example pictures in the original post. Also, I just started editing the documentation string and looked into the code copied from |
Thanks for adding the example, it's nice having a visual image on what we're working towards 😄 After taking a closer look, I think the
We'll always require some form of data input (e.g. longitude, latitude, etc), even for PyGMT's
Again, I imagine this would be very similar for Line 559 in 0f12972
I see you've already made a fork for PyGMT, if you already have something done, just open up a draft pull request and we (and the PyGMT team) can work on it together, will be much easier to suggest changes and talk about the specifics. |
Description of the desired feature
Implementation of the psvelo function.
It would be really a great feature for pygmt to be able to plot velocity vectors and confidence ellipse, because, at the moment, it is not possible with the classic matplotlib function quiver.
Example plots
Two examples are available on gmt.soest.hawaii.edu. I copy the description of the example provide and the output when I run the code on GMT-6.0.0.
Example 1
"The following should make big red arrows with green ellipses outlined in red. Note that the 39% confidence scaling will give an ellipse which fits inside a rectangle of dimension Esig by Nsig."
The example above seems to be running fine on GMT-6.0.0, except that the colour of my ellipses are not green.
Example 2
"This example should plot some residual rates of rotation in the Western Transverse Ranges, California. The wedges will be dark gray, with light gray wedges to represent the 2-sigma uncertainties."
*I don't really understand what should be plotted here [I am a physical oceanographer], but it doesn't seem absurd...
Are you willing to help implement and maintain this feature?
I can try to help but I am not an expert in gmt or in python programming ... Therefore I will need some help to understand how complex functions are coded :-D
The text was updated successfully, but these errors were encountered: