|
From: Andreas H. <and...@st...> - 2011-07-20 15:25:28
|
Hello everyone.
I'm plotting data from different data files using the iteration
mechanism. Currently my gnuplot script contains the following code:
set terminal epslatex color solid
set arrow from 0.365,0.2 to 0.365,0.0 # V=5
set arrow from 0.236,0.2 to 0.236,0.0 # V=7
plot [0:0.4] [0:1.1] \
for [V in "0 1 2 3 5 7 "] 'V'.V.'.dat' \
using ($1**(1/3.)):7:8 w yerrorlines lw 3 ps 2
Unfortunately, the V=7 lines has yellow color which is barely visible.
Is there a way to change this lines' color without changing the other
lines?
I already tried `set style line 6 lc rgb "brown"` but this didn't affect
my plot at all. Furthermore, I would like to use filled point styles
only. E.g. filled triangle, circle, square, etc.. How can I specify
different point styles for each plot?
I have another plot which uses iterations, too. However, in that case
the iteration variable contains values like "1e-3". Therefore I'm afraid
I cannot just use the iteration variable to specify the line style in
the plot command.
Some things that came to mind I don't know how to implement, or whether
they are even possible:
Can I iterate an additional counter in the for loop? Something along the
lines of `plot for [V in "0 1 2 ..."; i = 1:6] ... linestyle i`.
Does gnuplot support arrays?
Then I could do `plot for [i = 1:6] files[i] w yerrorlines linestyle i`.
Thanks for your help.
Best regards,
Andreas
|