-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
preload val_map from orders #2105
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
Conversation
) | ||
|
||
for col in range(len(days)): | ||
for trace in fig.select_traces(col=col + 1): |
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.
oh great I didn't know fig.select_traces
:-). Not sure it's documented anywhere.
@@ -182,3 +182,43 @@ def test_px_templates(): | |||
assert fig.layout.xaxis3.showgrid is None | |||
assert fig.layout.yaxis2.showgrid | |||
assert fig.layout.yaxis3.showgrid | |||
|
|||
|
|||
def test_orthogonal_orderings(): |
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.
great test!
@@ -182,3 +182,43 @@ def test_px_templates(): | |||
assert fig.layout.xaxis3.showgrid is None | |||
assert fig.layout.yaxis2.showgrid | |||
assert fig.layout.yaxis3.showgrid | |||
|
|||
|
|||
def test_orthogonal_orderings(): |
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.
Is it worth testing that adding in category_orders
a value not present in the data does not break things?
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.
yeah I tried but it's a harder test to write and much slower :)
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.
OK I think I have a way to spot-check a few options
The approach (defining col and row numbers in advance) looks sound to me, and the test is very useful. 💃 |
Closes #2084 by populating
val_map
in a group-independent way. @emmanuelle thoughts on the approach?