On Sun, 1 Mar 2015, Artur T. wrote:
On 27.02.2015 22:33, Allin Cottrell wrote:
> On Fri, 27 Feb 2015, Artur T. wrote:
>
>> I've got another question regarding gnuplot. At the moment gretl
>> automatically draws a 2nd yaxis (if it is not suppressed by the
>> "--single-yaxis" option) if a certain criteria is fulfilled. However,
is
>> there a way to specify manually a separate variable (or a list of vars) to
>> a 2nd yaxis?
>
> Not within gretl's "gnuplot" command; you'd have to take charge of
that
> yourself.
>
I am just writing the function for this but I've got a problem with the
quotation marks.
This:
printf "set timefmt \"%Y%m\" \n"
results in
<output>
*** error in function plot_ts_y2axis, line 42
> printf "set timefmt \"%Y%m\" \n"
</output>
printf takes '%' as starting a conversion specifier. If you want a
literal '%' in the output, as you do here, you need to double it:
printf "set timefmt \"%%Y%%m\"\n"
Allin