ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 30 Jul 2012 07:29:17 -0500Plot in 3D without interpolationhttp://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/Can I use list_plot3d without interpolation, or is there some equivalent? I just want to plot the output of a numerical integration (specifically, the Lorenz attractor) and the interpolation is **not** helpful.Sun, 29 Jul 2012 21:02:06 -0500http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/Comment by Jason Grout for <p>Can I use list_plot3d without interpolation, or is there some equivalent? I just want to plot the output of a numerical integration (specifically, the Lorenz attractor) and the interpolation is <strong>not</strong> helpful.</p>
http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?comment=19325#post-id-19325Are you wanting to plot a surface or a line? The examples in achrzesz's answer below are 3d line plotting, but your question asks about list_plot3d, which plots surfaces.Mon, 30 Jul 2012 04:28:52 -0500http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?comment=19325#post-id-19325Answer by achrzesz for <p>Can I use list_plot3d without interpolation, or is there some equivalent? I just want to plot the output of a numerical integration (specifically, the Lorenz attractor) and the interpolation is <strong>not</strong> helpful.</p>
http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?answer=13864#post-id-13864Compare:
http://sagemath.blogspot.com/2008/01/josh-kantors-lorenz-attractor-example.html
http://ask.sagemath.org/answers/756/revisions/Sun, 29 Jul 2012 23:38:42 -0500http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?answer=13864#post-id-13864Comment by jaia for <p>Compare:</p>
<p><a href="http://sagemath.blogspot.com/2008/01/josh-kantors-lorenz-attractor-example.html">http://sagemath.blogspot.com/2008/01/...</a></p>
<p><a href="http://ask.sagemath.org/answers/756/revisions/">http://ask.sagemath.org/answers/756/r...</a></p>
http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?comment=19319#post-id-19319Thanks. line3d works for this example, but what if I really need to plot individual points? Is there any way to do that other than using point and a loop?Mon, 30 Jul 2012 06:19:49 -0500http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?comment=19319#post-id-19319Comment by achrzesz for <p>Compare:</p>
<p><a href="http://sagemath.blogspot.com/2008/01/josh-kantors-lorenz-attractor-example.html">http://sagemath.blogspot.com/2008/01/...</a></p>
<p><a href="http://ask.sagemath.org/answers/756/revisions/">http://ask.sagemath.org/answers/756/r...</a></p>
http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?comment=19316#post-id-19316In second link you can do:
points(sol,color='red')
or line3d(sol)+points(sol,color='red')
Mon, 30 Jul 2012 07:29:17 -0500http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?comment=19316#post-id-19316Comment by jaia for <p>Compare:</p>
<p><a href="http://sagemath.blogspot.com/2008/01/josh-kantors-lorenz-attractor-example.html">http://sagemath.blogspot.com/2008/01/...</a></p>
<p><a href="http://ask.sagemath.org/answers/756/revisions/">http://ask.sagemath.org/answers/756/r...</a></p>
http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?comment=19317#post-id-19317That's point and a nice loop, but it'll do. :-) Still, this seems like a function somebody should add to Sage.Mon, 30 Jul 2012 07:03:16 -0500http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?comment=19317#post-id-19317Comment by achrzesz for <p>Compare:</p>
<p><a href="http://sagemath.blogspot.com/2008/01/josh-kantors-lorenz-attractor-example.html">http://sagemath.blogspot.com/2008/01/...</a></p>
<p><a href="http://ask.sagemath.org/answers/756/revisions/">http://ask.sagemath.org/answers/756/r...</a></p>
http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?comment=19318#post-id-19318For example:
sum([point3d((i,i^2,i^3), size=10) for i in range(10)])Mon, 30 Jul 2012 06:59:17 -0500http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?comment=19318#post-id-19318Answer by achrzesz for <p>Can I use list_plot3d without interpolation, or is there some equivalent? I just want to plot the output of a numerical integration (specifically, the Lorenz attractor) and the interpolation is <strong>not</strong> helpful.</p>
http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?answer=13863#post-id-13863Maybe line will be helpful:
sage: line([(0,0,1), (0,1,1),(1,1,1),(0,0,1)])Sun, 29 Jul 2012 23:32:06 -0500http://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?answer=13863#post-id-13863