help-octave
[Top][All Lists]
Advanced

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

Re: plottting an indeterminate amount of data traces with different axes


From: Juan Pablo Carbajal
Subject: Re: plottting an indeterminate amount of data traces with different axes
Date: Sat, 20 Oct 2012 01:21:40 +0200

On Sat, Oct 20, 2012 at 12:47 AM, injoi <address@hidden> wrote:
> I am trying to plot around 10 different data traces. There may not always be
> the same amount of data traces there may be more or less. The trouble I am
> running into is that there is ONE data trace that is on a completely
> different order of magnitude than the others. I want to plot it with two
> different y axes.
>
> so far I have gotten:
> print = [ 0 1 0 1 0 1 0 0 1 1 1 1 1 0 0];
> bigone = [0 0 0 0 0 0 0 0 1 0 0 0 0 0 0];
>
> for i = 1: 15
>
>  if print(i) = 1
>
>  plot(time(start:end),data.(header{i})(start:end))
>
>  elseif bigone = 1
>
>  plotyy(time(start:end),data.(header{i})(start:end))
>
> end
>
> I have tried multiple variations on this because plotyy requires two inputs
> but every time I try I have been receiving error messages or graphs that
> look completely insane.
>
> p.s. data trace "bigone" is about an order of magnitude different than the
> others.
>
> thanks
>
>
>
> -----
> Windows 7, intel Xeon(R) 3.3GHz
>
> Thanks, Nohtal
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/plottting-an-indeterminate-amount-of-data-traces-with-different-axes-tp4645519.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave

I do not completely get it, but isn't

plotyy(x-data-for-print, print, x-data-for-bigone, bigone)

doing the trick?


reply via email to

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