Error in set format command
Closed this issue · 2 comments
yusami commented
Tanaka-san,
I have a question regarding the usage of set command. What is the proper way to use "set format"? I got the error in the code below with the debug mode enabled.
Numo.gnuplot do
...
set format: {x: "%Y-%m-%d"}
...
end
>gnuplot> set
> ^
> line 0: unrecognized option - see 'help set'.
It seems to be OK with the code below.
...
set datafile: {separator: "','"}
set xtics: "rotate by -45"
...
I found the keyword "format_x" in the library. It is, however, not the valid command for gnuplot so I got another error like this.
>gnuplot> set format_x "%Y-%m-%d"
> ^
> line 0: unrecognized option - see 'help set'.
I'd appreciate it if you have any advice.
Thanks.
masa16 commented
Secure way is
set 'format x "%Y-%m-%d"'
Recent commit (9b8f0d7) allows two patterns you suggested:
set format_x: "%Y-%m-%d"
set format: {x: "%Y-%m-%d"}
yusami commented
Thank you for the quick fix. It works fine for me.