Skip to content

How to turn off legend in CIE Diagram? #754

Answered by KelSolaar
hminle asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @hminle,

So the quick way to turn the legend off is to do that:

colour.plotting.plot_RGB_colourspaces_in_chromaticity_diagram_CIE1931(['sRGB', 'ProPhoto RGB'], legend=False)

Alternatively, and probably better in your case:

figure, axes = colour.plotting.plot_RGB_colourspaces_in_chromaticity_diagram_CIE1931(['sRGB', 'ProPhoto RGB'], standalone=False)
axes.legend().texts = ['sRGB (Adapted)', 'ProPhoto RGB']
colour.plotting.render()  # or plt.show()

Cheers,

Thomas

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by KelSolaar
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #653 on January 16, 2021 23:03.