|
From: David B. <Dav...@mo...> - 2006-04-10 09:56:01
|
Patrich Rammelt wrote:
>Hi
>
>My problem is this:
>Plot3 does not work as expected. The example from the help text (help
>plot3) does not create a single line. Instead plot(x,y,z) creates 3+N
>lines (where x, y and z are vectors with N elements each).
>
>More detailed description of what I see:
>One dimension on the plot is the sample-index (1..N), on the second
>dimension there is one value (1,2,3) for x,y and z and the third
>dimension shows the values of x,y and z itself.
>There is one line connecting the values of x and one for y and one for
>z. Additionally there are N lines connecting x(i) with y(i) and z(i)
>for all i=1:N.
>
>I tried to reinstall octave-forge and gnuplot but that did not make
>any difference.
>OS: Windows XP,
>Octave 2.1.72,
>gnuplot 4.0 patchlevel 0 (Cygwin).
>
>
With octave 2.9.5 I believe the code
for i=1:columns(x)
tmp = [x(:,i), y(:,i), z(:,i)];
cmd = ["__gnuplot_splot__ tmp ", fmt, ";\n"];
eval (cmd);
endfor
in __plt3__.m can be modified to
sz = size(x,2);
tmp = [([x; NaN*ones(1,sz)])(:), ([y; NaN*ones(1,sz)])(:), ([z;
NaN*ones(1,sz)])(:)];
__gnuplot_splot__(tmp);
and this will probably help the issue. Though it doesn't do you much
good for 2.1.72..
Regards
David
>Under Linux everything is just fine.
>
>Any ideas?
>Thanks,
>Pat
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>that extends applications into web and mobile media. Attend the live webcast
>and join the prime developer group breaking into this new coding territory!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>_______________________________________________
>Octave-dev mailing list
>Oct...@li...
>https://lists.sourceforge.net/lists/listinfo/octave-dev
>
>
>
--
David Bateman Dav...@mo...
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
|