help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newplot function udefined error


From: Mike Miller
Subject: Re: newplot function udefined error
Date: Thu, 16 Jan 2014 22:19:35 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Jan 16, 2014 at 14:21:16 -0800, mina wrote:
> I installed octave 3.6.4 to get newplot() so that I can run gplotmatrix() but
> I get the following error
> 
> octave:23> newplot   % opens the plot ok
> octave:24> BigAx = newplot;  % still opens the plot but interrupts the
> problem
> error: value on right hand side of assignment is undefined
> 
> However I can see:
> octave:21> help newplot
> 'newplot' is a function from the file
> /usr/share/octave/3.6.4/m/plot/newplot.m
> octave:24> which plot
> 'plot' is a function from the file /usr/share/octave/3.6.4/m/plot/plot.m
> 
> and when I do: path
> I also find it there: /usr/share/octave/3.6.4/m/plot
> 
> Can you please help me? 

In version 3.6.4 apparently newplot does not return a handle but it does
in 3.8.0. If you can upgrade to 3.8.0 at this time, you will get that
along with other improvements.

If you want to stay with 3.6.4, you can use the gca function to get a
handle to the axes that newplot just created:

  newplot;
  BigAx = gca;

-- 
mike


reply via email to

[Prev in Thread] Current Thread [Next in Thread]