Ask Your Question
1

Mesh not appearing on 3d plot

asked 13 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 13 years ago

niles gravatar image

updated 13 years ago

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)
Preview: (hide)
link

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: 13 years ago

Seen: 700 times

Last updated: Mar 28 '12