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.Thu, 15 Feb 2018 11:07:31 -0600plot_vector_field3d and three.js viewerhttp://ask.sagemath.org/question/41091/plot_vector_field3d-and-threejs-viewer/ I guess there might be some mistake in my code, but I cannot use `plot_vector_field3d` and show the result with `three.js` viewer. The code is
var('x y z')
f = (x, y, z)
show(plot_vector_field3d(f, (x,-3,3), (y,-3,3), (z,-3,3), aspect_ratio=1), viewer='threejs')
and it only shows an empty box. How to explain this behaviour?Tue, 13 Feb 2018 05:56:22 -0600http://ask.sagemath.org/question/41091/plot_vector_field3d-and-threejs-viewer/Answer by eric_g for <p>I guess there might be some mistake in my code, but I cannot use <code>plot_vector_field3d</code> and show the result with <code>three.js</code> viewer. The code is </p>
<pre><code>var('x y z')
f = (x, y, z)
show(plot_vector_field3d(f, (x,-3,3), (y,-3,3), (z,-3,3), aspect_ratio=1), viewer='threejs')
</code></pre>
<p>and it only shows an empty box. How to explain this behaviour?</p>
http://ask.sagemath.org/question/41091/plot_vector_field3d-and-threejs-viewer/?answer=41097#post-id-41097Unfortunately the plot of vector fields with `threejs` is not implemented yet. This is one of the reasons why `threejs` is not the default 3d viewer in Sage yet, see the "con" section of https://trac.sagemath.org/ticket/22408.
Moreover, the person who started the implementation of `threejs` in Sage cannot work further on it at the moment. So, if you (or anybody else reading this) feel like to implement vector fields in `threejs`, you are very welcome. This would be a nice way to contribute to the open-source project SageMath! Please contact me for guidance if required.Tue, 13 Feb 2018 15:14:45 -0600http://ask.sagemath.org/question/41091/plot_vector_field3d-and-threejs-viewer/?answer=41097#post-id-41097Comment by jepstra for <p>Unfortunately the plot of vector fields with <code>threejs</code> is not implemented yet. This is one of the reasons why <code>threejs</code>is not the default 3d viewer in Sage yet, see the "con" section of <a href="https://trac.sagemath.org/ticket/22408">https://trac.sagemath.org/ticket/22408</a>.</p>
<p>Moreover, the person who started the implementation of <code>threejs</code> in Sage cannot work further on it at the moment. So, if you (or anybody else reading this) feel like to implement vector fields in <code>threejs</code>, you are very welcome. This would be a nice way to contribute to the open-source project SageMath! Please contact me for guidance if required.</p>
http://ask.sagemath.org/question/41091/plot_vector_field3d-and-threejs-viewer/?comment=41134#post-id-41134@eric_g thank you very much!!Thu, 15 Feb 2018 11:07:31 -0600http://ask.sagemath.org/question/41091/plot_vector_field3d-and-threejs-viewer/?comment=41134#post-id-41134Comment by eric_g for <p>Unfortunately the plot of vector fields with <code>threejs</code> is not implemented yet. This is one of the reasons why <code>threejs</code>is not the default 3d viewer in Sage yet, see the "con" section of <a href="https://trac.sagemath.org/ticket/22408">https://trac.sagemath.org/ticket/22408</a>.</p>
<p>Moreover, the person who started the implementation of <code>threejs</code> in Sage cannot work further on it at the moment. So, if you (or anybody else reading this) feel like to implement vector fields in <code>threejs</code>, you are very welcome. This would be a nice way to contribute to the open-source project SageMath! Please contact me for guidance if required.</p>
http://ask.sagemath.org/question/41091/plot_vector_field3d-and-threejs-viewer/?comment=41129#post-id-41129Very good! A good starting point is http://doc.sagemath.org/html/en/developer/; see also http://doc.sagemath.org/html/en/thematic_tutorials/coercion_and_categories.html for implementing new parents.Thu, 15 Feb 2018 03:56:28 -0600http://ask.sagemath.org/question/41091/plot_vector_field3d-and-threejs-viewer/?comment=41129#post-id-41129Comment by jepstra for <p>Unfortunately the plot of vector fields with <code>threejs</code> is not implemented yet. This is one of the reasons why <code>threejs</code>is not the default 3d viewer in Sage yet, see the "con" section of <a href="https://trac.sagemath.org/ticket/22408">https://trac.sagemath.org/ticket/22408</a>.</p>
<p>Moreover, the person who started the implementation of <code>threejs</code> in Sage cannot work further on it at the moment. So, if you (or anybody else reading this) feel like to implement vector fields in <code>threejs</code>, you are very welcome. This would be a nice way to contribute to the open-source project SageMath! Please contact me for guidance if required.</p>
http://ask.sagemath.org/question/41091/plot_vector_field3d-and-threejs-viewer/?comment=41114#post-id-41114Thank you very much for your comment and attention!! I'm afraid I'm not very used to the code inside Sage... but I hope I may contribute to SageMath in the future.Wed, 14 Feb 2018 02:15:20 -0600http://ask.sagemath.org/question/41091/plot_vector_field3d-and-threejs-viewer/?comment=41114#post-id-41114