Pointtype command for gnuplot

霸气de小男生 提交于 2020-01-01 01:16:23

问题


I'm having trouble using the pointtype command on gnuplot. I've tried several ways such as:

set pt 5
set pointtype 5
plot " " w pt 5
plot " " w pointtype 5

And for some reason nothing seems to work. I tried using the "help" feature, and apparently my version of gnuplot doesn't have "pt" or "pointtype" as an option. Is this perhaps listed as some other feature. I know the points are there, when I plot multiple sets of data, the point type automatically changes, but I have no personal control over choosing the point type.

Any help would be greatly appreciated.


回答1:


You first have to tell Gnuplot to use a style that uses points, e.g. with points or with linespoints. Try for example:

plot sin(x) with points

Output:

Now try:

plot sin(x) with points pointtype 5

Output:

You may also want to look at the output from the test command which shows you the capabilities of the current terminal. Here are the capabilities for my pngairo terminal:



来源:https://stackoverflow.com/questions/16736861/pointtype-command-for-gnuplot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!