El jue, 18-04-2013 a las 21:51 +0200, Adam escribi?:
> Hi,
>
> I draw 2 lists of vectors using draw package :
> http://riotorto.users.sourceforge.net/gnuplot/vectors/index.html
>
> I want to give one key ( in legend ) to all vectors from one list and
> another key for second list.
> How can I do it ?
Adam,
Short pieces of code are easier to run and check.
The trick here is to write the legend only for the first vector and
leave the rest of the vectors without legends. Something like this
should work:
set_of_vectors_with_one_legend(vectors, legend) :=
[ key = legend,
first(vectors),
key = "",
rest(vectors) ] $
draw2d( set_of_vectors_with_one_legend(va, "Vector field") ) $
--
Mario