From 719d8e98147dc29c1072a959ecbcaedf3c7fd41f Mon Sep 17 00:00:00 2001 From: Chris Mackey Date: Wed, 8 Jan 2025 14:04:19 -0800 Subject: [PATCH] fix(preview): Fix bug in previous commit --- ladybug_rhino/preview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ladybug_rhino/preview.py b/ladybug_rhino/preview.py index a8fa6cf..9167807 100644 --- a/ladybug_rhino/preview.py +++ b/ladybug_rhino/preview.py @@ -790,7 +790,7 @@ def convert_legend2d(legend, vw=None, vh=None): l_par = legend.legend_parameters color_mtx = legend.color_map_2d(vw, vh) color_mtx = [[color_to_color(c) for c in row] for row in color_mtx] - if (8, 14) <= rhino_version < (8, 15, 25008): + if (8, 14) <= rhino_version < (8, 15, 25007): color_mtx = list(reversed(color_mtx)) net_bm = System.Drawing.Bitmap(len(color_mtx[0]), len(color_mtx)) for y, row in enumerate(color_mtx):