You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Icon buttons** — Seven toggle buttons that control filtering and display
118
+
modes. Each button lights up or changes icon when its mode is active.
119
+
Details on each button are covered below.
120
+
121
+
-**Search / preset name** — Shows the name of the currently active preset.
122
+
Click into it to type and filter the preset list by name. Use the clear
123
+
button to reset the search.
124
+
125
+
-**Close button** (✕) — Dismisses the control panel.
126
+
127
+
#### Icon Buttons (left to right)
128
+
129
+
| # | Off | On | Toggle | Description |
130
+
|---|-----|-----|--------|-------------|
131
+
| 1 | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/palette-outline.svg"width="24"> | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/palette.svg"width="24"> | Category Filter | Shows/hides category checkboxes (Sequential, Multi-Sequential, Diverging, Cyclic) in the *Settings panel* to control which presets appear in the list. |
132
+
| 2 | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/blinds.svg"width="24"> | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/blinds-open.svg"width="24"> | Colorblind Safe | Limits the *Preset list* to colorblind-safe presets only. Filters within the selected categories. |
133
+
| 3 | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/invert-colors-off.svg"width="24"> | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/invert-colors.svg"width="24"> | Invert | Reverses the colormap direction (shown in the *Colorbar* and *Preset list*). |
134
+
| 4a | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/stairs.svg"width="24"> || Scale: Linear | Click to switch to Log scale. In diverging mode, switches to SymLog. |
135
+
| 4b | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/math-log.svg"width="24"> || Scale: Log | Click to switch to SymLog scale. **Note**: Not available in diverging mode. |
136
+
| 4c | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/sine-wave.svg"width="24"> || Scale: SymLog | Click to return to Linear scale. |
137
+
| 5 | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/triangle-outline.svg"width="24"> | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/triangle.svg"width="24"> | Δ Difference | Enters diverging mode: forces diverging-only presets in *Preset list*, symmetric range around zero, and exposes \|max\| and ε controls in *Settings panel*. |
138
+
| 6 | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/pencil.svg"width="24"> | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/arrow-expand-horizontal.svg"width="24"> | Custom Range | Toggles between data-driven range and manual Min/Max inputs exposed in the *Settings panel*. Locked (not shown in *Settings panel*)in diverging mode. |
139
+
| 7 | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/gradient-horizontal.svg"width="24"> | <imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/view-sequential.svg"width="24"> | Discrete | Switches between continuous gradient and discrete color banding. Exposes "Colors per tick interval" (Linear) or "Colors per magnitude" (Log/SymLog) control in *Settings panel*. |
-**Discrete** — *Settings panel* shows the band count control. Its label
160
+
adapts to the active scale: "Colors per tick interval" (Linear) or
161
+
"Colors per order of magnitude" (Log / SymLog).
162
+
-**Search** — The text field contains "V", filtering the *Preset list* to
163
+
matching names. A clear button (✕) appears to reset the search.
164
+
165
+
The only difference between the three images is the **Scale** button, which
166
+
cycles through Linear (<imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/stairs.svg"width="16">), Log (<imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/math-log.svg"width="16">), and SymLog (<imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/sine-wave.svg"width="16">).
167
+
The colorbar tick labels at the bottom switch between decimal notation
When Δ Difference is active (<imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/triangle.svg"width="16"> filled):
180
+
181
+
-**Preset list** is forced to diverging-only presets regardless of category
182
+
selection (vik shown here).
183
+
-**Scale** only toggles between Linear (<imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/stairs.svg"width="16">) and SymLog (<imgsrc="https://cdn.jsdelivr.net/npm/@mdi/svg/svg/sine-wave.svg"width="16">) — Log is
184
+
not available.
185
+
-**Settings panel** replaces Min/Max with **|max|** (symmetric range
186
+
centered at zero) and **ε tolerance** (dead zone width around zero
187
+
where the center color is held constant).
188
+
-**Custom Range** button is locked — range is always driven by |max|.
189
+
-**Category Filter** checkboxes are hidden since presets are forced to
190
+
diverging.
191
+
80
192
## Public API
81
193
82
194
Import via the trame namespace:
@@ -119,6 +231,7 @@ All colormap presets are stored as JSON files under `src/trame_colormaps/presets
119
231
| Category | Use When | Data Character |
120
232
|----------|----------|----------------|
121
233
|**Sequential**| Magnitude — more/less of something | Temperature, pressure, density |
0 commit comments