Skip to content

Autocolor spines update #29

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 2 commits into from
May 17, 2016
Merged

Conversation

mscross
Copy link
Contributor

@mscross mscross commented May 17, 2016

Previous version had hard-coded ax.get_children()[2] as target child for automatic tick/spine coloring. This was broken by a matplotlib update, as the third child is no longer always the first matplotlib.lines.Line2D (we'll call it "line") plotted on the axis.

This update finds the first line plotted on each axis, and uses that color to color the spines/ticks. If a line is not found, then by default the color of the first child is used (usually a spine, unless a path collection is found).

@coveralls
Copy link

coveralls commented May 17, 2016

Coverage Status

Coverage decreased (-0.4%) to 56.434% when pulling 6803145 on mscross:autocolor_spines_update into 1a8f77f on matplotlib:master.

@mscross mscross merged commit dba869e into matplotlib:master May 17, 2016
@mscross mscross deleted the autocolor_spines_update branch May 17, 2016 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants