[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: How to keep print compatiable with MATLAB

**From**: |
Jianhong Wang |

**Subject**: |
Re: How to keep print compatiable with MATLAB |

**Date**: |
Tue, 11 May 2004 19:00:26 -0700 (PDT) |

Guys
Thanks a lot for all of your answers. I have some
further questions
if exist('OCTAVE_VERSION')
cd /cygdrive/f/project/octave
else
cd f:/project/octave
end;
x=[1:0.01:2*pi];
y = sin(x);
z = cos(x);
plot(x, y, ";sin;", x, z, ";cos;");
print('-dpng','sincos1.png');
replot
close all;
Among a simple code above,
1. Is it possible to write one sentence of code to to
change dir
insteading if using micro define?
2. When using octave-forge to print plot to a png
file, it is extreamely
slow. If using the code below, it is very fast.
However octave-forge is
good to keep MATLAB/Octave compatibility. Is there any
way to make the
printing faster and still not using micro define?
gset terminal windows
plot(x, y, ";sin;", x, z, ";cos;");
gset terminal png
gset output "sincos.png"
3. Is it possible to use legend( ) in Octave to show
multiple legends
like MATLAB?
Thanks!
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861
-------------------------------------------------------------
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
-------------------------------------------------------------

**Re: How to keep print compatiable with MATLAB**,
*Jianhong Wang* **<=**