Here is an example of the average size of data retrieval from mpld3 , which I use to place calls on graphs . A simple approach to getting data is to place it in the prompt browser:
function save_callouts(callouts) { function callout_py(d) { return "plt.text(" + dx + ", " + dy + ", '" + ds + "', va='center')\n" + "plt.plot([" + d.x1 + ", " + d.x2 + "], [" + d.y1 + ", " + d.y2 + "], 'k-')\n" } prompt("Copy code to generate callouts:", callouts.map(callout_py).join("\n")); }
There may be easier ways to accomplish this, but prompt , followed by copy and paste on the user part, does the job.
source share