Added automatic legend schale