【问题标题】:Gnuplot dot dashGnuplot 点划线
【发布时间】:2011-04-23 08:15:12
【问题描述】:

大家好,我正在使用 Windows,我正在尝试在 Gnuplot 中完成一些工作。我需要将图表的线条样式设置为点划线。

http://sparky.rice.edu/gnuplot.html 告诉我:

 Differs from x11 to postscript
 lt chooses a particular line type: -1=black 1=red 2=grn 3=blue 4=purple 5=aqua 6=brn 7=orange 8=light-brn
 lt must be specified before pt for colored points
 for postscipt -1=normal, 1=grey, 2=dashed, 3=hashed, 4=dot, 5=dot-dash

他这里的后记是什么意思?我怎样才能做到这一点?我一直在尝试使用以下命令绘制我的图表: plot 'graph1.txt' with lines lt 5 但我没有得到点划线。

非常感谢您的帮助!

【问题讨论】:

    标签: gnuplot


    【解决方案1】:

    这意味着为lt 提供的值仅在您打印到 Postscript 文件时有效,如果您以直接方式在窗口中打印,则不会有效。最简单的事情是使用

    绘制到 Postscript 文件
    set term postscript
    set output "file.ps"
    

    情节将在file.ps

    【讨论】:

    • 我明白了。但我需要将其导出为 .eps。那么我该如何将 .ps 转换为 .eps 呢?我想重申我正在使用 Windows。谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多