Re: @pyplot *can* render into the VR pane

2018-08-26 Thread Edward K. Ream
On Sunday, August 26, 2018 at 8:50:46 AM UTC-5, Edward K. Ream wrote: > > > This code is too brittle: > > g.app.permanentScriptDict['animate_decay'] = animation > Actually, it's pretty good. I now use the following: g.app.permanentScriptDict['pyplot_animations'] = animation # or list of

Re: @pyplot *can* render into the VR pane

2018-08-26 Thread Edward K. Ream
On Sunday, August 26, 2018 at 8:35:25 AM UTC-5, Edward K. Ream wrote: > @pyplot nodes start with @pyplot in the headline. The rest of the headline is comments. > These nodes should contain matplotlib scripts that create figures or animations. Like this: Some of the issues covered in this

Re: @pyplot *can* render into the VR pane

2018-08-26 Thread Edward K. Ream
On Sunday, August 26, 2018 at 8:35:25 AM UTC-5, Edward K. Ream wrote: Make sure to save a reference to animations, so they will continue to work. > This code is too brittle: g.app.permanentScriptDict['animate_decay'] = animation Do something like this instead: # Retain a reference to

@pyplot *can* render into the VR pane

2018-08-26 Thread Edward K. Ream
This will be pre-writing for an entry in Leo's scripting miscellany . It documents features that Leo has had for a long time, but which I misunderstood myself until a few days ago. Recent changes to the code add some protections, but have not