Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pointtype command for gnuplot

Tags:

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.

like image 792
user2417813 Avatar asked May 24 '13 14:05

user2417813


People also ask

What is gnuplot command?

gnuplot is a command-driven interactive function plotting program. It can be used to plot functions and data points in both two- and three- dimensional plots in many different formats. It is designed primarily for the visual display of scientific data.

How do I start gnuplot?

To start gnuplot under MS Windows, double-click on the gnuplot icon. The gnuplot window will pop up with menus and buttons along the top, the opening message and the gnuplot> prompt inside the window. To start gnuplot under OS/2, open the folder where gnuplot is located, and double click on the gnuplot icon.

What is set sample gnuplot?

The sampling rate of functions, or for interpolating data, may be changed by the set samples command. By default, sampling is set to 100 points. A higher sampling rate will produce more accurate plots, but will take longer.

How use gnuplot data file?

To plot functions simply type: plot [function] at the gnuplot> prompt. Discrete data contained in a file can be displayed by specifying the name of the data file (enclosed in quotes) on the plot or splot command line. Data files should have the data arranged in columns of numbers.


1 Answers

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:

like image 185
Thor Avatar answered Oct 01 '22 07:10

Thor