AnsweredAssumed Answered

Matplotlib Script Tool Geoprocessing Service Won't Show Plot

Question asked by lloydbronn on Feb 8, 2017
Latest reply on Feb 9, 2017 by lloydbronn

I have a Python script GP tool that creates a chart with matplotlib. A user can click on any point on a web map and generate a chart. I'm trying to figure out how to show the plot in a popup window on the web, much like does if I run the script in IDLE. The problem is, keeps the Python script running until the plot is closed, so it can't be run from the web. Right now I'm just saving the chart to our web server folder and then linking to it from an URL. I've tried adding a popup window for this link in Javascript, but nothing works. It always replaces the map and loads the chart on the same web page. I'm looking at the mpld3 plugin for matplotlib. Has anyone used this successfully?