When I try to plot a graph on GNU Octave, and try to use plot, it gives me the following output
set terminal aqua enhanced title \"Figure 1\" size 560 420
setenv("GNUTERM","qt") in your octave command prompt, it should solve the problem.
setenv("GNUTERM","qt")