In a legend of feature layer, I would like to format the subtitle so that it doesn't print the full number, but rounds the category limits to 2 decimal places. I want to implement the format shown in the image not manually, but within a python script. I am using ArcGIS Pro 3.2 version.
Maybe with a CIM tool can solve this? So far I haven't found an example script how.
![49251242-f66c-484b-ae97-8f6ed59f7272.png 49251242-f66c-484b-ae97-8f6ed59f7272.png](https://community.esri.com/t5/image/serverpage/image-id/96358iB789457A8349E1CC/image-size/medium?v=v2&px=400)
aprx = arcpy.mp.ArcGISProject("CURRENT")
m = aprx.listMaps("Map")[0]
lyr5 = m.addDataFromPath(elev)
sym5 = lyr5.symbology
if hasattr(sym5, 'renderer'):
if sym5.renderer.type == 'SimpleRenderer':
sym5.updateRenderer("GraduatedColorsRenderer")
sym5.renderer.classificationField = "Elevation"
sym5.renderer.colorRamp = aprx.listColorRamps("Elevation #3")[0]
sym5.renderer.breakCount = 10
lyr5.symbology = sym5