<?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: Making Graphs with Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/making-graphs-with-python/m-p/409640#M32299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try it using proper path syntax (ie. no backslashes, unless you put "r" in front, or escape with a second backslash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) "C:/Path/path"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) "C:\\path\\path"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) r"C:\path\path"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 Jul 2012 20:21:17 GMT</pubDate>
    <dc:creator>DarrenWiens2</dc:creator>
    <dc:date>2012-07-22T20:21:17Z</dc:date>
    <item>
      <title>Making Graphs with Python</title>
      <link>https://community.esri.com/t5/python-questions/making-graphs-with-python/m-p/409639#M32298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've made some changes to the python script below and I keep getting an error that says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Executing: Script&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start Time: Sun Jul 22 16:28:51 2012&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Running script Script...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;type 'exceptions.SyntaxError'&amp;gt;: invalid syntax (GraphTemp.py, line 2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Script).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Sun Jul 22 16:28:51 2012 (Elapsed Time: 0.00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the first time I've tried to use Python. So, sorry if this is really basic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Set local variables:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;output_graph_name = "VerticalLineGraph"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;verticalLineGraph_bmp = "C:/temp/VerticalLineGraph.bmp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inputTemplate = "C:\GIS\GwinnettStormDrainage\ConduitModel\GraphOfConduitVertexPoints.grf"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inputData = "C:\GIS\GwinnettStormDrainage\TestData\PointFiles\2304296.shp"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Create the graph&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;graph = arcpy.Graph()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Add vertical line series to the graph&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;addSeriesLineVertical (inputData, "Invert", "Distance", Asc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;addSeriesLineVertical (inputData, "Crown", "Distance", Asc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;addSeriesLineVertical (inputData, "GrElev", "Distance", Asc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Specify the title of the left axis&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;graph.graphAxis[0] = "Elevation"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Specify the title of the bottom axis&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;graph.graphAxis[2] = "Distance"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Specify the title of the Graph&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;graph.graphPropsGeneral.title = "Facility ID"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Output a graph, which is created in-memory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.MakeGraph_management(inputTemplate, graph, output_graph_name)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Save the graph as an image&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.SaveGraph_management(output_graph_name, verticalBarGraph_bmp, "MAINTAIN_ASPECT_RATIO", "600", "375")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick Jones&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jul 2012 19:41:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/making-graphs-with-python/m-p/409639#M32298</guid>
      <dc:creator>NickJones</dc:creator>
      <dc:date>2012-07-22T19:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Making Graphs with Python</title>
      <link>https://community.esri.com/t5/python-questions/making-graphs-with-python/m-p/409640#M32299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try it using proper path syntax (ie. no backslashes, unless you put "r" in front, or escape with a second backslash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) "C:/Path/path"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) "C:\\path\\path"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) r"C:\path\path"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jul 2012 20:21:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/making-graphs-with-python/m-p/409640#M32299</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2012-07-22T20:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Making Graphs with Python</title>
      <link>https://community.esri.com/t5/python-questions/making-graphs-with-python/m-p/409641#M32300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I changed all of the slashes, and I still got the error.&amp;nbsp; I got the script from here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Graph/000v0000013w000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Graph/000v0000013w000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick Jones&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Jul 2012 20:55:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/making-graphs-with-python/m-p/409641#M32300</guid>
      <dc:creator>NickJones</dc:creator>
      <dc:date>2012-07-22T20:55:56Z</dc:date>
    </item>
  </channel>
</rss>

