help-octave
[Top][All Lists]
Advanced

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

Re: mesh: having one variable in log scale


From: Moo
Subject: Re: mesh: having one variable in log scale
Date: Fri, 12 Nov 2010 10:35:53 -0700

On Fri, Nov 12, 2010 at 3:52 AM, CdeMills <address@hidden> wrote:

Hello,

I'm getting a mesh as:
[XX, YY] = mesh(X_range, log10(Y_range));
mesh(XX, YY, ZZ)

this way, the Y range is in logarithmic scale, but the range 100 -> 1000
appears as 2 ->3. What are the properties to modify over the ydata axis,
setting its scale to log, and how to redraw the plot ?

Thanks in advance

Pascal


Try this:

When creating the mesh, don't log10 your Y_range, and after you create and plot the mesh, try doing:

set(gca,'yscale','log')

reply via email to

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