[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: One more newbie question - getting the plot to show up
From: |
Ben Abbott |
Subject: |
Re: One more newbie question - getting the plot to show up |
Date: |
Tue, 17 Nov 2009 18:18:00 -0500 |
On Nov 17, 2009, at 5:51 PM, Jason Rupert wrote:
> Thank you very much. I guess I was overlooking Octave's transition to
> packages.
>
> The following worked:
> octave-3.2.3:13> pkg install control-1.0.11.tar.gz
>
>
> I have one other newbie question - the following is not producing a plot that
> I can see:
>
> octave-3.2.3:30> L = tf(3e4 * [0.0025 0.1 1], [0.01 1.03 3.03 3.01 1]);
> octave-3.2.3:31>
> octave-3.2.3:31> bode(L)
> octave-3.2.3:32>
> octave-3.2.3:32> print('figure.ps', '-deps')
>
> The print successfully produces figure.ps that I can open, but evidently I've
> over looked another step in order to produce plots.
>
> I also tried the following:
> octave-3.2.3:27> x = -1:0.1:1;
> octave-3.2.3:28> plot (x, x.^2)
>
> Still the plot did not appear.
>
> I'm on a Mac and I did install GNU Plot:
> G N U P L O T
> Version 4.2 patchlevel 6
> last modified Sep 2009
> System: Darwin 9.8.0
>
> Thanks for any additional feedback, as I suppose I am overlooking something.
>
> Jason
You're on Mac OSX correct?
If you'd likt to use X11 to produce your plots, you need to set the environment
variable GNUTERM=x11. This can be done in your shell's startup script, or you
can do it in Octave by ...
setenv ("GNUTERM", "x11")
Alternatively, if you want to use Aquaterm to render you plots (which is the
default for Mac OSX) you'll need to install it.
Ben