Skip to content

[FEATURE] Reorder categorical axes #222

@andrzejnovak

Description

@andrzejnovak

I've hit this while implementing scikit-hep/mplhep#303 and realizing the results can be funny if the categorical axis is set with growth=True. I think it makes more sense to order on the object, than at plotting time. API could look like

h.sort('axis_name', key=list | fcn as passed to sorted())

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions