|
From: <pl...@pi...> - 2012-02-22 07:33:09
|
Hi,
I just defined a few macros to shorten some lengthy plot commands, eg.
in_lt_blue=' linecol rgb "light-blue" '
It worked fine when I loaded the complete file using load command. No
errors and I got the right results.
Then I tested something else directly at the command prompt:
gnuplot> in_red=' linecol rgb "red" '
gnuplot> @in_red
^
invalid character @
I realised that this was in fact correct since I had not ' set macros'
But in that case why did it work when I loaded this and similar lines
with load ?
It seems that there is an inconsistency here. The load command should
equally have to parse the macros since there was no set macro command in
the script.
So there is an apparent bug: load command somehow circumvents the check
on the state of set macros and expands them anyway.
regards, Peter.
|