Ask Your Question
1

Mesh not appearing on 3d plot

asked 2012-03-28 04:29:26 -0600

calc314 gravatar image

I'm trying to get a mesh to appear on a surface in Sage 4.8 using parametric_plot3d. Here is the code:

var('u,v')
f=[u-u^3/3+u*v^2,-v+v^3/3-v*u^2,u^2-v^2]
parametric_plot3d(f,(u,-7,7),(v,-7,7),opacity=0.7,mesh=True)

What am I doing wrong? I also can't get any of the examples from the tutorial page to show a mesh.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2012-03-28 06:47:20 -0600

niles gravatar image

updated 2012-03-28 06:49:04 -0600

This is a known bug; see Trac ticket 9708. As mentioned there, the problem is that the keyword "mesh" isn't getting passed on to show. Until it gets fixed, you can use the show method explicitly:

var('u,v')
f=[u-u^3/3+u*v^2,-v+v^3/3-v*u^2,u^2-v^2]
parametric_plot3d(f,(u,-7,7),(v,-7,7),opacity=0.7).show(mesh=True)
edit flag offensive delete link more

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: 2012-03-28 04:29:26 -0600

Seen: 347 times

Last updated: Mar 28 '12