Gnuplot 点划线
大家好,我正在使用 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
他是什么意思通过这里的后记?我怎样才能实现这个目标?我已经多次尝试使用以下命令绘制图表: 用第 5 行绘制“graph1.txt”,但我没有得到点划线。
非常感谢您的帮助!
Hi guys I'm using Windows and I'm trying to get something done in Gnuplot. I need to set the line style of my graph as dot dash.
http://sparky.rice.edu/gnuplot.html tells me that:
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
What does he mean by postscript here? How can I achieve this? I've been trying many times to plot my graph using the command:
plot 'graph1.txt' with lines lt 5 but I don't get the dot-dash line.
Help would be immensely appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这意味着为
lt
指定的值仅在您绘制到 Postscript 文件时才起作用,而如果您以简单的方式在窗口中绘制则不起作用。最简单的事情是使用绘图到 Postscript 文件。绘图将在
file.ps
中。This means that the values given for
lt
only work when you are plotting to a Postscript file, and will not work if you plot in a window in the straightforward way. Simplest thing would be to plot to a Postscript file usingThe plot will be in
file.ps
.