Skip to content

How to zoom in the CIE 1931 Chromaticity Diagram? #761

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

You must be logged in to vote

Hi @goofy2k,

If using colour native plotting features:

>>> import colour
>>> colour.plotting.temperature.plot_planckian_locus_in_chromaticity_diagram(['D65'], bounding_box=[0.4, 0.6, 0, 1])

Or if you want to do it via Matplotlib, you will need to use the standalone keyword as we are rendering/showing the figure by default:

>>> import colour
>>> import matplotlib.pyplot as plt
>>> colour.plotting.temperature.plot_planckian_locus_in_chromaticity_diagram(['D65'], standalone=False)
>>> plt.xlim([0.4, 0.6])
>>> plt.show()

Replies: 7 comments 7 replies

Comment options

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

You must be logged in to vote
2 replies
@KelSolaar
Comment options

@KelSolaar
Comment options

Comment options

You must be logged in to vote
3 replies
@KelSolaar
Comment options

@goofy2k
Comment options

@KelSolaar
Comment options

Comment options

You must be logged in to vote
1 reply
@KelSolaar
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@KelSolaar
Comment options

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