Plotting module

39 views
Skip to first unread message

sandona...@gmail.com

unread,
May 3, 2021, 5:18:09 PM5/3/21
to sympy
Hello everyone,

I created a slightly improved plotting module for SymPy, which can be found at the following location [1]. It supports different plotting libraries (Plotly, Bokeh, K3D, Mayavi) and, most importantly, we can easily create widgets-interactive plots to explore parametric symbolic expressions.

The module is still in beta phase, so I would really like to get feedback on bugs and possible features.

Hope someone will find it useful.

Davide

gu...@uwosh.edu

unread,
May 3, 2021, 5:40:16 PM5/3/21
to sympy
Davide,

Thank you for working on this. I am particularly interested in K3D as I have been using it for data and am very impressed. I will look at this, but not for at least two weeks. We are approaching exams...

Jonathan

Aaron Meurer

unread,
May 3, 2021, 6:40:24 PM5/3/21
to sympy
Thank you for sharing. Do you think this is something you'd like to
see integrated into SymPy's plotting module eventually?

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sympy+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/fa3f76bc-c83b-43e5-a4ea-48bc714cdff2n%40googlegroups.com.

Aaron Meurer

unread,
May 3, 2021, 7:41:49 PM5/3/21
to sympy
Also I would suggest setting up some sort of Binder for the notebooks
so that people can try this out without having to install everything.

Aaron Meurer

Davide Sandona'

unread,
May 4, 2021, 1:00:25 PM5/4/21
to sy...@googlegroups.com
Thank you for sharing. Do you think this is something you'd like to
see integrated into SymPy's plotting module eventually?

I think it would benefit a lot of users, but it's too soon to talk about integration because I'm still thinking about what needs to be added and what needs to be removed.

Also I would suggest setting up some sort of Binder for the notebooks
so that people can try this out without having to install everything.

Awesome suggestion. I've set it up, however Mayavi won't work with Binder, so if you find any errors in the notebook just comment the lines out.

Davide.


Nicolas Guarin

unread,
May 4, 2021, 7:52:47 PM5/4/21
to sympy

This is great and the quality of the 3D plots is incredible.

Regarding the backends, did you try PyVista? That one is also based on VTK and it works nicely in MyBinder.

Nicolás

Oscar Benjamin

unread,
May 4, 2021, 8:40:22 PM5/4/21
to sympy
On Tue, 4 May 2021 at 18:00, Davide Sandona' <sandona...@gmail.com> wrote:
>>
>> Thank you for sharing. Do you think this is something you'd like to
>> see integrated into SymPy's plotting module eventually?
>
> I think it would benefit a lot of users, but it's too soon to talk about integration because I'm still thinking about what needs to be added and what needs to be removed.

I agree. It does look very nice but it would be easier and better to
let it mature outside of the sympy codebase.

>> Also I would suggest setting up some sort of Binder for the notebooks
>> so that people can try this out without having to install everything.

Alternatively you could release spb on PyPI and then someone can
install it along with the dependencies using "pip install spb".

Then people can use it and contribute to it and it might even turn out
that in the long term it's fine for it to be a separate package and
sympy doesn't really need a plotting module any more because people
can install and use spb.

--
Oscar
Reply all
Reply to author
Forward
0 new messages