help-octave
[Top][All Lists]
Advanced

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

Plotting problem with 2.9.x, but not 2.1.7x (was: Problem with mesh comm


From: Matthias Brennwald
Subject: Plotting problem with 2.9.x, but not 2.1.7x (was: Problem with mesh command)
Date: Mon, 13 Nov 2006 22:35:33 +0100

Dear all,

I just went back from Octave 2.9.9 (from HPC) to Octave 2.1.72 (from Fink), and the below issue with 3D-plotting vanished. Who knows what changed with the (3D) plotting routines from 2.1.7x to 2.9.x?

Cheers,
Matthias


On 08.11.2006, at 07:11, I wrote:

Message: 6
Date: Tue, 7 Nov 2006 22:15:31 +0100
From: Matthias Brennwald <address@hidden>
Subject: Problem with mesh command
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed

Dear all,

I have a few problems with the 'mesh' command in Octave 2.9.9 (binary
form HPC) running on Mac OS X (I use gnuplot 4.0 with Apple's X11 for
plotting). Consider the following code:

*****************************

x = [1:10];
y = [1:20];

[X,Y] = meshgrid(x,y); Z = - X;
subplot(3,1,1)
mesh(Z)
__gnuplot_raw__ ("set logscale x;\n");
replot

subplot(3,1,2)
mesh(x,y,Z)
__gnuplot_raw__ ("set logscale x;\n");
replot

subplot(3,1,3)
mesh(X,Y,Z)
__gnuplot_raw__ ("set logscale x;\n");
replot

*****************************

I'd expect three identical plots from this, with the x axis scaled
logarithmically. However, the x axis is NOT scaled logarithmically.
Even worse, plot 1 looks like what I'd expect (Z values range from -1
to -10), whereas the plots 2 and 3 are completely wrong (Z values
range from 0 to 20 or so, and there's an oscilation in the y
direction). Also, plots 2 and 3 look similar to each other. Still
worse is that if I run the code a second time, plot 2 now looks
similar to plot 1 (Z ranging from -1 to -10), but plot 3 still shows
Z values from 0 to 20 with the oscillation in the y direction.

What's going on here?

Cheers,
Matthias




-------
Matthias Brennwald
Lägernstrasse 6
CH 8037 Zürich
+41 (0)44 364 17 03
address@hidden





reply via email to

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