[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tot_title and plot data file in blocks
From: |
Mr. Stone |
Subject: |
tot_title and plot data file in blocks |
Date: |
Fri, 11 Aug 2006 13:02:00 +0000 |
Hi Dmitri,
Sure I will replot it... in fact I write the them in m-script. like:
#---------------------
tot_title("Top title for 2 diagrams");
x=0:0.1:10;
title("Title #1");
subplot(2,1,1);
plot (x,sin(x)),
#
title("Title #2");
subplot(2,1,2);
plot(x, cos(x));
#-----------------------
It seems a old thread:
http://www.octave.org/octave-lists/archive/bug-octave.1999/msg00104.html
But no solution found..
Of my second question:
But I have a data file with dozens of blocks seperated by a blank line, e.g.
mydata.dat:
#-----------Data Block#1
1 1
2 2
3 3
#-------End of Block#1
#-----Data Block#2
4 4
5 5
6 6
7 7
#-------End of Block#2
...
If I do a=load "mydata.dat" in octave, I will get [a] only in 2 columns
like:
1 1
2 2
3 3
4 4
5 5
6 6
7 7
plot(a(:,1), a(:,2)) will plot the the whole 2 columns, not by blocks. How
is that possible to plot within blocks and seperated by each blank line?
regards.
Stein
> But top_title("Test top title") still can not show, I also try to
download
> the latest version octave octave-2.1.71-2.i586.rpm, but I have to
upgrade my
> whole system for relevant LIBs.
You may need to do a manual "replot" after you did "top_title" like that:
top_title("my title")
replot
> But if I use octave:
>
> a= load "mydata.dat";
>
> I get only 2 columns of data, not in data blocks or in a matrix.
>
> How could I make it? Can I find some examples anywhere?
Two column of data is 2xn matrix. You can do e.g.
plot(a(:,1), a(:,2))
to plot the 2nd column against the first. You may want to check octave
manual dealing with matrix manipulations.
>
> Stein
>
Regards,
Dmitri.
_________________________________________________________________
Die neue MSN Suche Toolbar mit Windows-Desktopsuche. Suchen Sie gleichzeitig
im Web, Ihren E-Mails und auf Ihrem PC! - http://desktop.msn.de/ Kostenlos
downloaden!