Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Graph, changing item names in legend

$
0
0
I'm having python produce a multi-series graph. How do you change the series name in the legend, the default being Vertical Bar, Vertical Bar1, Vertical Bar2....

Thank you for the help!
Code:

arcpy.MakeGraph_management(graphTemplatePath,
                                      '''SERIES=bar:vertical DATA={0}
                                      X=ParkUnit Y=Coverage LABEL=ParkUnit SORT=ASC;
                                      SERIES=bar:vertical DATA={1} X=ParkUnit Y=Coverage;
                                      SERIES=bar:vertical DATA={2} X=ParkUnit Y=Coverage;
                                      SERIES=bar:vertical DATA={3} X=ParkUnit Y=Coverage;
                                      SERIES=bar:vertical DATA={4} X=ParkUnit Y=Coverage;
                                      GRAPH=general TITLE={5}, Total Coverage by Unit;
                                      LEGEND=general TITLE=Year Total Coverage;
                                      '''.format(scratchReport + str(year),
                                      scratchReport + str(year-1),
                                      scratchReport + str(year-2),
                                      scratchReport + str(year-3),
                                      scratchReport + str(year-4),
                                      exoticPlant),"graphTemp")

Attachment 20585
Attached Thumbnails
Click image for larger version

Name:	Kudzu_Unit_TotalCoverage_Series.jpg‎
Views:	N/A
Size:	54.8 KB
ID:	20585  

Viewing all articles
Browse latest Browse all 2485

Trending Articles