|
From: Ethan A M. <eam...@gm...> - 2013-05-31 15:14:07
|
On Friday, 31 May 2013, seb_kramm wrote:
> Hello,
>
> When plotting points from a datafile, gnuplot offers me the ability to change the
> color of the point depending of some column:
> plot "datafile" using 1:2:3 with points palette
>
> I can also have the size of the point depend on a column of data:
> plot "datafile" using 1:2:3 with points ps variable
>
> Now, I want to have the type of the point depend on a column of data.
The closest is to use selected single character glyphs instead of
the predefined point types. Then you can use a command such as
set encoding utf8
symbol = "+⁕∙∎⊙⊡★☆♠♣♥♦"
plot FOO using 1:2:(symbol[int($3):int($3)]) with labels
A more complicated variant using sprintf allows you to also vary
the color and size of the font used. See for example
http://gnuplot.sourceforge.net/demo_cvs/cities.html
|