Plots under Mac OS X
Ben Abbott
bpabbott at mac.com
Fri Mar 27 12:28:11 CDT 2009
On Friday, March 27, 2009, at 01:16PM, "William Miner" <william.miner at enig.com> wrote:
>I have installed octave on a MacBook pro running leopard.
>
>I executed export GNUTERM=aqua
>
>I ran
>
>t = time(); x = [1:100000]; y = cos(x); plot(x, y); time() - t
>
>Then the aquaterm window opened with what appeared to be the correct axes
>but no curve. What did I do wrong?
>
>Thanks!
>
>Buff Miner
>
Did you get a solid blue box?
The curve is there. Its just that it covers each pixel (you have 159,000 sinusiods in a space that is less than 1000 pixels wide).
Try the example below instead.
t = time(); x = linspace (0,5,10000); y = cos(2*pi*x); plot(x, y); time() - t
Ben
More information about the Help-octave
mailing list