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