-
Notifications
You must be signed in to change notification settings - Fork 213
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 gallery example/tutorial for interactive data visualization using Panel? #2455
Comments
Yep, this is a quite nice way to show or test the variation of one parameter or quantity, while the rest of the map / plot remains the same. Also tried this already based on this EGU ShortCourse example 🙂. |
Ping @maxrjones for thoughts/comments on the potential gallery example using "Panel" before someone takes the time to work on it. |
Yes, I think this is a good idea. I'll be happy to provide a review. |
I would be happy to give this a try. @GenericMappingTools/pygmt-maintainers is there a parameter of a plotting method you have in mind to highlight in this example? Currently, I am wondering whether |
I'm afraid this is not a good example, because (1) three variables (strike, dip and rake) may make the example slightly more complicated (2) non-seismologists may find it hard to understand the example.
Some simpler examples in my mind:
|
We probably have to add |
You can add it in the same PR as the gallery example and we will see how it works. |
I started working on a tutorial in PR #2498 and used the first suggestion by @seisman. |
The EGU22 PyGMT short course provides an example showing how to use Panel for interactive data visualization with PyGMT (https://www.generic-mapping-tools.org/egu22pygmt/ecosystem.html#interactive-data-visualization-with-xarray-panel-and-pygmt).
I just tried it and found it sometimes useful to explore the effects of different GMT parameters (especially before we implement the
movie
method #1347).For example, here is an example to show how the
azimuth
can affect grid shading (modified from https://www.pygmt.org/dev/gallery/images/grdgradient_shading.html):Here is a screencast showing how it works locally:
Screencast.from.2023-03-23.16-55-53.webm
Although the interactive widget doesn't work on our static HTML documentation, users can still copy-and-paste the codes to try it on their own Jupyter notebooks. So I think such a tutorial is still very useful.
The text was updated successfully, but these errors were encountered: