Ladybug Sunlight legend Units

Hello everyone!

I calculated 5 hours a day from September to November. And I’m trying to express the time to receive the sun. BUT the time legend is fixed in units of “hundred’s place.”

if the script is correct, could you guys tell me how to change it to the “tens place?” Thanks :slight_smile:
(my version is 1.60)

Welcome to the forum @dhdhrhcl!

Are you trying to get the legend to show:
0, 10, 20, 30…… 980, 990, >1000

If so you need to increase the segment count (seg_count_) from the default of 11 to 101 (I think).

Something to watch out for, I think that the analysis period isn’t currently doing what you’re suggesting here, but I might have misunderstood what you’re trying to do.

Side note - I’d generally recommend setting Rhino units to meters when working with LBT, but understand that this might be ok for what you’re currently doing. Not setting appropriate units can cause issues if you move into Honeybee simulations.

Thank you for your quick reply. I am using mm units.

How should I set 5 hours per day (September-November)? I did as you said, but there is no change.

The problem is that the unit of time is too large.
Daylight hours.gh (50.1 KB)

oh i made it

Thank you very much charlie

1 Like