Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement mesh lines in 3d plots #2741

Closed
jasongrout opened this issue Mar 31, 2008 · 7 comments
Closed

Implement mesh lines in 3d plots #2741

jasongrout opened this issue Mar 31, 2008 · 7 comments

Comments

@jasongrout
Copy link
Member

Is there an easy way to get mesh lines in a plot3d surface?

This is not implemented. I wish you would implement it :-)

Robert Bradshaw might have some useful advise.

> > Sometimes
> >  it is hard to visualize the plot (especially when it is printed) without
> >  the mesh lines.
> >
> >  If that is easy, what about the possibility of doing some of things that
> >  Mma does with different types of meshes?  For reference, see:
> >
> >  http://reference.wolfram.com/mathematica/ref/Mesh.html
> >
> >  http://reference.wolfram.com/mathematica/ref/MeshFunctions.html
> >
> >  http://reference.wolfram.com/mathematica/ref/MeshShading.html
> >
> >  http://reference.wolfram.com/mathematica/ref/MeshStyle.html
> >

CC: @timothyclemans

Component: graphics

Issue created by migration from https://trac.sagemath.org/ticket/2741

@jasongrout
Copy link
Member Author

comment:1

Well, he already answered my question in the source.

In sage/sage/plot/plot3d/index_set.pyx, starting at line 658 (in 2.10.4):

        # If we wanted to turn on display of the mesh lines or dots
        # we would uncomment thse.  This should be determined by
        # render_params, probably. 
        #s += '\npmesh %s mesh\n'%name
        #s += '\npmesh %s dots\n'%name

Uncommenting the appropriate line does indeed give a mesh in JMOL. So now the question is how to expose this to the user. And how to extend it to do nontrivial mesh functions.

@williamstein
Copy link
Contributor

comment:2

Attachment: sage-2741.patch.gz

@sagetrac-mabshoff

This comment has been minimized.

@TimothyClemans
Copy link
Mannequin

TimothyClemans mannequin commented Apr 30, 2008

fixes doctest failures

@TimothyClemans
Copy link
Mannequin

TimothyClemans mannequin commented Apr 30, 2008

comment:5

Attachment: 2741-doctest.patch.gz

Impressive plots with mesh lines! There were two doctest failures I fixed them and uploaded a patch.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Apr 30, 2008

comment:6

Timothy's patch looks good to me. Somebody didn't doctest his own patch ;)

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Apr 30, 2008

comment:7

Merger in Sage 3.0.1.alpha1

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Apr 30, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants