Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change dot size in gnuplot

Tags:

gnuplot

How to change point size and shape and color in gnuplot.

plot "./points.dat" using 1:2 title with dots

I am using above command to plot graph ,but it shows very small size points.

I tried to use command

set pointsize 20

but still point size is same.

like image 801
user69910 Avatar asked May 22 '13 16:05

user69910


2 Answers

Use the pointtype and pointsize options, e.g.

plot "./points.dat" using 1:2 pt 7 ps 10  

where pt 7 gives you a filled circle and ps 10 is the size.

See: Plotting data.

like image 52
Schorsch Avatar answered Nov 14 '22 22:11

Schorsch


The pointsize command scales the size of points, but does not affect the size of dots.

In other words, plot ... with points ps 2 will generate points of twice the normal size, but for plot ... with dots ps 2 the "ps 2" part is ignored.

You could use circular points (pt 7), which look just like dots.

like image 34
Josh Milthorpe Avatar answered Nov 14 '22 22:11

Josh Milthorpe