Skip to content

legend: Clarify the behavior of -M option#9028

Open
seisman wants to merge 1 commit into
masterfrom
doc/pslegend
Open

legend: Clarify the behavior of -M option#9028
seisman wants to merge 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
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