Sat 2018-12-01 01:02 UTC, slelievre: > > Fri 2018-11-30 23:43 UTC, David Guichard: >> >> In this page, >> >> http://skink.whitman.edu/~guichard/sage/two_plots_clean.html >> >> I have two sagecells, each to do a 3d plot. If I evaluate the first one, it >> works as expected. If I then evaluate the second, it graphs correctly, but >> it also replaces the first plot with a copy of the second. Neither of them >> is "live", that is, I can't rotate either version. >> >> If I first evaluate the second cell, it works as expected. If I then >> evaluate the first one, it also works as expected: I end up with two >> (different) plots, both live. >> >> I'd appreciate knowing how to fix this, if it's possible. I have tried a few >> things, such as changing the outputLocation, but nothing has worked so far. >> >> Thanks, >> David > > > Not sure how to explain what happens there, > or how to really fix it if sticking to jsmol is important. > > If you do the 3D-plotting with three.js however, > the problem goes away. > > This just amounts to adding viewer='threejs' > at the end of the plotting commands.
See a similar report on the sage-cell mailing list: https://groups.google.com/d/topic/sage-cell/BL9h7xLiwG4/discussion In the discussion there, Andrey Novoseltsev points out that SageMathCell uses only one jsmol instance, and if there are several plots using it, they might conflict in hard to predict ways. He recommends using three.js. three.js (called "threejs" in Sage) is a javascript 3D-plotting library. https://threejs.org/ -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.