-
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
Better categories for gallery examples #876
Comments
Looking at the gallery, this is my thought: *Plot maps (coastlines and boundaries section, along with inset) |
I'm thinking in a different way:
|
Here are some new thoughts about categories. As documented in the contributing guides, a good gallery plot should "highlight a single feature/command". Usually, we only use one or a few plotting commands in one example. So, I think it's easier to decide the categories based on the plotting modules and features that GMT provides. Please see this page for the full list of all GMT modules, especially the plotting modules. Here are categories in my mind: 1. Lines and vetcors:
2. Symbols and Markers If I understand it correctly, GMT calls them "symbols" but matplotlib calls them "markers". So we could use "symbols and markers".
3. Images, contours and fields This category mainly focuses on the illustration of matrix data (e.g., images and grids)
4. Histograms
5. 3D plots Most plotting modules can use the
6. Seismology and Geodesy
7. Subplots Similar to the "Subplots, axes and figures" category in matplotlib, I think it's useful to show different subplot layouts (especially for subplots that share X and/or Y axis). 8. Maps Plotting geographic maps is the key feature of GMT and PyGMT. I think we will have more maps in this category. As mentioned below, we can add more examples showing maps with map scale, directional rose, and insets. 9. Base maps I expect to see more examples for different kinds of base maps, for example:
but I'm not sure if we should put them in "projections" or a separated category. 10. Text, labels and annotations Similar to https://matplotlib.org/stable/gallery/index.html#subplots-axes-and-figures. This category focuses on:
11. Embellishments The GMT cookbook has a section for plotting different "embellishments" (https://docs.generic-mapping-tools.org/dev/cookbook/features.html#plot-embellishments). The GMT embellishments include:
Most of these embellishments won't be used alone. For example, map scales are used in maps, it makes sense to put them in the "Maps" category. However, if we want to add examples that highlight the different appearance of map scales or colorbars, we can put them in the "Embellishments" category. There are still some plotting modules that are not covered above:
The above categories mainly focus on plotting modules. Sometimes, we may also want to show usage of non-plotting modules (for examplehttps://www.pygmt.org/dev/gallery/grid/track_sampling.html). I'm not sure where to put these examples. |
I like this organization, in particular because the features that are currently in 'maps and map elements' in #995 that are not exclusive to maps will be more aptly categorized as 'embellishments'. It's also nice to have the consistency with GMT terminology. I think that the
|
I'll keep the PR open for more discussions. |
I'm closing the issue, since most of the categories (except "subplots" and "Text, labels and annotations") mentioned in #876 (comment) have been created. |
The Gallery is generated from Python scripts in the
examples/gallery
directory.Currently, we have 19 gallery examples in 4 directories (categories).
IMHO, the current categories are not good, especially that the "Plotting map items" category is too general.
We need to think about how to categorize these existing and future examples. We can check the matplotlib gallery for some inspirations.
The text was updated successfully, but these errors were encountered: