Legend in graph?

15 views
Skip to first unread message

Michael Burns-Kaurin

unread,
Feb 7, 2025, 9:13:40 AMFeb 7
to glowscri...@googlegroups.com
I've looked, but I do not see how to make a legend in a glowscript graph (even though I tried something that Google AI insisted would work).  Do legends work in glowscript?

Michael Burns-Kaurin

Bruce Sherwood

unread,
Feb 7, 2025, 1:54:07 PMFeb 7
to Glowscript Users
From the Web VPython documentation of graphs: 
   
  • legend (boolean) – If True, labels are displayed. Default True.


However, the meaning of legend here is something that shows up in the upper right corner of a graph.

Bruce

Paul Camp

unread,
Feb 7, 2025, 2:26:52 PMFeb 7
to glowscri...@googlegroups.com
Except two days ago, I looked at a program where the graph legend was in the upper right corner of the animation. It also had two graphs, one atop the other. When we used the align attribute to fix that, it also fixed the errant legend.

Putting graphs one on top of the other sometimes happens and sometimes doesn't and that baffles me.

--

---
You received this message because you are subscribed to the Google Groups "Glowscript Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glowscript-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/glowscript-users/eda1d548-575b-4e06-9fe1-35a0bb84417bn%40googlegroups.com.


--
Dr. Paul J. Camp

"The beauty of the cosmos derives not only from unity in variety
       but also from variety in unity"
                 -- Umberto Eco
                     The Name of the Rose

Michael Burns-Kaurin

unread,
Feb 7, 2025, 2:32:27 PMFeb 7
to glowscri...@googlegroups.com
I was looking for legend under graph not gcurve, thanks.  Still, it must have therefore worked when I tried labels in gcurve before, but I in trinket.io it's easy for me to miss the right side of the graph.  (I know, I should switch back to glowscript.org, I oscillate on this.)

Thanks.


--
Reply all
Reply to author
Forward
0 new messages