Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 a gallery example showing how to use patterns via the "fill" parameter (or similar parameters) #2329
Add a gallery example showing how to use patterns via the "fill" parameter (or similar parameters) #2329
Changes from 15 commits
54abdee
d88691a
e0ad0ad
08c8ce3
1082c13
bd46172
867de72
5e4f4e1
e9de513
50e3eb4
01b7358
cc7119f
1a061da
6a75bb4
eb31926
c85043a
25c3777
a5fd42f
c2c0015
fd0386d
92caaf3
567b555
b011799
7ef4aae
b8187d1
1b04163
ea07668
33477bb
f147e2a
4bb71b9
77816a9
7f6d413
fc58d96
73c79e7
e560c58
d6452ba
c34b850
18cf6be
8ffbb74
bc6c7ba
ba22af4
4434c07
7b8cffb
e2b520e
0518f67
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should define a class for GMT patterns, e.g.,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional to the list at the beginning of this example, there is also the possibility to add a pattern via the
dcw
andframe
parameters. The syntax seems to be difficult, as it seems to be something like +g p|P resolution / pattern. The functionality seems to be limited, as it seems that no foreground and background colors could be given (please correct me if I am wrong, so far I did not figure out how to set colors here).Example code
Output figure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the old syntax of patterns for GMT 4. The full old syntax is -Gpdpi/pattern[:Bcolor[Fcolor]]. I think the old syntax is still supported in GMT5 and GMT6 (backward compatibility), but it's no longer documented.
As I understand it, it's impossible to specify foreground/background colors and dpi using the new syntax in
coast -E
.Ping @PaulWessel for comments on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should we open a separate issue for this?
Edit 2023/03/17: Please see issue #2438.