Qt properties editor could sort lines labels using natsort · Issue #6315 · matplotlib/matplotlib · GitHub
Skip to content

Qt properties editor could sort lines labels using natsort #6315

Description

@anntzer

When there are more than 10 (unlabeled) lines in a graph, they appear in the combobox as

_line0
_line1
_line10
_line11
...
_line2
_line3

etc.

"Natural" integer sorting (https://pypi.python.org/pypi/natsort) would be, well, more natural here. Or one could hack the "default" labels ("_lineX") to return a str subclass with a custom comparator, so that other labels are not affected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions