I know how to define a string array without space in gnuplot, for instance,
titles = "LineA LineB"
How can I define a string array where the string contains a space, such as Line A
? Here is the source code but it doesn't work.
titles = "'Line A' 'Line B'"
set style line 1 pt 2 lc rgb 'green'
set style line 2 pt 4 lc rgb 'red'
plot for [i = 1:words(titles)] file using 2:3 with lp ls i title word(titles, i)
PS: the version of my gnuplot is:
G N U P L O T
Version 4.6 patchlevel 4 last modified 2013-10-02
Build System: Linux x86_64