显示 gnuplot 默认线型

Win*_*ith 5 gnuplot colors

如何显示 gnuplot 的默认线条样式(对于给定的输出终端)?

我发现如果我定义自己的线条样式,我就可以显示它。但它不显示命令显示的默认样式的规范test

gnuplot> show style line

gnuplot> set style line 44 lt 2 lc rgb "green" lw 2
gnuplot> show style line
        linestyle 44,  linetype 2 linecolor rgb "green"  linewidth 2.000 pointtype 2 pointsize default pointinterval 0
Run Code Online (Sandbox Code Playgroud)

我想查看默认线条样式颜色的规范,以便我可以在包含我的绘图的网页中使用相应的颜色。

请注意,我不是在问“如何绘制特定的线条样式”,或“如何以图形方式显示线条样式的外观”(测试命令)。我问如何列出默认线条样式的(文本)描述。

Chr*_*oph 6

在 gnuplot 版本 5 中,该命令show linetype 1为您提供第一个默认线型的定义。

gnuplot> show linetype 1

    linetype 1,  linecolor rgb "dark-violet"  linewidth 1.000 dashtype solid pointtype 1 pointsize default pointinterval 0
Run Code Online (Sandbox Code Playgroud)

并提供show linetypes所有预定义线型的列表:

gnuplot> show linetypes

    linetype 1,  linecolor rgb "dark-violet"  linewidth 1.000 dashtype solid pointtype 1 pointsize default pointinterval 0
    linetype 2,  linecolor rgb "#009e73"  linewidth 1.000 dashtype solid pointtype 2 pointsize default pointinterval 0
    linetype 3,  linecolor rgb "#56b4e9"  linewidth 1.000 dashtype solid pointtype 3 pointsize default pointinterval 0
    linetype 4,  linecolor rgb "#e69f00"  linewidth 1.000 dashtype solid pointtype 4 pointsize default pointinterval 0
    linetype 5,  linecolor rgb "#f0e442"  linewidth 1.000 dashtype solid pointtype 5 pointsize default pointinterval 0
    linetype 6,  linecolor rgb "#0072b2"  linewidth 1.000 dashtype solid pointtype 6 pointsize default pointinterval 0
    linetype 7,  linecolor rgb "#e51e10"  linewidth 1.000 dashtype solid pointtype 7 pointsize default pointinterval 0
    linetype 8,  linecolor rgb "black"  linewidth 1.000 dashtype solid pointtype 8 pointsize default pointinterval 0
    Linetypes repeat every 8 unless explicitly defined
Run Code Online (Sandbox Code Playgroud)