4

My program has gnuplot script and its first line is

set data s l

But this makes error

"cdia.GNUBAND", line 1: unrecognized option - see 'help set'.

I think it's the version problem and I have to change the "set data s l" command in right way. I searched on web but couldn't find it.. How do I solve this?

1 Answer 1

9

That is the shortcut for set data style lines, which is deprecated since version 4.0 (released in 2004). To replace this line, use

set style data lines

This sets the default plotting style for data set to lines, i.e. the commands

set style data lines
plot 'data.dat'

and

plot 'data.dat' with lines

are equivalent.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.