[sage-support] Re: mesh lines in a 3d plot
On Mar 31, 1:27 pm, Jason Grout [EMAIL PROTECTED] wrote: William Stein wrote: On Mon, Mar 31, 2008 at 11:03 AM, Jason Grout [EMAIL PROTECTED] wrote: Is there an easy way to getmeshlines in a plot3d surface? This is not implemented. I wish you would implement it :-) Robert Bradshaw might have some useful advise. 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 themeshlines or dots # we would uncomment thse. This should be determined by # render_params, probably. #s += '\npmesh %smesh\n'%name #s += '\npmesh %s dots\n'%name Uncommenting the appropriate line does indeed give ameshinJMOL. So now the question is how to expose this to the user. And how to extend it to do nontrivialmeshfunctions. Jason After reading these lines I couldn't wait to lay my hands on index_set.pyx, uncomment those lines and start plotting some good stuff. I recently downloaded the Vmware version, since Fedora 8 won't let me render 3D (just 2D, I guess I'm gonna have to try the Sun JDK), and I've been pleased with the quality of the plots, there's a lot of potential there, but I still miss the 'good 'ol mesh'. My experience with Unix editing tools (ed, sed, grep, etc.) has been so superficial that I must confess I find it easier to click the Kwrite icon than trying to understand search methods or regular expressions. The best I could achieve was to dump the file to screen (using w3m and Firefox opening a new tab for me) and that was it. Look but don't touch. Any suggestions?? - Louie - --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: mesh lines in a 3d plot
On Tue, Apr 29, 2008 at 7:51 PM, louie [EMAIL PROTECTED] wrote: On Mar 31, 1:27 pm, Jason Grout [EMAIL PROTECTED] wrote: William Stein wrote: On Mon, Mar 31, 2008 at 11:03 AM, Jason Grout [EMAIL PROTECTED] wrote: Is there an easy way to getmeshlines in a plot3d surface? This is not implemented. I wish you would implement it :-) Robert Bradshaw might have some useful advise. 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 themeshlines or dots # we would uncomment thse. This should be determined by # render_params, probably. #s += '\npmesh %smesh\n'%name #s += '\npmesh %s dots\n'%name Uncommenting the appropriate line does indeed give ameshinJMOL. So now the question is how to expose this to the user. And how to extend it to do nontrivialmeshfunctions. Jason After reading these lines I couldn't wait to lay my hands on index_set.pyx, uncomment those lines and start plotting some good stuff. I recently downloaded the Vmware version, since Fedora 8 won't let me render 3D (just 2D, I guess I'm gonna have to try the Sun JDK), and I've been pleased with the quality of the plots, there's a lot of potential there, but I still miss the 'good 'ol mesh'. My experience with Unix editing tools (ed, sed, grep, etc.) has been so superficial that I must confess I find it easier to click the Kwrite icon than trying to understand search methods or regular expressions. The best I could achieve was to dump the file to screen (using w3m and Firefox opening a new tab for me) and that was it. Look but don't touch. Any suggestions?? - Louie - This is trac ticket #2741: http://trac.sagemath.org/sage_trac/ticket/2741 I'll try to do it right now, so that mesh lines will be in the next version of Sage. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: mesh lines in a 3d plot
I recently downloaded the Vmware version, since Fedora 8 won't let me render 3D (just 2D, I guess I'm gonna have to try the Sun JDK), and I've been pleased with the quality of the plots, there's a lot of potential there, but I still miss the 'good 'ol mesh'. My experience with Unix editing tools (ed, sed, grep, etc.) has been so superficial that I must confess I find it easier to click the Kwrite icon than trying to understand search methods or regular expressions. The best I could achieve was to dump the file to screen (using w3m and Firefox opening a new tab for me) and that was it. Look but don't touch. Any suggestions?? - Louie - This is trac ticket #2741: http://trac.sagemath.org/sage_trac/ticket/2741 I'll try to do it right now, so that mesh lines will be in the next version of Sage. I've posted a patch to http://trac.sagemath.org/sage_trac/ticket/2741 If somebody (Jason Grout -- hint hint) referees it, then it'll be in the next sage release. It makes it so there is a mesh=True and dots=True option for plot3d and parametric_plot3d. The mesh looks pretty good. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: mesh lines in a 3d plot
On Mon, Mar 31, 2008 at 11:03 AM, Jason Grout [EMAIL PROTECTED] wrote: 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 Thanks, Jason -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: mesh lines in a 3d plot
William Stein wrote: On Mon, Mar 31, 2008 at 11:03 AM, Jason Grout [EMAIL PROTECTED] wrote: 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. This is now trac #2471. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---