用于针对 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)
| 归档时间: |
|
| 查看次数: |
1527 次 |
| 最近记录: |