Skip to content

Figure.ternary: Support Frame's xaxis/yaxis/zaxis attributes to set axis settings for a/b/c axes#4517

Open
Chuan1937 wants to merge 34 commits intomainfrom
test_ternary
Open

Figure.ternary: Support Frame's xaxis/yaxis/zaxis attributes to set axis settings for a/b/c axes#4517
Chuan1937 wants to merge 34 commits intomainfrom
test_ternary

Conversation

@Chuan1937
Copy link
Copy Markdown
Member

Add ternary frame

Update the test pygmt/tests/test_ternary.py to use the new implemented Frame and Axis parameter classes.

Fixes partly #4494

@seisman
Copy link
Copy Markdown
Member

seisman commented Apr 9, 2026

xref: #4505 (comment)

@yvonnefroehlich
Copy link
Copy Markdown
Member

Actually I would split this into two PRs, one for the code changes for the ternary frame itself and one for updating the tests.

@Chuan1937 Chuan1937 changed the title Add ternary frame and DOC/Test "test_ternary": Migrate frame settings to the new Frame/Axis syntax Internally convert xaxis/yaxis/zaxis to -Ba/-Bb/-Bc Apr 10, 2026
@Chuan1937 Chuan1937 changed the title Internally convert xaxis/yaxis/zaxis to -Ba/-Bb/-Bc Internally convert xaxis/yaxis/zaxis to -Ba/-Bb/-Bc for ternary Apr 10, 2026
Comment thread pygmt/src/ternary.py Outdated
@seisman
Copy link
Copy Markdown
Member

seisman commented Apr 10, 2026

Actually I would split this into two PRs, one for the code changes for the ternary frame itself and one for updating the tests.

Actually we have to update the tests in this PR to ensure the code changes are correct.

Comment thread pygmt/src/ternary.py Outdated
@seisman seisman changed the title Internally convert xaxis/yaxis/zaxis to -Ba/-Bb/-Bc for ternary Figure.ternary: Internally convert xaxis/yaxis/zaxis to -Ba/-Bb/-Bc Apr 10, 2026
Comment thread pygmt/tests/test_ternary.py Outdated
Comment thread pygmt/src/ternary.py Outdated
Comment thread pygmt/src/ternary.py Outdated
Comment thread pygmt/src/ternary.py Outdated
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Comment thread pygmt/src/ternary.py Outdated
Chuan1937 and others added 2 commits April 16, 2026 21:10
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Comment thread pygmt/src/ternary.py Outdated
Comment thread pygmt/src/ternary.py Outdated
Comment thread pygmt/src/ternary.py
Comment thread pygmt/src/ternary.py Outdated
@seisman seisman added the enhancement Improving an existing feature label Apr 16, 2026
Chuan1937 and others added 3 commits April 17, 2026 09:46
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@seisman seisman changed the title Figure.ternary: Internally convert xaxis/yaxis/zaxis to -Ba/-Bb/-Bc Figure.ternary: Support Frame's xaxis/yaxis/zaxis attributes to set axis settings for a/b/c axes Apr 17, 2026
Comment thread pygmt/src/ternary.py Outdated
Comment thread pygmt/src/ternary.py Outdated
Comment thread pygmt/src/ternary.py Outdated
Comment thread pygmt/src/ternary.py Outdated
Comment thread pygmt/src/ternary.py Outdated
Comment thread pygmt/src/ternary.py Outdated
Comment thread pygmt/src/ternary.py Outdated
Comment thread pygmt/src/ternary.py
@seisman seisman added the needs review This PR has higher priority and needs review. label Apr 17, 2026
Chuan1937 and others added 8 commits April 17, 2026 11:18
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Comment thread pygmt/src/ternary.py Outdated
Comment thread pygmt/src/ternary.py
Comment thread pygmt/tests/test_ternary.py
)
return fig


Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Need to add the @pytest.mark.mpl_image_compare marker and add the baseline images.

Suggested change
@pytest.mark.mpl_image_compare

pen="thinnest",
)


Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
@pytest.mark.mpl_image_compare

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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants