Skip to content
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

fall back for contour labels when there's only one contour #2411

Merged
merged 1 commit into from
Feb 27, 2018

Conversation

alexcjohnson
Copy link
Collaborator

Fixes #2398 - the test case I added is the simplest distillation of the plot in the initial report.

Also: I broke up Axes.calcTicks -> new prepTicks only finishes setting up the axis object (tick0, dtick, _tickround, and _tickexponent - all the things Axes.tickText will need), but does not actually calculate all the ticks. This is potentially a noticeable improvement for constraint-type contours, where I set an arbitrarily large nticks merely to ensure we get a reasonable number of digits of precision. Carpet can take advantage of this as well in one place.

cc @etpinard

also break up Axes.calcTicks -> prepTicks only finishes setting up the axis object
@etpinard etpinard added the bug something broken label Feb 27, 2018
@etpinard
Copy link
Contributor

Looks good 💃

@alexcjohnson alexcjohnson merged commit 36b8483 into master Feb 27, 2018
@alexcjohnson alexcjohnson deleted the one-contour-label-fix branch February 27, 2018 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants