Graph and widgets with no 3D graphics canvas?

31 views
Skip to first unread message

Daniel Schroeder

unread,
Feb 7, 2025, 8:45:39 AMFeb 7
to Glowscript Users
I'd like to create a Web VPython program that has a graph and some GUI widgets but no 3D graphics canvas. Is this possible? When I try to set a widget's pos attribute to myGraph.caption_anchor, it seems to ignore this and instead creates a 3D canvas (scene) that I don't need. As a kludge I can set scene.width and scene.height to 0, but that seems... inelegant.


Bruce Sherwood

unread,
Feb 7, 2025, 1:59:25 PMFeb 7
to Glowscript Users
Add scene.delete() to the end of the program.

Bruce

Michael Burns-Kaurin

unread,
Feb 18, 2025, 3:41:56 PMFeb 18
to Glowscript Users
Excellent timing...
Reply all
Reply to author
Forward
0 new messages