help-octave
[Top][All Lists]
Advanced

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

Re: Is there a convenient way to do parametric plots in octave?


From: Morris Pearl
Subject: Re: Is there a convenient way to do parametric plots in octave?
Date: Mon, 15 Mar 2004 22:45:55 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408

Thank you. (and thanks to the others who responded to my question). The edemo5 code is indeed what I want to do.

Best wishes.



Avraham address@hidden wrote:
Hi,
To amplify on you answer: Take a look at edemo5 (octave-epstk), or at the
attached file. I think it is exactly what M. Pearl was looking for.
Cheers, Avraham

On Sat, 13 Mar 2004, Joe Koski wrote:



------------------------------------------------------------------------

t=-2:.1:2; % put your range, instead
x=real(asin(t)); y=real(acos(t)); % put your functions instead
[X,Y]=meshgrid(x,y);
matrix=X.*exp(-X.^2-Y.^2);

% contour plot
eopen('demo5a.eps',0,180,140);
eglobpar;
ePlotTitleText='Contour Plot';
ePlotTitleDistance=15;
ePlotAreaPos=[20 20];
eXAxisSouthLabelText='x - Axis';
eYAxisWestLabelText='y - Axis';
eImageLegendLabelText='z - Color Legend';
eContourValueVisible=1;
eaxes([-2 0 2],[-2 0 2]);
eimagesc(matrix,ecolors(3),'e');
econtour(matrix,[-0.5 0.05 0.5],0,[1 1 1;0 0 0;0 0 0]);
eclose(1,0);

eview





-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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