Skip to content

add_mesh per-face coloring#984

Open
sp-droid wants to merge 2 commits intofastplotlib:mainfrom
sp-droid:main
Open

add_mesh per-face coloring#984
sp-droid wants to merge 2 commits intofastplotlib:mainfrom
sp-droid:main

Conversation

@sp-droid
Copy link

  • When not uniform, the class will expect colors to be as large as either the positions (per-vertex coloring with intermediate interpolation) or the indices (per-face coloring).

I didn't go further with creating a new parameter because this was much simpler.

When not uniform, the class will expect colors to be as large as either the positions (per-vertex coloring with intermediate interpolation) or the indices (per-face coloring)
@sp-droid
Copy link
Author

sp-droid commented Feb 6, 2026

I also suggest adding a comment to specify that the colors must be in linear RGB mode, NOT sRGB which is what we get from popular colormap sources such as the ones in matplotlib. I was pulling my hairs today trying to figure out why the same thing on matplotlib and fastplotlib was different.

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.

1 participant