QGIS Raster Legend – Rounding Numbers in Raster Legend in QGIS for Better Data Presentation

legendqgis

Is it possible to have the numbers in the raster legend automatically rounded off?

In the example below I'd like the labels to be 8, 29, 51 and so on.

I know I can manually edit the labels, but is it really necessary to do that every time I make a map?

example

Best Answer

As of QGIS 3.16, you can do this directly via the Label precision option under Symbology.

Just set the precision to 0.

You can also use negative numbers to round to powers of 10.

enter image description here

Related Question