Browse Source

fix legend of hydrophobicity color theme

Alexander Rose 3 years ago
parent
commit
f0e33e1e4e
2 changed files with 3 additions and 2 deletions
  1. 1 0
      CHANGELOG.md
  2. 2 2
      src/mol-theme/color/hydrophobicity.ts

+ 1 - 0
CHANGELOG.md

@@ -8,6 +8,7 @@ Note that since we don't clearly distinguish between a public and private interf
 
 - Fix handling of mmcif with empty ``label_*`` fields
 - Improve saccharide detection (compare against list from CCD)
+- Fix legend label of hydrophobicity color theme
 
 ## [v3.3.1] - 2022-02-27
 

+ 2 - 2
src/mol-theme/color/hydrophobicity.ts

@@ -59,8 +59,8 @@ export function HydrophobicityColorTheme(ctx: ThemeDataContext, props: PD.Values
     const scale = ColorScale.create({
         listOrName: props.list.colors,
         domain: [max, min],
-        minLabel: 'Hydrophobic',
-        maxLabel: 'Hydrophilic'
+        minLabel: 'Hydrophilic',
+        maxLabel: 'Hydrophobic'
     });
 
     function color(location: Location): Color {