Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gnuplot - Increase size of point only in legend/key

Tags:

gnuplot

I have a graph that looks like this:

image

I want to increase the size of the points in the legend (is it legend or key?) but without increasing the size of the points in the plot. It's explained better in the picture. Can this be achieved?

like image 394
Gabriel Avatar asked Sep 07 '12 00:09

Gabriel


2 Answers

First plot nothing with increased symbol size, then plot the data without the key.

gnuplot> plot 1/0 ls 7 lw 6 with points t "0.0", "yourdata" ls 7 notitle

Use the same point style for both of the plots, and rename the first plot key as you wish.

like image 191
Jari Laamanen Avatar answered Oct 14 '22 22:10

Jari Laamanen


Unless you are using filled circles (pt 7) you may want to adopt this improvement of the Jari's answer which looks better as the points in the key are less fatty and more elegant:

plo 1/0 w p lc 1 pt 1 lw 3 ps 3 t "Data 1", "data1.dat" lc 1 pt 1 notitle,\
    1/0 w p lc 3 pt 2 lw 3 ps 3 t "Data 2", "data2.dat" lc 3 pt 2 notitle
like image 34
DarioP Avatar answered Oct 14 '22 23:10

DarioP