question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gallery plots for each projection

See original GitHub issue

Description of the desired feature

The user documentation contains a gallery of projections available. The plots showcase the projection so it’s easy to choose which one you want (by clicking an image instead of having to google the name). We need to fill out this gallery with all projections listed in https://www.generic-mapping-tools.org/gmt/latest/proj_codes_GMT.html

To make a gallery plot, place a script that generates the figure in examples/projections and sphinx-gallery will take care of the rest. The file must have a specific format (see the other examples). Ideally, each projection should show a case in which it’s ideal (e.g. not using Mercator for high latitudes).

Any help with this is greatly appreciated! We can build this out slowly, one example at a time.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
willschlitzercommented, Dec 9, 2020

I prefer them as well. My thought is to copy the GMT example projection maps when able, as I think they are all good maps and there’s no need to reinvent the wheel. I just want to make sure there isn’t a plan in place already for standardized example projection maps.

0reactions
seismancommented, Dec 18, 2020

I don’t want to plagiarize, but I would also hope to avoid reinventing the wheel if possible.

PyGMT and GMT belong to the same organization, so don’t worry about plagiarization. We can just copy and paste from the cookbook, and even improve it if someone has more knowledge more about projections.

Again, it would be good if @willschlitzer can open a new issue for your comment https://github.com/GenericMappingTools/pygmt/issues/292#issuecomment-742367645, and @phloose for your comment https://github.com/GenericMappingTools/pygmt/issues/292#issuecomment-747743344, as I don’t want to make the discussions too long in this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Example Gallery — Altair 4.2.0 documentation
This gallery contains a selection of examples of the plots Altair can create. Some may seem fairly complicated at first glance, but they...
Read more >
Cartopy Gallery - SciTools
The following visual examples demonstrate some of the functionality of Cartopy, particularly its matplotlib interface. For a structured introduction to cartopy, ...
Read more >
Examples — Matplotlib 3.6.2 documentation
Geographic Projections. Combining two subplots using subplots and GridSpec ... Per-row or per-column colorbars. Axes with a fixed physical size.
Read more >
Visualization Gallery - Xarray
Multiple plots and map projections#. Control the map projection parameters on multiple axes. This example illustrates how to plot multiple maps and control ......
Read more >
Surface Plot - Python Graph Gallery
In a surface plot, each point is defined by 3 variables: its latitude, its longitude, ... Make the plot fig = plt.figure() ax...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found