Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Octave does not plot

Tags:

plot

octave

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  font "*,6" dashlength 1                   ^      line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list 

I am using Mac OS X 10.9.2. I have tried using

octave:79> setenv("GNUTERM","X11") 

but I still get the same error.

like image 329
user2472071 Avatar asked Apr 06 '14 19:04

user2472071


People also ask

How do you plot in octave?

When plotting in Octave you plot points having their x -values stored in one vector and the y -values in another vector. The two vectors must be the same size. Octave inserts lines between the points. If you want a smoother graph, make a longer x -vector.

Is octave good for plotting?

Octave has some in-built functions for visualizing the data. Few simple plots can give us a better way to understand our data. Whenever we perform a learning algorithm on an Octave environment, we can get a better sense of that algorithm and analyze it.

How do you close an octave plot?

To clear the current axis, call the cla function. To bring the current figure to the top of the window stack, call the shg function. To delete a graphics object, call delete on its index. To close the figure window, call the close function.

How do you plot multiple plots in octave?

Octave can display more than one plot in a single figure. The simplest way to do this is to use the subplot function to divide the plot area into a series of subplot windows that are indexed by an integer. For example, subplot (2, 1, 1) fplot (@sin, [-10, 10]); subplot (2, 1, 2) fplot (@cos, [-10, 10]);


1 Answers

setenv("GNUTERM","qt") in your octave command prompt, it should solve the problem.

like image 75
Cheng Long Avatar answered Sep 22 '22 09:09

Cheng Long