kwargs什么都不做
kwargs don't do anything
你能帮我理解为什么这些关键字参数在图表绘制上没有任何作用吗?
我的代码没有 return 任何错误,但它没有考虑这些参数。
plot_kwargs = ({'marker': 'o', 'color': 'w', 'mec': 'b', 'linestyle': '-'})
annotate_kwargs = ({'text': 'illuminant'})
plot_planckian_locus_in_chromaticity_diagram(xy, method='CIE 1960 UCS', **plot_kwargs, **annotate_kwargs)
假设您正在使用 Colour,您不应该使用字典解包来传递 plot_kwargs
和 annotate_kwargs
。
plot_planckian_locus_in_chromaticity_diagram(
['A', 'B', 'C'],
annotate_kwargs=annotate_kwargs,
plot_kwargs=plot_kwargs
)
你能帮我理解为什么这些关键字参数在图表绘制上没有任何作用吗? 我的代码没有 return 任何错误,但它没有考虑这些参数。
plot_kwargs = ({'marker': 'o', 'color': 'w', 'mec': 'b', 'linestyle': '-'})
annotate_kwargs = ({'text': 'illuminant'})
plot_planckian_locus_in_chromaticity_diagram(xy, method='CIE 1960 UCS', **plot_kwargs, **annotate_kwargs)
假设您正在使用 Colour,您不应该使用字典解包来传递 plot_kwargs
和 annotate_kwargs
。
plot_planckian_locus_in_chromaticity_diagram(
['A', 'B', 'C'],
annotate_kwargs=annotate_kwargs,
plot_kwargs=plot_kwargs
)