问题
I'm trying to get Plot working for Octave Windows 7 (64 bit). Things I have tried:
- Tried changing the graphics_toolkit to gnuplot or fltk. See Plot window not responding
- I have tried uninstalling and re-installing Octave.
- I have tried to install the latest version of gnuplot in the Octave Directory.
- pkg rebuild -noauto oct2mat (didn't help before or after octave restart)
The cursor moves to the next line (without ">>", as if waiting for the command to run), but the figure window doesn't show at all, I have to press Ctr-C several times to force Octave to quit.
Code:
x = linspace(0,1,10)
y = x.^2
plot(x,y);
Please suggest if I can try something else.
Octave version : 4.0.0, running on a laptop, Windows 7 64-bit Professional.
回答1:
I rewrite the comment as answer. A long delay when plotting for the first time in GNU Octave on Windoze is a known problem: http://savannah.gnu.org/bugs/?45458
The reason for this is that the fontconfig cache has to be build once. After that plotting should be fast as usual.
来源:https://stackoverflow.com/questions/37387277/plot-doesnt-work-in-octave-4-0-0-windows-7-64-bit