Skip to content

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.

@ebubekir-pulat
Copy link
Author

Is this PR an appropriate implementation of this feature? Do I need to add to the documentation, or write a test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs review
Development

Successfully merging this pull request may close these issues.

setting spine default location displacement rcParams
2 participants