We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2077675 commit 2f3646aCopy full SHA for 2f3646a
tidy3d/components/scene.py
@@ -1450,7 +1450,10 @@ def _get_structure_eps_plot_params(
1450
if norm is not None:
1451
# Use the same normalization as the colorbar for consistency
1452
color = norm(eps_medium)
1453
- if reverse:
+ # TODO: This is a hack to ensure color consistency with the colorbar.
1454
+ # It should be removed once we establish a proper color mapping where
1455
+ # eps_min maps to 0 and eps_max maps to 1 for 'reverse=False'.
1456
+ if not reverse:
1457
color = 1 - color
1458
color = min(1, max(color, 0)) # clip in case of custom eps limits
1459
else:
0 commit comments