[Maxima] plot3d : limit z axis?

Robert Dodier robert.dodier at gmail.com
Fri Dec 19 09:57:54 CST 2008

On 12/18/08, Seb Besnier <sebsheep at yahoo.fr> wrote:

> I would like to plot f(x,y)=1/(x²+y²) with maxima, but I have a problem. At
> (0,0), I have a giant peak to ~2e30 which erases all the details in the
> other part of the graph.

Hmm, looks like Maxima doesn't recognize a range for the vertical axis.
I think the following works:

plot3d (1/(x^2 + y^2), [x, -1, 1], [y, -1, 1], [gnuplot_preamble, "set
zrange [0:100]"]);

But Maxima should recognize [z, 0, 100] just like for x and y
and pass an appropriate parameter to the plotting program (Gnuplot
or whatever). I guess that is just an oversight. I'll put it on my to-do
list although I won't be disappointed if someone else does it first.

> Sorry for this prehistorical English, but like all the other French people,
> I don't know well foreign languages ...

No problem, thanks for making the effort. Hope this helps.

Robert "can't speak French" Dodier

More information about the Maxima mailing list