You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Different line styles as example in the Gallery or Cookbook #3320
As the possibilities for styling lines has greatly increased over the last couple of months (thank you, Gentlemen) it might be beneficial to document and showcase what can be achieved with the current feature set.
Hi @KristofKoch, yes of course that would be great. The way things are implemented is that each illustration in the documentation is a script that lives in doc/scripts and it automatically becomes part of the test suite as well. So apart from text in the relevant cookbook section, there needs to be a script and an original PostScript plot (created with PS_MEDIA = letter) in doc/script. Then see other scripts and how they are addressed in the docs.
Hi @PaulWessel thank you for the primer on how to edit the cookbook.
I currently think of showing the fancy stuff in the cookbook but explaining it might take up a lot of space. I'm undecided how to get around the problem as at least for me the main reference for experimenting with new things is the cookbook.
Are the examples considered documentation which I can reference from the cookbook? Basically show the fancy stuff in the cookbook and direct the user to example fifty something if he wants to know how it was done?
Yes, examples can be referenced anywhere in the cookbook.
Currently, the "Examples Gallery" lists 52 fancy, complicated examples. It's good to show how powerful GMT is, but users may find it hard to learn these examples because each example may use 5 or more GMT modules.
Yes, I agree. We truly need to break up the docs and present more galleries like matplotlib with simple examples. We need a path to get there since we all agree on the goal.
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.
Activity
PaulWessel commentedon May 12, 2020
Hi @KristofKoch, yes of course that would be great. The way things are implemented is that each illustration in the documentation is a script that lives in doc/scripts and it automatically becomes part of the test suite as well. So apart from text in the relevant cookbook section, there needs to be a script and an original PostScript plot (created with PS_MEDIA = letter) in doc/script. Then see other scripts and how they are addressed in the docs.
KristofKoch commentedon May 12, 2020
Hi @PaulWessel thank you for the primer on how to edit the cookbook.
I currently think of showing the fancy stuff in the cookbook but explaining it might take up a lot of space. I'm undecided how to get around the problem as at least for me the main reference for experimenting with new things is the cookbook.
Are the examples considered documentation which I can reference from the cookbook? Basically show the fancy stuff in the cookbook and direct the user to example fifty something if he wants to know how it was done?
PaulWessel commentedon May 12, 2020
yes, the examples are part of the documentation and can be referenced from anywhere I believe; @seisman knows how for sure.
seisman commentedon May 12, 2020
Yes, examples can be referenced anywhere in the cookbook.
Currently, the "Examples Gallery" lists 52 fancy, complicated examples. It's good to show how powerful GMT is, but users may find it hard to learn these examples because each example may use 5 or more GMT modules.
Ideally, we'd like to have a new gallery of simple examples. Each example uses 1 or 2 commands, and plot a simple basemap, a time axis or different styling lines as @KristofKoch proposed, just like the matplotlib Gallery (https://matplotlib.org/3.2.1/gallery/index.html).
Actually, GMT already has some simple and useful examples, but they're all hidden in the long cookbook.
joa-quim commentedon May 12, 2020
We can this to the Thursday's meeting agenda. I would rather start another document with simpler examples than to continue expanding the Gallery.
PaulWessel commentedon May 12, 2020
Yes, I agree. We truly need to break up the docs and present more galleries like matplotlib with simple examples. We need a path to get there since we all agree on the goal.
KristofKoch commentedon May 13, 2020
Ok, I put this on the back burner until after the meeting.
Esteban82 commentedon May 13, 2020
Hello to everyone. As I said in the Forum, I can contribute with examples like matplotlib. I'll be tomorrow at the meeting.
stale commentedon Aug 15, 2020
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.
maxrjones commentedon Jan 21, 2022
@KristofKoch, do you mind if I transfer this issue over to https://github.com/GenericMappingTools/gmt-examples? I think that it would be great to add a gallery with different line styles to the new gmt examples site.