rvh2007 at comcast.net
Fri Jun 20 12:30:03 CDT 2008
I tried to do this a while back and came up with
draw2d(color=mycolor1, points(mypoints1), color=mycolor2, points(mypoints2),color=mycolor3, points(mypoints3), ...
where mypoints is just a list of a few points.
but that is a really bad solution. There should be a better way.
From: Björn Fay <mail at bfay.de>
To: maxima at math.utexas.edu
Date: Fri, Jun-20-2008 5:20 AM
Subject: Re: [Maxima] Plot4d
Mario Rodriguez schrieb:
> Björn Fay escribió:
>> I have a question or feature request (depends on the answer to the
>> question). Is it possible to make something like
>> true] ...)
>> where the 4th component (here sin(x)) is the color?
>> As far as I understand the gnuplot-manual it should be possible. If
>> gnuplot can do it, but maxima is not able to use this feature (yet),
>> it would be nice to implement it, which should not be so difficult as
>> far as I understand things.
>> Thanks and kind regards
> See documentation and examples in
> ? enhanced3d
> ? palette
> Maxima graphics option palette is an interface to gnuplot's
> set palette rgbformulae a,b,c
> Numbers a, b and c are labels for certain functions used by gnuplot to
> transform real numbers (the z-values) into an r-g-b color. If you look
> at the 3d-graphics gallery in gnuplot's web site, you'll see that all
> points at the same height (z-level) have the same color. So, color
> depends on the third dimension, not on the fourth. In any case, if I'm
> wrong and you find a gnuplot script for plotting a pm3d-colored surface,
> where color doesn't depend on z, please send it to me and we could
> investigate how to make it with maxima.
> On the other hand, if instead of a surface you want a parametric curve
> with its color depending on the 4th dimension, I think this could be
> drawn with the existing tools, plotting small segments with the
> necessary colors.
> Gnuplot has its limitations, and I suspect you've found a new one.
There's a script and picture at
By the way I have also looked at the draw-package with can't do it either.
Maxima mailing list
Maxima at math.utexas.edu
More information about the Maxima