Discussion:
plot with octave on cygwin
(too old to reply)
Thomas Plehn
2007-03-23 15:56:49 UTC
Permalink
Hello,

I recently wrote a little program for simulating markov chains which
generates some data in a one dimensional array as its output.
Now, I want to plot this data (y-values) against their indexes
(x-values). I read the documentation and thought that the command
"plot(x);" (where x is the row vector) would do what I wanted.
The result was, that octave did not produce an error, but now plot
window popped up as I had expected from my experience with matlab.

Question: what is going wrong here?
Thomas Plehn
2007-03-23 18:20:09 UTC
Permalink
Post by Thomas Plehn
Hello,
I recently wrote a little program for simulating markov chains which
generates some data in a one dimensional array as its output.
Now, I want to plot this data (y-values) against their indexes
(x-values). I read the documentation and thought that the command
"plot(x);" (where x is the row vector) would do what I wanted.
The result was, that octave did not produce an error, but now plot
window popped up as I had expected from my experience with matlab.
Question: what is going wrong here?
There is something wrong with the gnuplot terminal type. I think, the
default is X11 but that doesn't seem to work under cygwin installed on
windows vista. I have tried to set the terminal type to "windows" but
that seems to be unsupported.
My workaround was to set the terminal to "postscript eps" and to write
that to a file via the "set output" directive.
I can view the output with gostview and it is correct. That is not too
bad since I need the eps output for a scientific paper but it would be
nicer to view the plot directly in a plot window for some experimental
work.
david bateman
2007-03-25 19:00:27 UTC
Permalink
Post by Thomas Plehn
Post by Thomas Plehn
Hello,
I recently wrote a little program for simulating markov chains which
generates some data in a one dimensional array as its output.
Now, I want to plot this data (y-values) against their indexes
(x-values). I read the documentation and thought that the command
"plot(x);" (where x is the row vector) would do what I wanted.
The result was, that octave did not produce an error, but now plot
window popped up as I had expected from my experience with matlab.
Question: what is going wrong here?
There is something wrong with the gnuplot terminal type. I think, the
default is X11 but that doesn't seem to work under cygwin installed on
windows vista. I have tried to set the terminal type to "windows" but
that seems to be unsupported.
My workaround was to set the terminal to "postscript eps" and to write
that to a file via the "set output" directive.
I can view the output with gostview and it is correct. That is not too
bad since I need the eps output for a scientific paper but it would be
nicer to view the plot directly in a plot window for some experimental
work.
Try visiting www.gnuplot.info download and install the non-X11 version
of gnuplot for windows, set the gnuplot_binary variable in octave to
point to the right version of gnuplot (once you get it right put this
in the .octaverc file) and then the windows terminal will be supported
and be the default..

D.

Loading...