Opened 14 years ago

Closed 14 years ago

#2741 closed enhancement (fixed)

[with patch; positive review] Implement mesh lines in 3d plots

Reported by: jason Owned by: was
Priority: major Milestone: sage-3.0.1
Component: graphics Keywords:
Cc: TimothyClemans Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by mabshoff)

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
> >

Attachments (2)

sage-2741.patch (4.9 KB) - added by was 14 years ago.
2741-doctest.patch (1.3 KB) - added by TimothyClemans 14 years ago.
fixes doctest failures

Download all attachments as: .zip

Change History (9)

comment:1 Changed 14 years ago by jason

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.

Changed 14 years ago by was

comment:2 Changed 14 years ago by was

  • Summary changed from Implement mesh lines in 3d plots to [with patch; needs review] Implement mesh lines in 3d plots

comment:3 Changed 14 years ago by mabshoff

  • Description modified (diff)

comment:4 Changed 14 years ago by TimothyClemans

  • Cc TimothyClemans added

Changed 14 years ago by TimothyClemans

fixes doctest failures

comment:5 Changed 14 years ago by TimothyClemans

  • Summary changed from [with patch; needs review] Implement mesh lines in 3d plots to [with patch; positive review] Implement mesh lines in 3d plots

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

comment:6 Changed 14 years ago by mabshoff

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

Cheers,

Michael

comment:7 Changed 14 years ago by mabshoff

  • Resolution set to fixed
  • Status changed from new to closed

Merger in Sage 3.0.1.alpha1

Note: See TracTickets for help on using tickets.