-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Implementing matching axes #3506
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
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
6813865
mv handleConstraintDefaults into constraints.js file
etpinard 6f2bb78
first cut at static `ax.matches` behavior
etpinard 5ddbf2a
some linting & commenting in dragbox.js
etpinard c60424b
first cut at zoom/pan/scroll `ax.matches` behavior
etpinard 13007e0
add doScroll wrapper for dragbox tests
etpinard e962e96
mv dragbox tests calling makePlot to own describe block
etpinard ca1de5d
DRY-up drag-start/assert/drag-end tests
etpinard 3b314fe
add toBeWithinArray custom jasmine matcher
etpinard 6621419
add mucho matching axes dragbox tests
etpinard 9118505
align autobinning of histogram traces on matching axes
etpinard d9c2d4e
link ax._categories & ax._categoriesMap to same ref for matching axes
etpinard c290adf
add axis.matches boolean to splom dims
etpinard ef256db
generalize "update matched ax rng" logic
etpinard 9f2fad1
disallow constraining AND matching range
etpinard 8c09944
add "matches" + "scaleanchor" mock
etpinard c5f9e74
fix partial ax-range relayout calls for matching axes
etpinard d0581e2
fix typo (ax.setScale has no arg)
etpinard 6b34ae3
use ax._matchGroup to improve matching axes relayout perf
etpinard 99a9edb
allow fixedrange subplots to scaleanchor with `constrain:domain`
etpinard 91431ec
drop *scaleanchor* constraints for axes under *matches* constraint
etpinard 70b10ff
add safe-guard in dragbox.js
etpinard 772efe5
add info about matching axis type in attr description
etpinard 1713c83
fix typo
etpinard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"type": "histogram", | ||
"name": "sample A - <b>matched</b>", | ||
"x": [1, 2, 3, 1, 1, 2, 3, 3], | ||
"hoverlabel": { | ||
"namelength": -1 | ||
} | ||
}, | ||
{ | ||
"type": "histogram", | ||
"name": "sample B - <b>matched</b>", | ||
"x": [2.1, 2.1, 3.4, 1.3, 2.2, 2.1, 3.2, 4.1, 3.1], | ||
"hoverlabel": { | ||
"namelength": -1 | ||
}, | ||
"xaxis": "x2", | ||
"yaxis": "y2" | ||
}, | ||
{ | ||
"type": "histogram", | ||
"name": "sample A - <b>not</b> on matching axes", | ||
"x": [1, 2, 3, 1, 1, 2, 3, 3], | ||
"hoverlabel": { | ||
"namelength": -1 | ||
}, | ||
"xaxis": "x3", | ||
"yaxis": "y3" | ||
}, | ||
{ | ||
"type": "histogram", | ||
"name": "sample B - <b>not</b> on matching axes", | ||
"x": [2.1, 2.1, 3.4, 1.3, 2.2, 2.1, 3.2, 4.1, 3.1], | ||
"hoverlabel": { | ||
"namelength": -1 | ||
}, | ||
"xaxis": "x4", | ||
"yaxis": "y4" | ||
} | ||
], | ||
"layout": { | ||
"margin": {"t": 20, "b": 20}, | ||
"showlegend": false, | ||
"xaxis": { | ||
"domain": [0, 0.4] | ||
}, | ||
"yaxis": { | ||
"domain": [0.45, 1], | ||
"title": { | ||
"text": "Matched Axes" | ||
} | ||
}, | ||
"xaxis2": { | ||
"domain": [0.45, 1], | ||
"anchor": "y2", | ||
"matches": "x" | ||
}, | ||
"yaxis2": { | ||
"domain": [0.45, 1], | ||
"anchor": "x2", | ||
"matches": "y" | ||
}, | ||
"xaxis3": { | ||
"domain": [0, 0.4], | ||
"anchor": "y3" | ||
}, | ||
"yaxis3": { | ||
"domain": [0, 0.4], | ||
"anchor": "x3", | ||
"title": { | ||
"text": "<b>NOT</b> Matched Axes" | ||
} | ||
}, | ||
"xaxis4": { | ||
"domain": [0.45, 1], | ||
"anchor": "y4" | ||
}, | ||
"yaxis4": { | ||
"domain": [0, 0.4], | ||
"anchor": "x4" | ||
} | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
N.B. currently, both x and y need to match in order to be considered in the same auto-bin group.