Skip to content

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

Merged
alexcjohnson merged 1 commit into
masterfrom
one-contour-label-fix
Feb 27, 2018
Merged

alexcjohnson merged 1 commit into
masterfrom
one-contour-label-fix

Conversation

@alexcjohnson

Copy link
Copy Markdown
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
Copy Markdown
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