the first plot (line 4) is fine (title, color, style and width) are OK,
but the second is not: " line 5: unrecognized plot type"
What is wrong on line 5 ?
Thank you
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your problem is that in line 5 you're trying to use the string not just as a parameter to some keyword, but as the keyword itself. The test case can be simplified to
So how can I switch between line, point and linesp in a plot for loop the choice between the 3 possibilities being determined by a string (like the colors eg) or possibly a function ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
I have a file 'tmptst('with two data-sets and the following script
the first plot (line 4) is fine (title, color, style and width) are OK,
but the second is not: " line 5: unrecognized plot type"
What is wrong on line 5 ?
Thank you
Your problem is that in line 5 you're trying to use the string not just as a parameter to some keyword, but as the keyword itself. The test case can be simplified to
Thank you Hans-Bernhard Broeker for your explanation.
Indeed
works, but
and
do not work.
So how can I switch between line, point and linesp in a plot for loop the choice between the 3 possibilities being determined by a string (like the colors eg) or possibly a function ?
oh sorry for a misprint : the first not working line is
https://stackoverflow.com/questions/63689746/gnuplot-setting-line-style-in-a-for-loop
propose a solution using linespoints and a smart modification of the parameters.
It works with fine Version 5.0 patchlevel 0 last modified 2015-01-01
but not with Version 5.4 patchlevel 0 last modified 2020-07-13 (points never shown)