Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC: Update dropped splines example #24379

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

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Nov 6, 2022

There was a relatively convoluted example in "Spine placement". This
can be simplified and is a better example for dropped spines that
the image example.

Resulting plot:

image

This depends on and is waiting for #24376

@story645
Copy link
Member

story645 commented Nov 7, 2022

can we label the axes w/ what's happening? I think this is better than before, but b/c it's being done in a loop in a function it takes a couple of hops to figure out what exactly I'd need to do to achieve each look.

Eta: this could maybe be as simple maybe as:

ax.set_title(f'ax.spines[{visible_spines}].set_position(('outward', 10)), 
               ax.spines[{not_visible}].set_visible(False)`) 

since I think spines can take a list https://matplotlib.org/stable/api/spines_api.html#matplotlib.spines.Spines

There was a relatively convoluted example in "Spine placement". This
can be simplified and is a better example for dropped spines that
the image example.
@timhoffm timhoffm force-pushed the doc-dropped-spines branch from 545df8c to e4b24fd Compare August 9, 2023 16:26
@timhoffm timhoffm marked this pull request as ready for review August 9, 2023 17:11
@timhoffm timhoffm added this to the v3.8.0 milestone Aug 9, 2023
@ksunden ksunden merged commit 04492d9 into matplotlib:main Aug 9, 2023
@timhoffm timhoffm deleted the doc-dropped-spines branch August 9, 2023 21:26
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.

3 participants