-
Notifications
You must be signed in to change notification settings - Fork 1
Parallel category V4 #106
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
Parallel category V4 #106
Conversation
tips = px.data.tips() | ||
fig = px.parallel_categories(tips, dimensions=['sex', 'smoker', 'day'], | ||
color="size", color_continuous_scale=px.colors.sequential.Inferno, | ||
labels={'sex':'SEX', 'smoker':'SMOKER', 'day':'DAY'}) |
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.
Let's do something more interesting than just capitalize them ... how about "Payer Sex", "Smokers at the table" and "Day of week"?
) | ||
|
||
iplot([parcats]) | ||
fig = go.Figure(parcats) |
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.
you don't need the intermediate variable here, please just inline the trace in the figure.
@@ -97,7 +105,8 @@ parcats = go.Parcats( | |||
counts=[6, 10, 40, 23, 7] | |||
) | |||
|
|||
iplot([parcats]) | |||
fig = go.Figure(parcats) |
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.
again, please inline.
Looks great! |
Doc upgrade checklist:
unconverted/x/y.md
tox/y.md
plot()
oriplot()
graph_objs
has been renamed tograph_objects
fig = <something>
call is high up in each exampletrace
objectsadd_trace
andupdate_layout
fig.show()
at the end of each examplepx
example at the top if appropriate