Ask Your Question
1

Mesh not appearing on 3d plot

asked 2012-03-28 11:29:26 +0100

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 13:47:20 +0100

niles gravatar image

updated 2012-03-28 13:49:04 +0100

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 11:29:26 +0100

Seen: 667 times

Last updated: Mar 28 '12