help-octave
[Top][All Lists]
Advanced

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

Re: How to use x2axis on GNU Octave


From: Mike Miller
Subject: Re: How to use x2axis on GNU Octave
Date: Thu, 14 Mar 2019 01:19:26 -0700
User-agent: Mutt/1.10.1 (2018-07-13)

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

Attachment: signature.asc
Description: PGP signature


reply via email to

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