help-octave
[Top][All Lists]
Advanced

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

Re: Using automatic form of...gset xrange [-10:10]


From: Henry F. Mollet
Subject: Re: Using automatic form of...gset xrange [-10:10]
Date: Tue, 28 Dec 2004 11:49:36 -0800
User-agent: Microsoft-Entourage/10.1.1.2418

Others had probably better advise. Below automatically determines axis
x-range and y-range. Subplot (1,1) in attached pdf is relevant.
Henry

[w,la]=eig(A);
la=diag(la);
imax=find (la==max(real(la)));

% Graphs
gset term aqua 10
gset multiplot
gset size 0.5,0.5
gset origin 0.1,0.5
gset nokey
grid ('on')     % need () in Octave!?
axis "square"
% trying rounding up to next 0.1
temp=0.1* ceil (10*la(imax));
axis ([-temp temp -temp temp]);
title ("Eigenvalues in complex plane")
plot (la, "*")












on 12/27/04 9:33 PM, Robert A. .Macy at address@hidden wrote:

> I need to automatically set the xrange and yrange for a
> series of plots.
> 
> For example, if I use...
> 
> gset xrange [-1:1];
> gset yrange [0:2];
> plot(variable(:,1);hold on;
> for i=1:10
> plot(variable(:,i);
> endfor
> hold off;
> 
> I get EXACTLY what a want ...animation.
> 
> However, I can't seem to make this automatic.
> 
> If I set,
> 
> var1=max(variable);var2=min(variable);
> 
> then use...
> 
> gset yrange [var2:var1];
> 
> the plot doesn't accept the values.
> 
> I get an error message from gnuplot...
> gnuplot> set yrange [var2:var1]
>        undefined variable: var2
> 
> I've been setting the ranges manually for days now.  There
> must be a better way.
> 
> 
> How do I automatically set the ranges based upon the
> minimum and maximum values I'll encounter?
> 
>            - Robert -
> 
> PS  running octave-2.1.50a-inst.exe on Windows 98
> 
> 
> 
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
> 
> Octave's home on the web:  http://www.octave.org
> How to fund new projects:  http://www.octave.org/funding.html
> Subscription information:  http://www.octave.org/archive.html
> -------------------------------------------------------------
> 

Attachment: Fig10AisDemo.pdf
Description: Binary data


reply via email to

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