[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: subplot
From: |
Neil.Francis |
Subject: |
RE: subplot |
Date: |
Fri, 13 Jan 2006 10:42:17 +0800 |
Hello,
I'm a newbie to Octave, but (FWIW) on my Octave (Mac OS X fink binary
2.1.53, when
I try your code (followed by a "replot" at the end), and substituting
subplot(1,2,1); imagesc(data);
with
subplot (1,2,1); plot(sin(4*x));
the subplotting seems to work fine.
The problem that I experience is that the imagesc doesn't seem to work.
Even without the subplots, if I use
data = rand(100,100);
imagesc(data);
replot;
I'm told "error: replot must have something to plot".
When I look at the source for imagesc.m I see it uses image.m, and
image.m appears
to not use gnuplot, but rather ImageMagick, xv or xloadimage. Perhaps
our machines don't
have any of these installed, and they are needed?
Neil
-----Original Message-----
From: wang Juefu [mailto:address@hidden
Sent: Friday, 13 January 2006 9:31 AM
To: address@hidden
Subject: subplot
Hi there,
Does any one know how to include imagesc in subplot as
Matlab?
In matlab, it is easy to combine image and graphs in
subplots. For example
data=rand(100,100);
x=0:0.1:pi*2;
subplot(1,2,1); imagesc(data);
subplot(1,2,2); plot(sin(x));
This will plot two figures together.
However, the above will not work in Octave.
Juefu
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------------
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
-------------------------------------------------------------
-------------------------------------------------------------
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
-------------------------------------------------------------
- subplot, wang Juefu, 2006/01/12
- RE: subplot,
Neil.Francis <=