Skip to content

Conversation

@seisman
Copy link
Member

@seisman seisman commented Aug 10, 2025

This PR provides a Pythonic interface for the -D option:

The full syntax is:

-D[g|j|J|n|x]<refpoint>[+w<width>[/<height>]][+j<justify>][+l<spacing>][+o<dx>[/<dy>]]
  • [g|j|J|n|x]<refpoint>[+j<justify>][+o<dx>[/<dy>]]: position and Position class
  • +w: width and height
  • +l: line_spacing. GMT uses spacing, but I feel line_spacing is better.

Preview:

"""


@pytest.mark.mpl_image_compare
Copy link
Member Author

Choose a reason for hiding this comment

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

I've removed this test mainly because the positioninig is controlled by the Position class, and it makes little sense to test it again here.

@seisman seisman changed the title Figure.legend: Add parameters position/width/height/spacing to specify legend position and properties Figure.legend: Add parameters position/width/height/line_spacing to specify legend position and properties Dec 10, 2025
Base automatically changed from params/position to main December 11, 2025 01:54
@seisman seisman marked this pull request as ready for review December 11, 2025 03:48
@seisman seisman added the needs review This PR has higher priority and needs review. label Dec 11, 2025
@seisman seisman requested a review from a team December 11, 2025 03:58
@seisman seisman mentioned this pull request Dec 11, 2025
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improving an existing feature needs review This PR has higher priority and needs review.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants