Skip to content

Guard against mirrored+automargin anchor:'free' axes - #4273

Merged
etpinard merged 2 commits into
masterfrom
ax-automargin-mirror+free-check
Oct 15, 2019
Merged

Guard against mirrored+automargin anchor:'free' axes#4273
etpinard merged 2 commits into
masterfrom
ax-automargin-mirror+free-check

Conversation

@etpinard

Copy link
Copy Markdown
Contributor

... anchor:'free' axes don't draw mirror ticks, so they never need to contribute to the automargin push and most importantly they don't get ax._anchorAxis filled in (which lead to this bug).

before (1.50.0): https://codepen.io/etpinard/pen/mddVJxQ?editors=1010
before before (1.49.5): https://codepen.io/etpinard/pen/QWWybrw?editors=1010
after: https://codepen.io/etpinard/pen/OJJMyMP?editors=1010 (noticed also legend fixup from #4160)

To go in v1.50.1 - cc @archmoj

- anchor:'free' axes don't draw mirror ticks, so they
never need to contribute to the automargin push
@archmoj

Copy link
Copy Markdown
Contributor

@etpinard Thanks very much for following this issue and the PR.
💃

@etpinard
etpinard merged commit cb2032a into masterOct 15, 2019
@etpinard
etpinard deleted the ax-automargin-mirror+free-check branch October 15, 2019 15:15
@archmojarchmoj changed the title Guard against mirrored+autorange anchor:'free' axesGuard against mirrored+automargin anchor:'free' axesOct 15, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

regressionthis used to work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@etpinard@archmoj