5

So I am trying to create a legend where the entries are, for example, like this:

  • 1.1 - 2.0

  • 2.1 - 3.0

  • 3.1 - 4.0

as opposed to like this:

  • 1.1 - 2.1
  • 2.1 - 3.1
  • 3.1 - 4.1

I essentially don't want the upperbound of one interval to be the same as the lowerbound of the next interval. I know I can do this by setting the Legend Format to "%11 - %20" but in that case, I would end up with two digits after the decimal, where as I only want one digit after the decimal.

  • I don't think that you can..with the first example there is a gap between 2.0 and 2.1. – doktoreas Feb 12 '15 at 20:54
  • In case that one value is exactly 2.1 (lower bound of one class and upper bound of another), how exactly does QGIS deal with that? – Naj S Feb 12 '15 at 21:49
  • It goes with the first class. – doktoreas Feb 12 '15 at 21:58
  • Interesting. Definitely worth keeping in mind. Thanks. – Naj S Feb 12 '15 at 22:31
  • @NajS With that in mind, you could make it clear how your intervals deal with extreme values by means of legend labels. See gis.stackexchange.com/questions/132775/… – Germán Carrillo Feb 13 '15 at 12:25
3

A possible workaround is to use my favourite Rule-based style instead of Graduated:

Rule-based style

It may require a bit of work in setting the rules but you have much greater control in terms of customisation (atleast I think so!).

Hope this helps!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.