-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Sorting categorical axes #3799
Comments
Respecting |
Hm, I hadn't seen #3675. On the other hand I was sure I'd tested the functionality more recently than that and it still wasn't working in my case. Will have to investigate again. |
It's definitely not implemented yet. |
I have this sorting issues with I did write a workaround for the meantime
where |
Problem solved - see the end of the message. I have a similar problem of not being able re-order the axis ticks on a holoviews heatmap:
Have anyone been in the same situation? And perhaps found a workaround? I have tried @DancingQuanta' workaround of overwriting the order of I want to change the order of the y-axis, because I'm changing my current implementation of a confusion matrix from matplotlib to holoviews, such that it gets the same format as seen here: https://scikit-learn.org/stable/auto_examples/model_selection/plot_confusion_matrix.html EDIT
|
I'm having a similar issue as I explain in a question posted on stack. The solution isn't fixed by inverting axes though. Any suggestions? |
Following up on holoviz/hvplot#122, I think we should first decide if ordering is a part of the dimension declaration or of the styling options.
One solution would be, first of all, to respect the ordering of the
hv.Dimension(values= )
kwarg, that's not too hard I guess.Beyond that, if we wanted to have ordering by, say, alphabetical, inverse alphabetical, length of label, whatever, or
mean
/max
/etc, would that live in the styling options with a hook into redimensioning thevalues=
kwarg accordingly? Or something different?The text was updated successfully, but these errors were encountered: