同一个图中有两个人物

问题描述 投票:0回答:1

我正在尝试在一个图中绘制 color.plotting 中的两个数字。 我知道有一个显示参数,所以我尝试只显示第二个数字,但它不起作用:

import colour

colour.plotting.plot_planckian_locus_in_chromaticity_diagram_CIE1931(["A", "B", "C"],show=False);
colour.plotting.plot_RGB_colourspaces_in_chromaticity_diagram_CIE1931(["ITU-R BT.709", "ITU-R BT.2020"],show=True)
python colors
1个回答
0
投票

我需要通过轴将它们组合起来:

import colour
import matplotlib.pyplot as plt

figure, axes = colour.plotting.plot_RGB_colourspaces_in_chromaticity_diagram_CIE1931(["ITU-R BT.709", "ITU-R BT.2020"], show=False)
colour.plotting.temperature.plot_planckian_locus(axes=axes, show=True)

plt.show()

感谢 GitHub 上的@KelSolaar!

https://github.com/colour-science/colour/discussions/1253

© www.soinside.com 2019 - 2024. All rights reserved.