[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multi Column Data file to plot, gradient plot, or gradient of gradie
From: |
Henry F. Mollet |
Subject: |
Re: Multi Column Data file to plot, gradient plot, or gradient of gradient plot |
Date: |
Sat, 27 Mar 2004 13:32:35 -0800 |
User-agent: |
Microsoft-Entourage/10.1.1.2418 |
See attached pdf for clarification. The multi-colored lines correspond to
plot (log(xtempAbar),E_asTheory) in part of script below
and from the workspace:
rwd matrix 46 1 xtempAbar % x-axis values
rwd matrix 46 35 E_asTheory % y-axis values
Next I would have to calculate a gradient (=derivative?) and then the second
derivative, call the matrices E_asTheory_1stDer and E_asTheory2ndDer and
then I would use:
plot (log(xtempAbar), E_asTheory_1stDer) and
plot (log(xtempAbar), E_asTheory2ndDer).
Both to be used in a new window, I guess.
Is this what you had in mind?
Henry
grid on
gset term aqua 106
axis ([0,log(ceil (max (Results(:,3)))),0,1], "square");
ylabel ("E (adult survival)")
xlabel ("Natural log of Abar")
mytitle = sprintf("Elasticity of adult survival vs. ln(Abar). \nResults are
exactly as per theory. \n Using data from %s \n HFM %s", NameOfDataFile,
date());
title (mytitle)
plot (log(Results(:,3)),Results(:,7),"x")
hold on
plot (log(xtempAbar),E_asTheory)
hold off
axis;
on 3/26/04 10:39 AM, Timothy Milstead at address@hidden wrote:
> I have a data file with x values in one column and corresponding y values in
> the other columns of which there are one or more.
> One set of values per line.
> Values separated by comma (this can be changed if need be)
> I am completely and utterly new to octave.
> I usually learn a new package by example, I'm not very good at RTFM'ing.
> I would like to xy plot each column as a separate (coloured?) line and then
> xy plot the gradient of the data as lines and then finally the gradient of
> the gradient as xy plot.
> How on earth do I do this?
> Do I need to use octave or will gnuplot do it on its own (if so how?)
> Please be verbose and feel free to patronise (as long as it's useful to the
> goal!)
>
> Tim.
>
>
>
>
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------
Figure 106.pdf
Description: Binary data