Crosshair number format

20 views
Skip to first unread message

pri...@gmail.com

unread,
May 31, 2022, 9:31:03 AM5/31/22
to Glowscript Users
Is it possible to control the format of the numbers attached to the crosshair on the figure below (I would prefer integer format, 1943, not scientific, 1.94e3 for the x-coordinate)?

crosshairtext.png

Regards,
Poul Riis

Bruce Sherwood

unread,
May 31, 2022, 7:17:30 PM5/31/22
to Glowscript Users
I'm guessing that when using plotly (fast=False) there may be some way to do that, but there's nothing in the VPython code to make that possible.

Bruce

Bruce Sherwood

unread,
Jun 1, 2022, 2:48:01 PM6/1/22
to Glowscript Users
Actually, try specifying in the graph statement "fast=False" and I think you'll see the numbers displayed the way you want.

Bruce
Reply all
Reply to author
Forward
0 new messages