# iMOD User Manual version 5.2 (html)

#### 6.6Legends

This section describes the usage of legends.

A legend is assigned to a map (*.IDF, *.IPF, *.IFF, *.GEN, *.MAP). Make sure you select one of them in the iMOD Manager to activate the Legend button on the Maps tab of the iMOD Manager. Alternatively you can click the right mouse button anywhere on the canvas and select the option Legend from the pop-up menu and then choose the option Adjust Legend. In both cases, the Legend window will appear, two examples of the Stretched tab on the Legend window, left using all color gradients (7 gradients), right using the first and last only (one gradient).

Legend window, Stretched Tab using all color gradients:

Legend window, Stretched Tab using two color gradients:

Note: A stretched legend contains always 255 colours and classes. Whenever a legend contains 50 classes or less, the Classes tab will appear instead.

Note: The maximum number of classes in a Classed Legend is 50. However, less is often desired. You are requested to specify beforehand the number of classes you want. When switching from the Stretched tab to the Classes tab, the following window will appear.

Class Definitions window:

##### 6.6.2Generation of Legends

All active maps are accompanied by a legend. IDF-files are drawn standard by a legend, as well as IPFs, IFFs, ISGs and GENs. However you can let iMOD assign classes and colours also. In that case you should select the respective *-options under Map, or alternatively you can press the right mouse button anywhere on the canvas to see the following options:

• Current Zoom Level

• Percentiles
Click this option to build a non-linear legend based on the distribution of values in the selected IDF’s for the current zoom level of these files (max. 2000 points).

• Linear
Click this option to build a linear legend based on the minimum and maximum values in the selected IDF’s for the current zoom level of these files.

• Unique Values
Click this option to build a legend with unique values that appear in the selected IDF’s for the current zoom level of these files (should be less or equal to 50).

• Entire Zoom Extent

• Percentiles
Click this option to build a non-linear legend based on the distribution of values in the selected IDF’s for the entire zoom extent of these files (max. 2000 points).

• Linear
Click this option to build a linear legend based on the minimum and maximum values in the selected IDF’s for the entire zoom extent of these files.

• Unique Values
Click this option to build a legend with unique values that appear in the selected IDF’s for the entire zoom extent of these files (should be less or equal to 50).

Note: Whenever the number of unique classes exceeds the maximum of 50, iMOD will distribute the original number of classes to fit the maximum of 50. It will take the frequency of the original classes into account, such that the frequencies of the renewed classes are evenly distributed.

##### 6.6.3Synchronize Legends

Whenever more than one map is selected in the iMOD Manager then the option Synchronize Legends becomes available to display the Synchronize Legends window. You can open this window by selecting the menu option Map and the option Legend or alternatively the same menu options from the popup menu whenever you click your right mouse button anywhere on the canvas.

Synchronize Legend by window:

##### 6.6.4Plot Legends

Right-click your mouse button anywhere on the canvas to select the menu option Legend and then choose the option Plot Legend on Map to plot the legend of the last drawn Map on the canvas.

How to move the legend:

The first picture shows that you can move the legend whenever the mouse symbol changes in a cross. The 2${}^{nd}$, 3${}^{rd}$ and 4${}^{th}$ show that you can increase and decrease the size of the legend whenever the arrows appear (near the legend boundaries).

Whenever you right click the mouse button, you can specify the number of columns (1-5) that are used to display the legend, by selecting those in the popup menu Legend Columns. Whenever the legend contains less or equal 50 classes, the legend will be plotted such, that you can distinguish all the classes.

The left two pictures show a legend for two and four columns (both 255 classes) and the right picture shows a legend with 10 classes.

To remove the legend from the map, deselect the Plot Legend on Map option again.

Note: The size of the text will increase and decrease whenever the size of the legend area is changed. So, to increase the textsize, you should increase the area for the legend.

The following sections contains detailed descriptions of the Map options for different files that iMOD supports.