针对 viridis 进行注释的最佳颜色

Dan*_*and 10 matplotlib

用于针对 viridis 进行注释的“最佳”颜色是什么?我正在寻找一种具有最大清晰度和对比度的颜色。由于 viridis 颜色方案涉及很多科学知识,我希望有一种“理想”颜色用于在 viridis 上进行注释。如下所示,在 matplotlib 中使用标准“红色”并没有很好的可见性。

编辑:我不会考虑这个纯粹的观点,因为 viridis 配色方案背后有严格的科学,并且我对适合该框架的答案感兴趣。

在此输入图像描述

小智 4

根据@JohanC 的评论,我同意使用不同的面和边缘颜色是一个好主意。这是示例:

# It is only a fraction of code to reproduce the figure, just an example of text highlight
import matplotlib.patheffects as PathEffects
txt = axes.text(1.15, 8.25,"Good fit at dense and\nCO-rich conditions", color='w', rotation=45)
txt.set_path_effects([PathEffects.withStroke(linewidth=1, foreground='k')])
Run Code Online (Sandbox Code Playgroud)

对绿色的路径效应