-
Notifications
You must be signed in to change notification settings - Fork 225
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
Gallery plots for each projection #292
Comments
Sir, |
There is a chapter "GMT Map Projections" in the GMT cookbook. We can copy the examples. |
Thanks, @seisman. I was wondering where that was. I want to try this out here and hopefully copy some of it over to the GMT docs later on. |
👋 Hi @DefUs3r, thanks for offering to help! Please have a look at our Contributing Guide. You will need at least a bit of mapping knowledge, though, since the goal is to write example scripts. |
I have a background in geoinformatics and i am slightly familiar with projections so i would like to give this a try. The commands used would be ideally the ones from the GMT Map Projections page @seisman mentioned? I also found the grouping of the projection parameters on this page into cylindrical, conic, azimutal, miscellaneus and non-geographic projections very good to make it easier for the user to select what he needs. Maybe a short description, what the primary purpose of a certain projection is, would be helpful too, especially for new, unexperienced users. I am already playing around with the examples and if i find it suitable will file a pull request if you don't mind?! |
Hi @xibalba01 we don't mind PRs at all 🙂 I agree that having a small description of when the projection should be used would be very helpful! I like the idea of grouping the examples as well. |
I have problems building the docs under windows: Running
A short workaround was to not use
Somehow psconvert can't find ghostscript even though its installed... Strange, since normal plotting within a jupyter notebook works. In the beginning i didnt had ghostscript installed so no plot worked and i got the same error. Any ideas? Under linux building the docs works, although initially i had problems with ghostscript. psconvert produced postscript files with decimal values that used a comma instead of a period. I could fix it by setting EDIT Ok obviously if ghostscript on windows is NOT installed via conda pygmt/gmt doesnt find its executable... |
I split the projections folder into the main groups by creating subfolders with their own README.txt like it is described in the sphinx-gallery-docs. Now it appears like i was thinking it makes the most sense. Do you think it would make sense to write a small general introduction for every type of projection? |
I'll work on this. |
Should the different projections have a particular and standardized color scheme? The GMT docs don't seem to follow any standard color scheme, but all of the PyGMT projection examples have gray land and white water. |
I don't think we have any standardized color scheme here. I actually prefer the maps in the GMT docs. |
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. |
I think it would be a good idea to have the home page of the projection gallery have some sort of table that lists the different projection codes. Even when the gallery is fleshed out, it won't be immediately clear to someone looking at PyGMT code what the given projection is, and this will keep them from having to click on all of the gallery examples to find out. I looked through the PyGMT docs to see if there are any examples of a table but couldn't find one; any ideas on how to implement this? |
Are we missing any examples for gallery plots? |
@willschlitzer Thanks again for your recent contributions! I think this issue is close to finishing. I think it would be better to also add logarithmic projection and power projection. |
@willschlitzer Sounds a good idea. Could you open a new issue for this so that we can better discuss it? |
Before you close this issue i would like to add that it would be nice to have some explanatory text about each projection like in the GMT cookbook . I proposed and started this with #318 and would think that this is very useful for people new to GMT and mapping, because projections are not easy to grasp for everyone. |
Would we be able to copy the text directly from the GMT cookbook on the reasoning behind using different projections? 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 #292 (comment), and @phloose for your comment #292 (comment), as I don't want to make the discussions too long in this 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.
The text was updated successfully, but these errors were encountered: