List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] How to control colors in plot3d (option shading)
| [MUG] How to control colors in plot3d (option shading) |
|
Author: Erik Leunissen
Posted: Sun, 09 Feb 2003 20:46:47 +0100
|
>> From: Erik Leunissen "e.leunissen"
L.S.
I've constructed a 3D plot, using the following two commands:
> groptions :=shading=z, axes=boxed, style=patchnogrid,
orientation=[-90,0], labels=[`X `,`Y `,`C `],numpoints=1000 :
> plot3d(C(x,y,20),x=-10..10, y=-10..10,groptions);
Is it possible to control/modify the colors of such a plot, while
maintaining the effect of the option `shading=z' ?
Thanks for any help,
Erik Leunissen
==============
|
| [MUG] Re: How to control colors in plot3d (option shading) |
|
Author: Robert Israel
Posted: Thu, 13 Feb 2003 11:15:58 -0800
|
>> From: Robert Israel "israel"
Try replacing shading=z with something like this:
colour = [C(x,y,20), 0, 1-C(x,y,20)]
In general, the colour value can be a list of three expressions,
representing the RGB (red-green-blue) components. If the components
are not in the range 0..1, they will be transformed into that range.
Robert Israel "israel"
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2
On Sun, 9 Feb 2003, Erik Leunissen wrote:
> L.S.
>
> I've constructed a 3D plot, using the following two commands:
>
> > groptions :=shading=z, axes=boxed, style=patchnogrid,
> orientation=[-90,0], labels=[`X `,`Y `,`C `],numpoints=1000 :
> > plot3d(C(x,y,20),x=-10..10, y=-10..10,groptions);
>
> Is it possible to control/modify the colors of such a plot, while
> maintaining the effect of the option `shading=z' ?
>
> Thanks for any help,
>
> Erik Leunissen
> ==============
>
|
Previous by date: [MUG] How to set foreground/background colors?, James Frye
Next by date: [MUG] maple printing question, Clearthink
Previous thread: [MUG] Pb with minimize, Franck Wielonsky
Next thread: [MUG] maple printing question, Clearthink
|