help-octave
[Top][All Lists]
Advanced

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

Re: Setting x-axis only in 'plot()'


From: Andy Buckle
Subject: Re: Setting x-axis only in 'plot()'
Date: Fri, 9 Jul 2010 12:21:52 +0100

On Fri, Jul 9, 2010 at 12:09 PM, dirac <address@hidden> wrote:
>
> Hi all,
>
> As part of a function I am trying to plot a graph in Octave but want to set
> the x-axis to 1460-1640nm but have the y-axis automated still as the data
> varies a bit. Is there a way to do this?
>
> Any suggestions will be greatly recieved :)
>
> Thanks
> Martin
>
> -----
> Converting myself from Excel to Octave for reasons I hope to find out.
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/Setting-x-axis-only-in-plot-tp2283198p2283198.html
> Sent from the Octave - General mailing list archive at Nabble.com.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>

plot first. then

set(gca,'xlim',[1460 1650])

note that gca is get current axes. this will give you other info on
how to tweak plots

get(gca)

-- 
/* andy buckle */


reply via email to

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