plotting the batman equations, need help

35 views
Skip to first unread message

Jason Moore

unread,
Jun 24, 2017, 5:25:29 PM6/24/17
to sy...@googlegroups.com
I've been trying to put together a demo showing how sympy's jscode generator could be used to plot functions using Chart.js in the Jupyter notebook. I decided to try plotting the Batman equations and it almost works. The sympy.plot function gets most of it but seems to have issues with the head. And then when I convert to javascript the entire top doesn't work. I may have picked too hard of a plot to try to do for this demo, but maybe some of you all know how to get this working. Any help would be appreciated. This might be used in the SciPy tutorial next week.


Thanks,

Jason

Jason Moore

unread,
Jun 25, 2017, 1:33:03 AM6/25/17
to sy...@googlegroups.com
I figured out a workaround using carefully crafted Piecewise functions. But I did open this issue:

https://github.com/sympy/sympy/issues/12804

because I think it should just work (it mostly does).
Reply all
Reply to author
Forward
0 new messages