question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

We should allow two (or more) axes to not just share a scaling, but actually force precisely equal range. Use case is plots like this one: machine-learning-classifier-comparison

This came up in https://github.com/plotly/plotly.js/issues/272#issuecomment-287043579 but was not addressed in #1522 - opening this as a new issue so we don’t forget about it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:17
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
alexcjohnsoncommented, Jan 23, 2019

matching axes of the same letter (i.e. ‘x’ or ‘y’) would suffice for the first iteration

if that’s a lot easier, OK, it won’t cause any API problems to enable it later. But I kind of don’t think it’ll be that much harder to do x/y matching since we already have that for scale constraints. And it would be really nice to use with splom - it would mean that if you zoom on one off-diagonal subplot, not only would the whole row & column through that subplot zoom but the symmetric row & column would also zoom to match.

1reaction
alexcjohnsoncommented, Jan 28, 2019

How would this proposal be different than having ax.matches and ax.scaleanchor (under constrain: ‘domain’) set.

Only that I didn’t want to allow scaleanchor at all when you already have matches. I guess it may be clearer that way, as it means “range matches AND scale matches”… just seems weird as the only allowed values of scaleanchor would be ’x’ or nothing.

I’m not sure who should “win out”

Agreed, that would be meaningless.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Axe Definition - Investopedia
An axe (or "axe to grind") is the interest that a trader shows in buying or selling a security that is typically already...
Read more >
Auto Match Dual Axis Scales on Excel Charts ... - YouTube
Get Your Video Workbook Template Here: »» https://cutt.ly/up4v1907S1FD Avoid the classic dual axis chart error! Automatically match both ...
Read more >
MATLAB linkaxes - Synchronize limits of multiple axes
linkaxes( ax ) synchronizes the limits of the specified vector of axes. Synchronizing limits allows you to zoom or pan in one plot...
Read more >
Graph: auto matching dual "y" axis with different units
Automatically match both axis scales to ensure your chart is always accurate. Dynamically match primary and secondary axis with this great ...
Read more >
Make Excel charts primary and secondary axis the same scale
Determine a common axis scale that will handle the 2 data sets · Insert the new series into the chart · Match the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found