Hi, I assemble chromaticity data xy in a list called observations. I want to plot those in a chromaticity diagram. I want to have a closer look at the variation of the data, but don’t know how to do that. I scanned the docs, but did not find a clue.
I use code taken from the docs, slightly modified to meet my needs:
annotate_kwargs = [
{'xytext': (-25, 15), 'arrowprops':{'arrowstyle':'-'}},
{'arrowprops':{'arrowstyle':'-['}},
{},
]
plot_kwargs = [
{
'markersize' : 15,
},
{ 'color': 'r'},
{},
]
colour.plotting.temperature.plot_planckian_locus_in_chromaticity_diagram(
['A', 'B', 'C'],
annotate_kwargs=annotate_kwargs,
plot_kwargs=plot_kwargs,
standalone = False
)
for ii in range(len(observations)) :
xy = observations[ii] #OK
x, y = xy
plt.plot(x, y, 'o-', color='black') #'white'
# Annotating the plot.
plt.annotate('Obs '+str(ii),
#plt.annotate(patch_sd.name.title(),
xy=xy,
xytext=(-50, 30),
textcoords='offset points',
arrowprops=dict(arrowstyle='->', connectionstyle='arc3, rad=-0.2'))
plt.savefig('/home/pi/node-red-static/spectrometer_images/CIE1931.png')
Where can I put the x and y range for the axes?
And just one other question: I don’t want to show the A, B and C illuminants in the plot. What do I have to do to remove those? Simply using an empty [] i.s.o [‘A’, ‘B’, ‘C’] leads to an exception…
Thanks, Fred