Thx,
I actually changed line 46
import ladybug.legendparameters as lp
to
import ladybug.legend as lp
since the class is called legend and not legendparameters in C:\Users\USERNAME\AppData\Roaming\McNeel\Rhinoceros\6.0\scripts\ladybug
and line 52
legend_par = lp.LegendParameters((0, 100), colors=col)
by
legend_par = lp.LegendParameters(0, 100, colors=col)
without the () since the argument needed is not a tuple…