help-octave
[Top][All Lists]
Advanced

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

Re: two plots, same window, different ranges/axes?


From: Ron Crummett
Subject: Re: two plots, same window, different ranges/axes?
Date: Sat, 29 Apr 2006 20:00:04 -0700
User-agent: Thunderbird 1.5.0.2 (X11/20060420)

Robert A. Macy wrote:
Make the two ranges the same?

ordinate1=firstordinate/max(firstordinate);
ordinate2=secondordinate/max(secondordinate);
  
That would work, but the particular plot I am looking to do is the magnitude and phase of an FIR filter.  The phase angle ranges from -pi to pi and the magnitude ranges from 0 to 6.  I'd like to plot them in the same window but have two y-axes, one on the left (as usual) denoting the magnitude and thus ranging from 0 to 6, and one on the right denoting the phase and thus ranging from -pi to pi.

>From what I have seen, Matlab can do it.  Gnuplot can do it too.  Octave...?

-Ron
that type of thing

On Sat, 29 Apr 2006 15:48:09 -0700
 Ron Crummett <address@hidden> wrote:
  
Hi -

I am interested in plotting two sets of data in one plot,
but the two 
data vectors have different ranges.  I have seen how this
can 
(apparently) be done in Matlab using the plotyy command,
which Octave 
doesn't seem to have (I am using 2.1.71).  I have also
seen that it can 
be done in gnuplot.  It stands to reason that it could be
done in 
Octave, but if so, how?

-Ron
    


  


reply via email to

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