stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

feat: Allows the XYZ plot to be sorted alphabetically

Open zero41120 opened this issue 1 year ago • 0 comments

Description

The XYZ plot currently lists options in an order that seems random, likely reflecting their UI placement. This can make locating specific options challenging, particularly as extensions are adding items to the list.

In this PR:

  • added a simple option to sort XYZ Plot options alphabetically
  • created a copy of axis_options and applied sorting during the XYZ Plot UI rendering
  • kept "Nothing" as the first option

Screenshots/videos:

Before After
Options are organized by functionality, with related items like Sampler and Hires-Sampler placed together. Options are sorted alphabetically.
Before Screenshot After Screenshot

Settings option: Screenshot 2024-08-31 at 16 51 56

Checklist:

  • [x] I have read contributing wiki page
  • [x] I have performed a self-review of my own code
  • [x] My code follows the style guidelines
  • [x] My code passes tests
    • Unable to verify tests fully. My MacBook Pro M3pro on master without any changes does not pass all tests.
    • Changes in this PR are UI only. No changes to Python or other server-side code. It is unlikely that these changes will affect existing functionality.
    • Github test passes

zero41120 avatar Sep 01 '24 00:09 zero41120