Ask Your Question
1

Controling the color of a parametric surface.

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

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

Comments

I guess I'm looking for something that looks like the following picture: http://mailinglists.scilab.org/Plotting-functions-of-spherical-coordinates-on-a-sphere-td4025441.html

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

If you haven't seen it yet, you could take a look at the answer here: http://ask.sagemath.org/question/1405/how-to-color-a-3d-plot-by-z-level (works for 3d graphs).

niles gravatar imageniles ( 2014-04-30 14:49:17 +0100 )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 +0100 )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 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
3

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

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):

http://trac.sagemath.org/ticket/12212

It seems that the feature still requires some work.

edit flag offensive delete link more

Comments

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 +0100 )edit
1

Update: This is about to be merged!

kcrisman gravatar imagekcrisman ( 2015-01-22 16:26:26 +0100 )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

Stats

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

Seen: 721 times

Last updated: Apr 30 '14