[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tight yaxis for a given x-range
From: |
OT |
Subject: |
tight yaxis for a given x-range |
Date: |
Fri, 6 Nov 2015 00:19:44 -0800 (PST) |
Hi;
I plot data, everything is fine; then I want to rescale the plot on a small
x-axis (line 2 below).
I would like to restrict the y-axis, tightly to the data in the x-range.
>From previous posts, I guess
this is possible (see link below), but I did not manage to do it.
plot(1:100,cos((1:100)/10)); %%%% just plotting
axis([27,38]); %%%% restricting the x-axis;
it works, but the y-axis is way too large
axis("tight",[27,38]); %%%% trying to make the y-axis
tight; not ok
ylim("auto"); %%%% trying again; not ok
ylim("tight"); %%%% trying again; not ok
Any help appreciated, have a great day :-)
(the following thread is very related but too old for posting:
http://octave.1599824.n4.nabble.com/axis-tight-only-for-specific-axes-td2330430.html
)
===================
octave:10> version
ans = 3.8.1
octave:11> graphics_toolkit
ans = gnuplot
uname -a
3.13.0-62-generic #102-Ubuntu SMP Tue Aug 11 14:29:36 UTC 2015 x86_64
x86_64 x86_64 GNU/Linux
--
View this message in context:
http://octave.1599824.n4.nabble.com/tight-yaxis-for-a-given-x-range-tp4673300.html
Sent from the Octave - General mailing list archive at Nabble.com.
- tight yaxis for a given x-range,
OT <=