[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to use x2axis on GNU Octave
From: |
Tatsuro MATSUOKA |
Subject: |
Re: How to use x2axis on GNU Octave |
Date: |
Thu, 14 Mar 2019 19:21:15 +0900 (JST) |
--- mtmiller
> On Wed, Mar 13, 2019 at 22:24:41 +0900, Tatsuro MATSUOKA wrote:
> > On gnuplot, one can make a plot which has two different ranges (upper and
> > lower) by
> > x2range ...
> >
> > How can I do on octave?
>
> You can create a second axes object and set its limits however you want.
> For example
>
> x = 0:99;
> y = rand (1, 100);
> hax = [axes, axes];
> plot (hax(2), x, y);
> set (hax(1), "xaxislocation", "top", "xlim", [0, 5]);
>
> --
> mike
Thanks!
Tatsuro