+1  A: 
tom10
Thanks Tom, this is a sensible approach, but I'd rather have the values automatically computed, because I'll be plotting several different functions with different value ranges. If there are no further responses, I'll go with this solution and compute the values myself by finding the min and max values among all arrays.
Roberto Bonvallet
That's just a small change. I'll update my answer.
tom10
Thanks! I had overlooked the `levels` attribute. Now it works :)
Roberto Bonvallet