【发布时间】:2021-07-24 10:39:33
【问题描述】:
我想在 Python 中使用 gnuplot 颜色图。所附图片是在 gnuplot 中使用 surface plot 命令生成的。但我对 gnuplot 及其颜色图了解不多。
如何在 matplotlib 中制作与此 gnuplot 颜色图类似的颜色图? 显示图片的 Gnuplot 命令如下。但无法提供代码中使用的文件。
set palette rgb 32,3,36 negative
set style line 1 lc rgb "blue" pt 6 ps 0.6
set style line 2 lc rgb "blue" pt 6 ps 0.5
set style line 3 lt 2 lc rgb "red"
set style line 4 lc rgb "black" lw 0.5
set style line 5 lc rgb "blue" pt 7 ps 0.2
任何帮助将不胜感激。
【问题讨论】:
-
我给出的命令是自定义颜色图。我正在使用其他人编写的代码。共享命令没有害处。
-
很遗憾,我无法将代码添加到注释中,因为它有点长。
标签: matplotlib gnuplot colormap