<?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: arcpy.CreateGraph_management - display? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118242#M9292</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting...in ArcMap 10.2.2 there is no arcpy.CreateGraph_management but there is an arcpy.MakeGraph_management&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Aug 2014 20:48:33 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2014-08-01T20:48:33Z</dc:date>
    <item>
      <title>arcpy.CreateGraph_management - display?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118239#M9289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Via a Python toolbox I am calling arcpy.CreateGraph_management('default.tee', graphobj, 'temp'), where graphobj is a graph object created using the arcpy.Graph() class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute my tool, the create graph call is made without error, but a graph is never displayed.&amp;nbsp; Additionally, the graph does not appear in the Graph Manager.&amp;nbsp; Oddly, when I start to type the CreateGraph command into the command prompt, I see that 'temp' is available as a '.grf' file to fulfill the first argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The CreateGraph documentation suggests that the graph needs to be added to the 'host application', but does not provide any guidance.&amp;nbsp; How can a PythonToolbox create a graph and then display it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 20:03:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118239#M9289</guid>
      <dc:creator>JayLaura</dc:creator>
      <dc:date>2014-08-01T20:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateGraph_management - display?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118240#M9290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have background geoprocessing turned on?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 20:18:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118240#M9290</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2014-08-01T20:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateGraph_management - display?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118241#M9291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No.&amp;nbsp; I have it turned off (deselected in Geoprocessing Options).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should add: ArcGIS 10.2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 20:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118241#M9291</guid>
      <dc:creator>JayLaura</dc:creator>
      <dc:date>2014-08-01T20:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateGraph_management - display?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118242#M9292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting...in ArcMap 10.2.2 there is no arcpy.CreateGraph_management but there is an arcpy.MakeGraph_management&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 20:48:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118242#M9292</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-01T20:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateGraph_management - display?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118243#M9293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am calling MakeGraph - apologies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.MakeGraph_management(graph_grf, graph, outgraphname)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 20:50:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118243#M9293</guid>
      <dc:creator>JayLaura</dc:creator>
      <dc:date>2014-08-01T20:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateGraph_management - display?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118244#M9294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000005t000000"&gt;Help topic&lt;/A&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The output graph is an in-memory graph that can be added to the host ArcGIS application or can be saved using the &lt;SPAN&gt;&lt;A class="xref" href="http://resources.arcgis.com/en/help/main/10.2/0017/00170000005v000000.htm" rel="/en/help/main/10.2/0017/00170000005v000000.htm"&gt;Save Graph&lt;/A&gt;&lt;/SPAN&gt; tool.&lt;/LI&gt;&lt;LI&gt;Make Graph can be used on a Windows platform only.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if you have to add it manually or do you have the default Arcmap setting of Add Results to Display checked on, or whether you have to go to Save Graph...You are in a better position to experiment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;addendum &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00210000000q000000"&gt; see this help topic as well&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 21:06:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118244#M9294</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-01T21:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateGraph_management - display?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118245#M9295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the info.&amp;nbsp; Those are the docs. that I have been referencing.&amp;nbsp; No guidance exists (as far as I can tell) for adding to the host ArcGIS application.&amp;nbsp; The graph does not appear to be a layer - so addable in the same way a layer is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saving puts the file on disk (not in grf format).&amp;nbsp; If I am forced to go the latter route, I would just use MatPlotLib as I get a lot more control over the final figure.&amp;nbsp; My preference would be to use the former, but experimentation so far has not gotten the figure to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an interactive session, in ArcMap, the graph displays without issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 21:37:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118245#M9295</guid>
      <dc:creator>JayLaura</dc:creator>
      <dc:date>2014-08-01T21:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateGraph_management - display?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118246#M9296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Creating_a_graph_using_geoprocessing_tools/003300000011000000/"&gt;ArcMap has to be open&lt;/A&gt; and you require an existing graph or a template.&amp;nbsp; So your last line pretty well sums up the expected behaviour&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2014 03:54:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118246#M9296</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-08-02T03:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateGraph_management - display?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118247#M9297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I think ArcMap is "the host application" that the graph will be added to, as Dan pointed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laura, you mentioned you would use matplotlib to make your plots. I always find that with matplotlib you need to write quite a bit of code to make even fairly basic plot. Have you got any predefined functions or hints that make plotting easier? We have some in &lt;A href="https://github.com/NERC-CEH/arcapi/blob/master/arcapi.py"&gt;arcapi library&lt;/A&gt;, but there is a space for enhancements. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Aug 2014 09:25:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118247#M9297</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2014-08-02T09:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateGraph_management - display?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118248#M9298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is running via a Python Toolbox in an instance of ArcMap.&amp;nbsp; So, ArcMap is open.&amp;nbsp; The existing graph, as per the documentation, can be an arcpy.Graph() object, which it is.&amp;nbsp; When running MakeGraph_management as a stand alone tool, via the Data Management toolbox, a new graph window is render.&amp;nbsp; When running the same tool within a PythonToolBox, a window is not rendered.&amp;nbsp; Given this, I am not seeing the expected behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I concur with all the answers that suggest that ArcMap is the host application.&amp;nbsp; The issue is that, via a Python Toolbox, MakeGraph_management is NOT opening a graph window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone else confirm this behavior in a running ArcMap instance using a PythonToolBox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 13:55:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118248#M9298</guid>
      <dc:creator>JayLaura</dc:creator>
      <dc:date>2014-08-04T13:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateGraph_management - display?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118249#M9299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Filip, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have additional helper functionality for MatPlotLib.&amp;nbsp; Using pyplot or pylab, I have not needed to abstract out much of my work.&amp;nbsp; In conjunction with Pandas, I am pretty well set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would love to see is a more robust library for conversion from MatPlotLib to D3.&amp;nbsp; At this point, the most robust method I have found is to pipe JSON to D3.&amp;nbsp; It would be amazing to have some D3 plotting functionality inline in ArcMap, a la a iPython notebook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 13:57:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118249#M9299</guid>
      <dc:creator>JayLaura</dc:creator>
      <dc:date>2014-08-04T13:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateGraph_management - display?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118250#M9300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I've been having the same issue.&amp;nbsp; This is what worked for me to add the graph to display...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;arcpy.env.addOutputsToMap = True&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;arcpy.MakeGraph_management(graph_grf, graph, outgraphname)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;arcpy.env.addOutputsToMap = False&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2015 04:32:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-creategraph-management-display/m-p/118250#M9300</guid>
      <dc:creator>SteveBoyton</dc:creator>
      <dc:date>2015-07-30T04:32:13Z</dc:date>
    </item>
  </channel>
</rss>

