Plotting in a session doesn't always work.
If I put these lines in a session
octave> x = [-pi:0.1:pi];
octave> hold on;
octave> plot(x,sin(x));
octave> plot(x,cos(x))
and repeatedly execute the last two commands, after two times the plot doesn't show up anymore. It seems the method to set TM_OCTAVE_PLOT_DIGEST is not robust.
It seems like if we simply do
if disp_ans
tmplot (); ## call TeXmacs plotting interface
clf()
endif
in tmrepl.m that plots show as expected, since tmplot() already checks whether the plot is empty or not.
Plotting in a session doesn't always work.
If I put these lines in a session
and repeatedly execute the last two commands, after two times the plot doesn't show up anymore. It seems the method to set
TM_OCTAVE_PLOT_DIGESTis not robust.It seems like if we simply do
in
tmrepl.mthat plots show as expected, sincetmplot()already checks whether the plot is empty or not.