Colorbar unable to add value/color once only one item left

Issue #26 resolved
Angus Yeh repo owner created an issue

When number of value-color pairs reduce to one, it can no longer add more value-color pairs. See error message:

  File "D:\_Geothermal\Apps\neoMulgraph\mulview\source\timgui\colorbar_and_scale.py", line 128, in _resetColor
    old_color_value_scale = [0.0+(1.0/float(len(colors)-1))*i for i in range(len(colors))] ZeroDivisionError: float division by zero

Comments (4)

  1. Angus Yeh reporter

    Fix Issue #26 colorbar unable to operate when falsely reduced to length 1 or lower. This is a temporary fix, color bar control needs to be overhauled.

    → <<cset cdaaa0d73f59>>

  2. Log in to comment