-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Axis constraints #1522
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
Axis constraints #1522
Changes from 1 commit
e9a89c2
d9a8ab7
6c60a32
98900a2
84d95a5
f521227
13f848e
dee136d
ef3ca48
25c2cfb
86e0d5a
745b953
7fc9cbd
ffd65fd
b4d11e6
23859e3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -246,12 +246,20 @@ describe('Test hover and click interactions', function() { | |
pointNumber: 0 | ||
}); | ||
|
||
// after the restyle, autorange changes the y range | ||
var run2 = makeRunner([435, 106], { | ||
x: 8, | ||
y: 18, | ||
curveNumber: 2, | ||
pointNumber: 0 | ||
}); | ||
|
||
Plotly.plot(gd, _mock) | ||
.then(run) | ||
.then(function() { | ||
return Plotly.restyle(gd, 'visible', false, [1]); | ||
}) | ||
.then(run) | ||
.then(run2) | ||
.catch(fail) | ||
.then(done); | ||
}); | ||
|
@@ -269,12 +277,23 @@ describe('Test hover and click interactions', function() { | |
pointNumber: 0 | ||
}); | ||
|
||
// after the restyle, autorange changes the x AND y ranges | ||
// I don't get why the x range changes, nor why the y changes in | ||
// a different way than in the previous test, but they do look | ||
// correct on the screen during the test. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it makes sense that the axis ranges are different here than in the test above, as this is scattergl-fancy... but then why are they the same as the test above during the first There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah. Maybe I tried to be too fancy in this test suite. |
||
var run2 = makeRunner([426, 116], { | ||
x: 8, | ||
y: 18, | ||
curveNumber: 2, | ||
pointNumber: 0 | ||
}); | ||
|
||
Plotly.plot(gd, _mock) | ||
.then(run) | ||
.then(function() { | ||
return Plotly.restyle(gd, 'visible', false, [1]); | ||
}) | ||
.then(run) | ||
.then(run2) | ||
.catch(fail) | ||
.then(done); | ||
}); | ||
|
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.
For some reason I don't understand, when this test ran before my changes, the y-axis didn't get autoranged after the
restyle
, even though when I make the samerestyle
call on master in the test dashboard it does autorange. Anyway, now it does get autoranged during the test, as it should, which is why I needed to alter therun
the second time around.