help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multiple 3D plots in the same figure


From: Spela Ivekovic
Subject: multiple 3D plots in the same figure
Date: Thu, 14 Sep 2006 00:37:11 -0700 (PDT)

Hi,

I'm using Octave 2.9.8 on Linux Fedora Core 3 with Gnuplot 4.0.

I would like to plot two different sets of 3D data onto the same figure and visualise them together (rotate etc.) to analyse the data but the second plot always overwrites the first one instead of joining both in the same figure.

I've tried to do the following (just a dummy example for illustration purposes):
t = 0:pi/50:10*pi;
x1 = sin(t); y1 = cos(t); z1 = t;
x2 = cos(t); y2 = sin(t); z2 = t;
figure;
plot3(x, y, z,'r-');
hold on;
plot3(x1,y1,z1,'b-');
hold off;

The hold on/off does not seem to work with plot3. It works fine when using the 2D equivalent "plot()".

Does anybody know how I could fix this?

Thank you!

Spela


Get your email and more, right on the new Yahoo.com
reply via email to

[Prev in Thread] Current Thread [Next in Thread]