<?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: Struggling to Make Graph in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/struggling-to-make-graph/m-p/623525#M48623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You may want to check out matplotlib, which is a python library for plotting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://matplotlib.sourceforge.net/gallery.html"&gt;http://matplotlib.sourceforge.net/gallery.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The gallery includes code with the examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2012 13:40:34 GMT</pubDate>
    <dc:creator>ChrisBater</dc:creator>
    <dc:date>2012-06-15T13:40:34Z</dc:date>
    <item>
      <title>Struggling to Make Graph</title>
      <link>https://community.esri.com/t5/python-questions/struggling-to-make-graph/m-p/623524#M48622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attempting to learn how to make a graph using arcpy.&amp;nbsp; I created a vertical bar template and I am trying to make a bar graph of some precipitation data.&amp;nbsp; I keep getting an error of "&amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 001020: Input series error. Incompatible parameter list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click 'Always reset parameters...' check-box to reset parameters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (MakeGraph).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not even sure were this "Always reset parameters..." check-box is???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a very simple code that I wrote that I can't get to work.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
# Import system modules
import arcpy
from arcpy import env
 
# Set environment settings
env.workspace = "c:/reacch/graphs"

# Set local variables
output_graph_name = "1910precip"
verticalBarGraph_bmp = "C:/reacch/graphs/1910precip.bmp"
graph_grf = "standard_bar.tee"
inputData = "C:/reacch/climate maps/precip1910" 
# Create the graph
graph = arcpy.Graph()

# Add a vertical bar series to the graph
graph.addSeriesBarVertical(inputData, "COUNT")


# Execute MakeGraph to create a Vertical Bar graph
arcpy.MakeGraph_management(graph_grf,graph,"Precip")
arcpy.SaveGraph_management(output_graph_name, verticalBarGraph_bmp)
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be very much appreciated!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 19:24:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/struggling-to-make-graph/m-p/623524#M48622</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2012-06-14T19:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling to Make Graph</title>
      <link>https://community.esri.com/t5/python-questions/struggling-to-make-graph/m-p/623525#M48623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You may want to check out matplotlib, which is a python library for plotting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://matplotlib.sourceforge.net/gallery.html"&gt;http://matplotlib.sourceforge.net/gallery.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The gallery includes code with the examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2012 13:40:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/struggling-to-make-graph/m-p/623525#M48623</guid>
      <dc:creator>ChrisBater</dc:creator>
      <dc:date>2012-06-15T13:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling to Make Graph</title>
      <link>https://community.esri.com/t5/python-questions/struggling-to-make-graph/m-p/623526#M48624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response.&amp;nbsp; I would like to learn how to make these graphs through arcpy though.&amp;nbsp; I am no longer getting an error now, but I can't seem to figure out how to add input data to the graph template.&amp;nbsp; Here is my easy script for a vertical bar graph of population in various cities, in a cities point file.&amp;nbsp; When I run the script it just saves a blank vertical bar graph template, without the population data from the cities being input at all.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
# Set local variables:
inputTemplate = "C:/reacch/graphs/VerticalBarTemplate.tee"
inputdata=arcpy.GetParameterAsText(0)
# Add a vertical bar series to the graph
graph= arcpy.Graph()
graph.addSeriesBarVertical(inputdata, "POP2000")

# Output a graph, which is created in-memory
arcpy.MakeGraph_management(inputTemplate, graph, "city_pop")
arcpy.AddMessage("here")
# Save the graph as an image
arcpy.SaveGraph_management("city_pop","C:/reacch/graphs/city_pop.jpg")
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone knows why the input data is not being loaded into the graph template please let me know.&amp;nbsp; Thank you in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:34:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/struggling-to-make-graph/m-p/623526#M48624</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2021-12-12T02:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling to Make Graph</title>
      <link>https://community.esri.com/t5/python-questions/struggling-to-make-graph/m-p/623527#M48625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to create a script with arcpy but appears the same error message. Could you help me please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am attempting to learn how to make a graph using arcpy.&amp;nbsp; I created a vertical bar template and I am trying to make a bar graph of some precipitation data.&amp;nbsp; I keep getting an error of "&amp;lt;class 'arcgisscripting.ExecuteError'&amp;gt;: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 001020: Input series error. Incompatible parameter list.&lt;BR /&gt;Click 'Always reset parameters...' check-box to reset parameters.&lt;BR /&gt;Failed to execute (MakeGraph).&lt;BR /&gt;&lt;BR /&gt;I am not even sure were this "Always reset parameters..." check-box is???&lt;BR /&gt;&lt;BR /&gt;Here is a very simple code that I wrote that I can't get to work.&amp;nbsp; &lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
# Import system modules
import arcpy
from arcpy import env
 
# Set environment settings
env.workspace = "c:/reacch/graphs"

# Set local variables
output_graph_name = "1910precip"
verticalBarGraph_bmp = "C:/reacch/graphs/1910precip.bmp"
graph_grf = "standard_bar.tee"
inputData = "C:/reacch/climate maps/precip1910" 
# Create the graph
graph = arcpy.Graph()

# Add a vertical bar series to the graph
graph.addSeriesBarVertical(inputData, "COUNT")


# Execute MakeGraph to create a Vertical Bar graph
arcpy.MakeGraph_management(graph_grf,graph,"Precip")
arcpy.SaveGraph_management(output_graph_name, verticalBarGraph_bmp)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Any help would be very much appreciated!!!&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:34:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/struggling-to-make-graph/m-p/623527#M48625</guid>
      <dc:creator>AnaMartins</dc:creator>
      <dc:date>2021-12-12T02:34:48Z</dc:date>
    </item>
  </channel>
</rss>

