c.enrico

arcpy.MakeGraph_management in Python - text case issue

Discussion created by c.enrico on May 8, 2012
Latest reply on Jul 31, 2012 by c.enrico
I have the following Python code that generates information for feeding a graph template. Title, sub-title and so on appear as lower case in the final chart. The input is typically upper-lower. I want the text to appear as fed to the template.

Any ideas? Thanks.

    
arcpy.MakeGraph_management(inputGraphTemplate, \
     "SERIES=bar:horizontal DATA=" + str(newDataSource) + \
     " X=PERCENT_STATEFC" + \
     " Y=" + str(mySummaryField) + \
     " LABEL=" + str(mySummaryField) + \
     " SORT=ASC;" + \
     " SERIES=bar:horizontal DATA=" + str(newDataSource) + \
     " X=PERCENT_LOCALSR" + \
     " Y=" + str(mySummaryField) + \
     " LABEL=" + \
     " SORT=ASC;" + \
     " GRAPH=general"+ \
     " TITLE=" + GraphTitle + \
     " SUBTITLE=" + GraphSubTitle, outputGraphName)

Outcomes