TL;DR: Select the edit button next to Gradient in a comparison or reference model. Click the bar to add a stage, select a stage to set it to Single value or Range with a color and value, and select Apply. You can change the gradient later.
Where the gradient editor appears
- Terrain Operations > Comparisons in Infomap: when you create a comparison, and in Edit of an existing comparison.
- Data > Reference models: in Create reference model, and in Edit reference model of an existing one.
In each of these, the Gradient field shows the current stages, for example -1 m, -0,2 m, -0,05 – 0,05 m, 0,2 m, and 1 m. Select the edit button next to it to open the editor. All gradients you saved before this release are kept.
The default gradient
A new comparison or reference model starts with five stages: -1 m, -0,2 m, a range from -0,05 m to 0,05 m, 0,2 m, and 1 m. The colors run from purple for the largest negative difference, through blue and green, to yellow and red for the largest positive difference. Reset to default in the editor brings these stages back.
How the gradient works
- Each stage colors a single value or a range.
- Values between two stages blend smoothly.
- Values beyond the outermost stages take the color of the nearest outermost stage.
- Values use your measurement unit setting, for example meters or feet.
- A range can be any size.
Set up a gradient
- Select the edit button next to Gradient. The Gradient editor opens.
- Click the bar to add a stage. To add a range instead, drag along an empty part of the bar.
- Select a stage on the bar or its label to edit it. The Selected stage panel opens.
- Choose Single value or Range.
- Choose the Color.
- For a single value, enter the Value. For a range, enter the Value and To.
- Repeat steps 2 to 6 for every stage you need.
- Select Apply to save the gradient.
Result
The comparison or reference model is colored by your gradient. Cancel closes the editor without changes.
Edit stages quickly
| Action | How |
|---|---|
| Move a stage | Drag the stage or its label |
| Resize a range | Drag the edges of the range |
| Turn off snapping | Hold Shift while dragging |
| Zoom | Scroll over the bar, or use the zoom buttons |
| Pan | Drag the scale |
| Fit the whole gradient | Double-click the scale, or use the fit button |
| Move the selected stage | Arrow keys |
| Delete the selected stage | Delete key, or the trash button in Selected stage |
| Undo | Ctrl+Z (Windows, Linux) or Cmd+Z (Mac), or the undo button |
| Redo | Ctrl+Shift+Z, or the redo button |
| Go back to the default gradient | Reset to default (circular arrow) |
Fix errors
The editor marks a stage with an error and Apply stays unavailable until you fix it.
- The start of the range must not be greater than its end: in a range, Value is larger than To. Swap the values.
- A required value is empty: Value and, for a range, To are required. Enter a number.
- Ranges overlap: move or resize one of them.
Comments
0 comments
Please sign in to leave a comment.