Skip to content

Feature Implementation for "setting spine default location displacement rcParams" *ATTEMPT 2* - DRAFT PR #30024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ebubekir-pulat
Copy link

** DRAFT PULL REQUEST **

closes #13930

This PR is a re-attempt of PR #30011 which I think I messed up. I address the comments made in that PR conversation as well.

Implementing feature to set default spine positions for top, left, right and bottom using rcParams. Feature implementation involves the addition of four new rcParams:

axes.spines.left.position
axes.spines.right.position
axes.spines.bottom.position
axes.spines.top.position

The default value for the rcParams is ('outward', 0.0). The 'axes.spines.{spine_type}.position' format for the rcParams was chosen, as 'axes.spines.{spine_type}' is already taken for another purpose, I believe whether to show or not show an axis.

The rcParams can be set to ('outward' | 'axes' | 'data', amount) or 'center' or 'zero'

Below is a screenshot showing the feature in action.

image

@timhoffm
Copy link
Member

timhoffm commented May 7, 2025

Note for the future: You do not have to close PRs and open a new one "ATTEMPT 2". Instead, just force-push changes to the existing branch. That will automatically update the existing PR.

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

Successfully merging this pull request may close these issues.

setting spine default location displacement rcParams
2 participants