user69910
user69910

Reputation: 1003

How to change dot size in 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.

Upvotes: 63

Views: 144021

Answers (3)

Jishnu Goswami
Jishnu Goswami

Reputation: 1

plot "./points.dat" using 1:2 title with dt 2 lw 4

Upvotes: 0

Schorsch
Schorsch

Reputation: 7905

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.

Upvotes: 82

Josh Milthorpe
Josh Milthorpe

Reputation: 1038

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.

Upvotes: 12

Related Questions