How to change dot size in gnuplot

Gnuplot

Gnuplot Problem Overview


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.

Gnuplot Solutions


Solution 1 - Gnuplot

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.

Solution 2 - Gnuplot

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.

Solution 3 - Gnuplot

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser69910View Question on Stackoverflow
Solution 1 - GnuplotSchorschView Answer on Stackoverflow
Solution 2 - GnuplotJosh MilthorpeView Answer on Stackoverflow
Solution 3 - GnuplotJishnu GoswamiView Answer on Stackoverflow