mesh in parametric_plot3d

9 views
Skip to first unread message

davidp

unread,
Aug 28, 2010, 6:45:06 PM8/28/10
to sage-support
I would like to show my class a parametrized surface with mesh lines
(on Monday!).

1. The following code produces no mesh lines:

sage: var('x y')
sage: parametric_plot3d((x,x^2+y,x*y),(x,0,1),(y,
0,1),plot_points=10,mesh=true)

That seems odd to me.

2. The following code produces mesh lines, but they are very light in
color. Is it possible to make the mesh lines thicker or to change
their color to black?

sage parametric_plot3d((x,x^2+y,x*y),(x,0,1),(y,
0,1),plot_points=10).show(mesh=true)

3. In general, I find it difficult to trace down which options are
applicable to the various plotting functions. The documentation for
plot, plot3d, etc, list some options but not all, it seems.

I am using Sage 4.5.2 on Ubuntu 10.04.

Thanks,
Dave

Jason Grout

unread,
Aug 28, 2010, 7:20:11 PM8/28/10
to sage-s...@googlegroups.com
On 8/28/10 5:45 PM, davidp wrote:
> I would like to show my class a parametrized surface with mesh lines
> (on Monday!).
>
> 1. The following code produces no mesh lines:
>
> sage: var('x y')
> sage: parametric_plot3d((x,x^2+y,x*y),(x,0,1),(y,
> 0,1),plot_points=10,mesh=true)
>
> That seems odd to me.
>
> 2. The following code produces mesh lines, but they are very light in
> color. Is it possible to make the mesh lines thicker or to change
> their color to black?
>
> sage parametric_plot3d((x,x^2+y,x*y),(x,0,1),(y,
> 0,1),plot_points=10).show(mesh=true)
>

mesh=True I don't think has worked very well for a while.

http://trac.sagemath.org/sage_trac/ticket/9238 would *really* make your
life easier. See the example worksheet (that used to be) here:

https://141.233.197.45:4443/home/pub/0/ (I don't know if that link
works any more)

We really need someone to review that patch. It is a big upgrade to the
3d plotting functionality written by one of the JMOL developers.

> 3. In general, I find it difficult to trace down which options are
> applicable to the various plotting functions. The documentation for
> plot, plot3d, etc, list some options but not all, it seems.
>

You're right; the plotting options documentation could definitely be
improved. Volunteers welcome!

Thanks,

Jason

Reply all
Reply to author
Forward
0 new messages