Skip to content

Factor out palette-related code from "named colors" PR#1921

Draft
NilsNemitz wants to merge 1 commit intopyqtgraph:masterfrom
NilsNemitz:add_a_palette
Draft

Factor out palette-related code from "named colors" PR#1921
NilsNemitz wants to merge 1 commit intopyqtgraph:masterfrom
NilsNemitz:add_a_palette

Conversation

@NilsNemitz
Copy link
Copy Markdown
Contributor

This is work-in-progress code that extracts (and hopes to clean up) the main palette management code from my earlier PR #1625.
Palette colors and UI monochromes are now sampled from color maps, which means that generation of an arbitrary number of plot colors by functions.intColor() and the monochrome generation for float values passed to mkColor() can be maintained while matching the alternative color schemes.

Once the code is in better shape, it should allow color presets (to be selected before plots are initialized) with less complexity and bugs than the original proposal... and will hopefully be less painful to review :)

@NilsNemitz NilsNemitz marked this pull request as draft July 25, 2021 17:18
@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Nov 18, 2021

Hi @NilsNemitz this PR looks like it needs a rebase given all the reshuffling of stuff we've done over the last few months, sorry for the head-ache! Let me know if I can help with that effort.

@NilsNemitz
Copy link
Copy Markdown
Contributor Author

Heh, thanks for the concern, but unfortunately, this is the least of the worries for this PR.

I put this here as a PR to have a basis for discussion, but in all honesty, work has stalled on this a little, and I am still trying to figure out what bits need to go where in order to give this at least a semblance of elegance.

I think we might close this PR for now, keep the numbers looking good.
I will make a new one when I have my squids in a row.

@NilsNemitz NilsNemitz mentioned this pull request Mar 29, 2023
29 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants