-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Automargin edge cases #3605
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
Automargin edge cases #3605
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6c7db5e
fix #3579 - consider tick labels to go past plot area
etpinard 1f6e711
improve axis automargin tests
etpinard 8a1b5e7
throw axis scaling error when ax._length is negative
etpinard 87b10a7
fix #3600 - skip automargin pushes that lead to negative plot area
etpinard d5bacfe
:camel: case
etpinard 18f827d
mojtaba-proof test msgs
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
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
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.
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,109 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"x": [ | ||
"12 AM diagonal", | ||
"1 AM diagonal", | ||
"2 AM diagonal", | ||
"3 AM diagonal", | ||
"4 AM diagonal", | ||
"5 AM diagonal", | ||
"6 AM diagonal", | ||
"7 AM diagonal", | ||
"8 AM diagonal", | ||
"9 AM diagonal", | ||
"10 AM diagonal", | ||
"11 AM diagonal" | ||
], | ||
"y": [ | ||
59.44, | ||
68.75, | ||
87.5, | ||
100.5, | ||
95.56, | ||
92.8, | ||
85.25, | ||
77.4, | ||
76.4, | ||
73.94, | ||
74.56, | ||
81.06 | ||
] | ||
}, | ||
{ | ||
"x": [ | ||
"12 AM diagonal", | ||
"1 AM diagonal", | ||
"2 AM diagonal", | ||
"3 AM diagonal", | ||
"4 AM diagonal", | ||
"5 AM diagonal", | ||
"6 AM diagonal", | ||
"7 AM diagonal", | ||
"8 AM diagonal", | ||
"9 AM diagonal", | ||
"10 AM diagonal", | ||
"11 AM diagonal" | ||
], | ||
"y": [ | ||
59.44, | ||
68.75, | ||
87.5, | ||
100.5, | ||
95.56, | ||
92.8, | ||
85.25, | ||
77.4, | ||
76.4, | ||
73.94, | ||
74.56, | ||
81.06 | ||
], | ||
"xaxis": "x2", | ||
"yaxis": "y2" | ||
} | ||
], | ||
"layout": { | ||
"grid": { | ||
"columns": 2, | ||
"rows": 1, | ||
"pattern": "independent" | ||
}, | ||
"margin": { | ||
"l": 0, | ||
"r": 0, | ||
"t": 0, | ||
"b": 0 | ||
}, | ||
"xaxis": { | ||
"showgrid": false, | ||
"showline": true, | ||
"zeroline": true, | ||
"automargin": true, | ||
"side": "top", | ||
"tickangle": 45 | ||
}, | ||
"yaxis": { | ||
"side": "right", | ||
"showgrid": false, | ||
"showline": true, | ||
"zeroline": true, | ||
"automargin": true | ||
}, | ||
"xaxis2": { | ||
"showgrid": false, | ||
"showline": true, | ||
"zeroline": true, | ||
"automargin": true, | ||
"tickangle": 45 | ||
}, | ||
"yaxis2": { | ||
"side": "left", | ||
"showgrid": false, | ||
"showline": true, | ||
"zeroline": true, | ||
"automargin": true | ||
}, | ||
"showlegend": false | ||
} | ||
} |
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,109 @@ | ||
{ | ||
"data": [ | ||
{ | ||
"y": [ | ||
"12 AM diagonal", | ||
"1 AM diagonal", | ||
"2 AM diagonal", | ||
"3 AM diagonal", | ||
"4 AM diagonal", | ||
"5 AM diagonal", | ||
"6 AM diagonal", | ||
"7 AM diagonal", | ||
"8 AM diagonal", | ||
"9 AM diagonal", | ||
"10 AM diagonal", | ||
"11 AM diagonal" | ||
], | ||
"x": [ | ||
59.44, | ||
68.75, | ||
87.5, | ||
100.5, | ||
95.56, | ||
92.8, | ||
85.25, | ||
77.4, | ||
76.4, | ||
73.94, | ||
74.56, | ||
81.06 | ||
] | ||
}, | ||
{ | ||
"y": [ | ||
"12 AM diagonal", | ||
"1 AM diagonal", | ||
"2 AM diagonal", | ||
"3 AM diagonal", | ||
"4 AM diagonal", | ||
"5 AM diagonal", | ||
"6 AM diagonal", | ||
"7 AM diagonal", | ||
"8 AM diagonal", | ||
"9 AM diagonal", | ||
"10 AM diagonal", | ||
"11 AM diagonal" | ||
], | ||
"x": [ | ||
81.06, | ||
74.56, | ||
73.94, | ||
76.4, | ||
77.4, | ||
85.25, | ||
92.8, | ||
95.56, | ||
100.5, | ||
87.5, | ||
68.75, | ||
59.44 | ||
], | ||
"xaxis": "x2", | ||
"yaxis": "y2" | ||
} | ||
], | ||
"layout": { | ||
"grid": { | ||
"columns": 1, | ||
"rows": 2, | ||
"pattern": "independent" | ||
}, | ||
"margin": { | ||
"l": 0, | ||
"r": 0, | ||
"t": 0, | ||
"b": 0 | ||
}, | ||
"xaxis": { | ||
"showgrid": false, | ||
"showline": true, | ||
"zeroline": true, | ||
"automargin": true, | ||
"side": "bottom" | ||
}, | ||
"yaxis": { | ||
"side": "right", | ||
"showgrid": false, | ||
"showline": true, | ||
"zeroline": true, | ||
"automargin": true, | ||
"tickangle": -45 | ||
}, | ||
"xaxis2": { | ||
"showgrid": false, | ||
"showline": true, | ||
"zeroline": true, | ||
"automargin": true, | ||
"side": "top" | ||
}, | ||
"yaxis2": { | ||
"showgrid": false, | ||
"showline": true, | ||
"zeroline": true, | ||
"automargin": true, | ||
"tickangle": -45 | ||
}, | ||
"showlegend": false | ||
} | ||
} |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.