dbateman wrote:
the workaround for you is
x=732000:732010;
plot(x,x);
drawnow();
dateaxis("x"); % I get the same result with and without "x".
ticks=get(gca(), "xtick") % this is a diagnostic, returning [](0x0)
Thank you for the response and explanation. However, when I call get(gca(),"xtick") after drawnow I still get []. And I still get the same error when calling dateaxis:
octave:15> x=732000:732010;
octave:16> plot(x,x);
octave:17> drawnow();
octave:18> dateaxis("x");
error: invalid matrix index = 1
error: evaluating binary operator `-' near line 94, column 17
error: evaluating binary operator `+' near line 94, column 28
error: evaluating assignment expression near line 94, column 9
error: called from `dateaxis' in file `/usr/share/octave/packages/financial-0.3.0/dateaxis.