Ask Your Question

Controling the color of a parametric surface.

asked 2014-04-29 22:48:30 +0200

Raul gravatar image

I would like to represent a complex valued function on a parametric surface. I know that the complex_plot function can represent a complex function using colors. Is there a way of using it to color parametric surfaces? In other words, can I define the colors of the points of a parametric surface in terms of the two parameters in a natural and easy way?

edit retag flag offensive close merge delete


I guess I'm looking for something that looks like the following picture:

Raul gravatar imageRaul ( 2014-04-29 22:59:43 +0200 )edit

If you haven't seen it yet, you could take a look at the answer here: (works for 3d graphs).

niles gravatar imageniles ( 2014-04-30 14:49:17 +0200 )edit

@niles: I have seen that link before, but thanks for sharing it anyway. What I want is a little more complex than that I think. I want the colors to represent the values of a complex-valued function defined on a parametric surface. I don't really know how to adapt the answer given in that thread to achieve what I want. Maybe you have some ideas?

Raul gravatar imageRaul ( 2014-05-01 22:19:57 +0200 )edit

@Raul: Yeah, the answer there didn't work for me either, and I haven't (yet) gotten back to it. This is definitely possible in some sense, but a simple interface to it is not currently available. I don't have anything beyond the sage worksheet linked to from ticket #12212

niles gravatar imageniles ( 2014-05-02 10:50:19 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-04-30 12:52:10 +0200

Antlab gravatar image

Hi. If I understand correctly, your question is related to this section of the Sage Trac (colormaps on implicit and parametric plots):

It seems that the feature still requires some work.

edit flag offensive delete link more


I see, thank you for the link. I guess I should have to look for some workaround in the meantime.

Raul gravatar imageRaul ( 2014-05-01 22:17:27 +0200 )edit

Update: This is about to be merged!

kcrisman gravatar imagekcrisman ( 2015-01-22 16:26:26 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-04-29 22:48:30 +0200

Seen: 682 times

Last updated: Apr 30 '14