Skip to content

Conversation

@yvonnefroehlich
Copy link
Member

@yvonnefroehlich yvonnefroehlich commented Dec 10, 2025

Description of proposed changes

This PR proposes to extend the legend tutorial to show adjusting the line spacing via the +l modifier of the position parameter.

Preview: https://pygmt-dev--4265.org.readthedocs.build/en/4265/tutorials/advanced/legends.html#adjust-position-and-line-spacing

Guidelines

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash command is:

  • /format: automatically format and lint the code

@yvonnefroehlich yvonnefroehlich added this to the 0.18.0 milestone Dec 10, 2025
@yvonnefroehlich yvonnefroehlich self-assigned this Dec 10, 2025
@yvonnefroehlich yvonnefroehlich added the documentation Improvements or additions to documentation label Dec 10, 2025
# **+o** for the x- and y-directions. Additionally append **+w** to adjust the width of
# the legend. Note, no box is drawn by default if ``position`` is used. Additionally,
# the ``position`` parameter allows to adjust the line spacing between the legend
# entries. Use the **+l** modifier to change the line spacing factor in units of the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will have a more Pythonic Figure.legend method after #4046

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants