Skip to content

legend: Clarify the behavior of -M option#9028

Merged
seisman merged 1 commit into
masterfrom
doc/pslegend
May 23, 2026
Merged

legend: Clarify the behavior of -M option#9028
seisman merged 1 commit into
masterfrom
doc/pslegend

Conversation

@seisman
Copy link
Copy Markdown
Member

@seisman seisman commented May 19, 2026

As shown by the test script https://github.com/GenericMappingTools/gmt/blob/master/test/pslegend/mixlegend.sh.

mixlegend

When -M is not used, the default behavior is use the input file and ignore any hidden file. The current docstring is misleading:

Default is he, meaning we will first place any hidden auto-generated legend items (if any) and then we append the explicitly given information (if present).

This PR fixes it.

@Esteban82 Esteban82 added the documentation Improve documentation label May 19, 2026
@Esteban82 Esteban82 self-requested a review May 19, 2026 13:21
@seisman seisman merged commit 8625edf into master May 23, 2026
2 checks passed
@seisman seisman deleted the doc/pslegend branch May 23, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improve documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants