<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Graph Labels NOT Showing Correctly in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/graph-labels-not-showing-correctly/m-p/247814#M8508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe I was assisting your before.&amp;nbsp; I think the title of the axis's being lowercase is a bug.&amp;nbsp; I was able to reproduce this same behavior.&amp;nbsp; I would recommend following up with Tech Support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for the title, you can use the 'getValue' method to retrieve the value of your field.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy from arcpy import env env.overwriteOutput = 1 env.workspace = r"C:\temp\data.gdb"&amp;nbsp; table = "Meters"&amp;nbsp; fields = ["METER_NUMBER"]&amp;nbsp; list = []&amp;nbsp; rows = arcpy.SearchCursor(table) for row in rows: &amp;nbsp;&amp;nbsp;&amp;nbsp; list.append(row.METER_NUMBER)&amp;nbsp; del row, rows&amp;nbsp; #remove duplicates from list list = dict.fromkeys(list) list = list.keys()&amp;nbsp; for n in list: &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.TableSelect_analysis(table, r"in_memory\table_sel", "METER_NUMBER = " + str(n)) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; #get TWACs_Number value &amp;nbsp;&amp;nbsp;&amp;nbsp; for row in arcpy.SearchCursor(r"in_memory\table_sel"): &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TWACs_Number = row.getValue("TWACs_Number")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; out_graph_name = n &amp;nbsp;&amp;nbsp;&amp;nbsp; out_graph_pdf = r"C:\Temp" + "\\" + str(n) + ".pdf" &amp;nbsp;&amp;nbsp;&amp;nbsp; input_template = r"C:\Temp\KW Demand.grf" &amp;nbsp;&amp;nbsp;&amp;nbsp; input_data = r"in_memory\table_sel"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Create the graph &amp;nbsp;&amp;nbsp;&amp;nbsp; graph = arcpy.Graph()&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Add a vertical bar series to the graph &amp;nbsp;&amp;nbsp;&amp;nbsp; graph.addSeriesBarVertical(input_data, "KW_DEMAND")&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Specify the title of the left axis &amp;nbsp;&amp;nbsp;&amp;nbsp; graph.graphAxis[0].title = "KW Demand"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Specify the title of the bottom axis &amp;nbsp;&amp;nbsp;&amp;nbsp; graph.graphAxis[2].title = "Meter Number"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Specify the title of the Graph &amp;nbsp;&amp;nbsp;&amp;nbsp; graph.graphPropsGeneral.title = TWACs_Number&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Output a graph, which is created in-memory &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeGraph_management(input_template, graph, out_graph_name)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Save the graph as a PDF &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SaveGraph_management(out_graph_name, out_graph_pdf, "MAINTAIN_ASPECT_RATIO", 600, 375)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Sep 2013 16:41:47 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2013-09-10T16:41:47Z</dc:date>
    <item>
      <title>Graph Labels NOT Showing Correctly</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/graph-labels-not-showing-correctly/m-p/247813#M8507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Having issues with the titles (X-Axis) and (Y-Axis) in my graphs not working properly. I have it set in a Python script to make it "KWH_USAGE" but when the graph is created - it shows "kwh_usage"... Why is it only showing everything as lower case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also - I want to include the data from a specific field in a feature class to show in the title. So if I have 14884512 in a field called "TWACs_Number" - I want the title to include that. How would I write that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 15:21:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/graph-labels-not-showing-correctly/m-p/247813#M8507</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2013-09-10T15:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Labels NOT Showing Correctly</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/graph-labels-not-showing-correctly/m-p/247814#M8508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe I was assisting your before.&amp;nbsp; I think the title of the axis's being lowercase is a bug.&amp;nbsp; I was able to reproduce this same behavior.&amp;nbsp; I would recommend following up with Tech Support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for the title, you can use the 'getValue' method to retrieve the value of your field.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy from arcpy import env env.overwriteOutput = 1 env.workspace = r"C:\temp\data.gdb"&amp;nbsp; table = "Meters"&amp;nbsp; fields = ["METER_NUMBER"]&amp;nbsp; list = []&amp;nbsp; rows = arcpy.SearchCursor(table) for row in rows: &amp;nbsp;&amp;nbsp;&amp;nbsp; list.append(row.METER_NUMBER)&amp;nbsp; del row, rows&amp;nbsp; #remove duplicates from list list = dict.fromkeys(list) list = list.keys()&amp;nbsp; for n in list: &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.TableSelect_analysis(table, r"in_memory\table_sel", "METER_NUMBER = " + str(n)) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; #get TWACs_Number value &amp;nbsp;&amp;nbsp;&amp;nbsp; for row in arcpy.SearchCursor(r"in_memory\table_sel"): &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TWACs_Number = row.getValue("TWACs_Number")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; out_graph_name = n &amp;nbsp;&amp;nbsp;&amp;nbsp; out_graph_pdf = r"C:\Temp" + "\\" + str(n) + ".pdf" &amp;nbsp;&amp;nbsp;&amp;nbsp; input_template = r"C:\Temp\KW Demand.grf" &amp;nbsp;&amp;nbsp;&amp;nbsp; input_data = r"in_memory\table_sel"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Create the graph &amp;nbsp;&amp;nbsp;&amp;nbsp; graph = arcpy.Graph()&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Add a vertical bar series to the graph &amp;nbsp;&amp;nbsp;&amp;nbsp; graph.addSeriesBarVertical(input_data, "KW_DEMAND")&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Specify the title of the left axis &amp;nbsp;&amp;nbsp;&amp;nbsp; graph.graphAxis[0].title = "KW Demand"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Specify the title of the bottom axis &amp;nbsp;&amp;nbsp;&amp;nbsp; graph.graphAxis[2].title = "Meter Number"&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Specify the title of the Graph &amp;nbsp;&amp;nbsp;&amp;nbsp; graph.graphPropsGeneral.title = TWACs_Number&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Output a graph, which is created in-memory &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeGraph_management(input_template, graph, out_graph_name)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; # Save the graph as a PDF &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SaveGraph_management(out_graph_name, out_graph_pdf, "MAINTAIN_ASPECT_RATIO", 600, 375)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 16:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/graph-labels-not-showing-correctly/m-p/247814#M8508</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-09-10T16:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Labels NOT Showing Correctly</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/graph-labels-not-showing-correctly/m-p/247815#M8509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jake-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes - huge help on one of my previous posts to get the Python script to create the graph. Nice to know that there is a bug in the tool/script. I have been trying multiple different things for the past few days to get it to work. I will send a note to Tech Support and see what can be done. Thank you for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Chris,&lt;BR /&gt;&lt;BR /&gt;I believe I was assisting your before.&amp;nbsp; I think the title of the axis's being lowercase is a bug.&amp;nbsp; I was able to reproduce this same behavior.&amp;nbsp; I would recommend following up with Tech Support.&lt;BR /&gt;&lt;BR /&gt;As for the title, you can use the 'getValue' method to retrieve the value of your field.&amp;nbsp; Ex:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env
env.overwriteOutput = 1
env.workspace = r"C:\temp\data.gdb"

table = "Meters"

fields = ["METER_NUMBER"]

list = []

rows = arcpy.SearchCursor(table)
for row in rows:
&amp;nbsp;&amp;nbsp;&amp;nbsp; list.append(row.METER_NUMBER)

del row, rows

#remove duplicates from list
list = dict.fromkeys(list)
list = list.keys()

for n in list:
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.TableSelect_analysis(table, r"in_memory\table_sel", "METER_NUMBER = " + str(n))
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;#get TWACs_Number value
&amp;nbsp;&amp;nbsp;&amp;nbsp; for row in arcpy.SearchCursor(r"in_memory\table_sel"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TWACs_Number = row.getValue("TWACs_Number")&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; out_graph_name = n
&amp;nbsp;&amp;nbsp;&amp;nbsp; out_graph_pdf = r"C:\Temp" + "\\" + str(n) + ".pdf"
&amp;nbsp;&amp;nbsp;&amp;nbsp; input_template = r"C:\Temp\KW Demand.grf"
&amp;nbsp;&amp;nbsp;&amp;nbsp; input_data = r"in_memory\table_sel"

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Create the graph
&amp;nbsp;&amp;nbsp;&amp;nbsp; graph = arcpy.Graph()

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Add a vertical bar series to the graph
&amp;nbsp;&amp;nbsp;&amp;nbsp; graph.addSeriesBarVertical(input_data, "KW_DEMAND")

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Specify the title of the left axis
&amp;nbsp;&amp;nbsp;&amp;nbsp; graph.graphAxis[0].title = "KW Demand"

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Specify the title of the bottom axis
&amp;nbsp;&amp;nbsp;&amp;nbsp; graph.graphAxis[2].title = "Meter Number"

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Specify the title of the Graph
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;graph.graphPropsGeneral.title = TWACs_Number&lt;/STRONG&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Output a graph, which is created in-memory
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MakeGraph_management(input_template, graph, out_graph_name)

&amp;nbsp;&amp;nbsp;&amp;nbsp; # Save the graph as a PDF
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SaveGraph_management(out_graph_name, out_graph_pdf, "MAINTAIN_ASPECT_RATIO", 600, 375)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:20:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/graph-labels-not-showing-correctly/m-p/247815#M8509</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2021-12-11T12:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Labels NOT Showing Correctly</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/graph-labels-not-showing-correctly/m-p/247816#M8510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just ran into the same problem and am wondering if there is a workaround?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 20:41:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/graph-labels-not-showing-correctly/m-p/247816#M8510</guid>
      <dc:creator>FredGifford</dc:creator>
      <dc:date>2014-07-25T20:41:10Z</dc:date>
    </item>
  </channel>
</rss>

