AnsweredAssumed Answered

Replacing "_" with " " for classLabels using Python

Question asked by darmynelson on Jan 7, 2015
Latest reply on Jan 8, 2015 by bixb0012

Head banging against a wall...


I have figured how to do this for layer name. The Help Docs say it is possible to change classLabel but don't show any examples and I can't find anyone who has successfully done this through Python. I am sure the answer lies in arcpy.mapping and UniqueValuesSymbology but cannot figure it. I have 10-15 different layers, all using unique_values for symbology, consisting of about 15-20 different classes in each. Each class value and therefore label uses an "_" instead of a space as is common practice for GIS data. For legend and TOC purposes, I am trying to figure a script that can quickly manipulate and change the classLabels in Layer Properties.


Any ideas would be wonderful...thanks!