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). moorepants.info +01 530-601-9791 On Sat, Jun 24, 2017 at 2:24 PM, Jason Moore <moorepa...@gmail.com> wrote: > 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. > > notebook: https://github.com/sympy/scipy-2017-codegen-tutorial/ > blob/master/notebooks/javascript_viz.ipynb > > batman equations I used: http://mathworld.wolfram.com/BatmanCurve.html > > Thanks, > > Jason > moorepants.info > +01 530-601-9791 <(530)%20601-9791> > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAP7f1AjwqJh5yp3Fb0%2BpyVFt%2BKrHan3orr_02RJE-PcWhO8JBA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.