ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 30 Jul 2012 14:29:17 +0200Plot in 3D without interpolationhttps://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.Mon, 30 Jul 2012 04:02:06 +0200https://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>
https://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 11:28:52 +0200https://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>
https://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/Mon, 30 Jul 2012 06:38:42 +0200https://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?answer=13864#post-id-13864Comment 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>
https://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 13:59:17 +0200https://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?comment=19318#post-id-19318Comment 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>
https://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 14:03:16 +0200https://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?comment=19317#post-id-19317Comment 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>
https://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 13:19:49 +0200https://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>
https://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 14:29:17 +0200https://ask.sagemath.org/question/9187/plot-in-3d-without-interpolation/?comment=19316#post-id-19316