Why the color of bars changes each time I draw a plot with "colour.plotting.plot_single_sd_colour_rendering_index_bars" definition? #723
-
I use |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Hi @Edwardlin-zlt, A typical plot would look like this: The bars are actually coloured the way the light tested would render the test sample. Are your lights very narrowband/highly colourful? |
Beta Was this translation helpful? Give feedback.
-
Thanks~ My lights are not real lights. And it has low rf. What if I really want those bar's have one exactly same colour set? What I could do to reach that goal? And is it normal to have one bar above 100 line? You see my outcome plot has a bar out of figure box. |
Beta Was this translation helpful? Give feedback.
-
I'm a bit unclear, do you want them to have all the same colours or use constant pre-defined colours?
I would say yes, CRI was fitted against real-world lights with relatively broad spectrum so to speak, if you use narrowband artificial lights I would not be surprised that you get such results, it is also possible to get negative values, although those are taken in account and all the bars will be showing as positive. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the late. For the first one, I actually want control the bars' colour. So what could I do if I don't want bars to be coloured the way the light tested would render the test sample, just want them to be the same colour each time i draw the plot. |
Beta Was this translation helpful? Give feedback.
-
Something like that should work: import colour
import colour.plotting
illuminant = colour.ILLUMINANTS_SDS['FL2']
_figure, axes = colour.plotting.plot_single_sd_colour_quality_scale_bars(
illuminant, standalone=False)
for patch in axes.patches:
patch.set_facecolor('r')
colour.plotting.render(standalone=True) |
Beta Was this translation helpful? Give feedback.
-
Thanks! You are so patient and helpful~~~~ |
Beta Was this translation helpful? Give feedback.
Hi @Edwardlin-zlt,
A typical plot would look like this:
The bars are actually coloured the way the light tested would render the test sample.
Are your lights very narrowband/highly colourful?