Skip to content

Instantly share code, notes, and snippets.

@antoinecourtin
Last active March 16, 2022 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antoinecourtin/033fe7dfb710509ff6a9ef8cdccca135 to your computer and use it in GitHub Desktop.
Save antoinecourtin/033fe7dfb710509ff6a9ef8cdccca135 to your computer and use it in GitHub Desktop.
Autogenerated from www.imagegraph.cc, My sketch title
{"caption":"My sketch title","offset":{"x":0,"y":0},"nodes":{"d700c4d6-7d81-4490-9df9-2cfd08ba76de":{"id":"d700c4d6-7d81-4490-9df9-2cfd08ba76de","position":{"x":757,"y":304},"type":"loadIIIFManifest","ports":{"port1":{"id":"port1","type":"bottom","properties":{"type":"imL"},"position":{"x":24,"y":106}}},"properties":{"text":"Loads a IIIF manifest. Paste in any IIIF manifest URL, which you can get from most libraries. ","form":"string","innerDefault":"https://iiif.bodleian.ox.ac.uk/iiif/manifest/e32a277e-91e2-4a6d-8ba6-cc4bad230410.json","viewer":"https://universalviewer.io/uv.html?manifest=","innerValue":"https://iiif.bodleian.ox.ac.uk/iiif/manifest/e32a277e-91e2-4a6d-8ba6-cc4bad230410.json"}},"c48f90b8-b61f-488a-8c3a-a64ae57d36a5":{"id":"c48f90b8-b61f-488a-8c3a-a64ae57d36a5","position":{"x":1016,"y":522},"type":"getRGB","ports":{"port1":{"id":"port1","type":"top","properties":{"type":"imL"},"position":{"x":24,"y":-12}},"port2":{"id":"port2","type":"bottom","properties":{"type":"fL"},"position":{"x":24,"y":59}},"port3":{"id":"port3","type":"bottom","properties":{"type":"fL"},"position":{"x":90,"y":59}},"port4":{"id":"port4","type":"bottom","properties":{"type":"fL"},"position":{"x":156,"y":59}}},"properties":{"text":"Extracts the average R, G, B color values for each image given. ","form":"none"}},"3ddbbd2f-8df4-404e-b2c3-9e87d423b59c":{"id":"3ddbbd2f-8df4-404e-b2c3-9e87d423b59c","position":{"x":1060,"y":716},"type":"scatterPlot","ports":{"port1":{"id":"port1","type":"top","properties":{"type":"fL"},"position":{"x":24,"y":-12}},"port2":{"id":"port2","type":"top","properties":{"type":"fL"},"position":{"x":156,"y":-12}}},"properties":{"text":"A simple x-y plot. ","form":"none"}},"f41959be-14e5-49e4-9d9f-034bec8e5414":{"id":"f41959be-14e5-49e4-9d9f-034bec8e5414","position":{"x":1402,"y":290},"type":"loadIIIFManifest","ports":{"port1":{"id":"port1","type":"bottom","properties":{"type":"imL"},"position":{"x":24,"y":106}}},"properties":{"text":"Loads a IIIF manifest. Paste in any IIIF manifest URL, which you can get from most libraries. ","form":"string","innerDefault":"https://iiif.bodleian.ox.ac.uk/iiif/manifest/e32a277e-91e2-4a6d-8ba6-cc4bad230410.json","viewer":"https://universalviewer.io/uv.html?manifest=","innerValue":"https://iiif.bodleian.ox.ac.uk/iiif/manifest/b7605259-10a3-4343-8197-15bc1bf487b1.json"}}},"selected":{},"links":{"6d76f8f1-b8da-49a3-bba7-2b71409c263a":{"id":"6d76f8f1-b8da-49a3-bba7-2b71409c263a","from":{"nodeId":"d700c4d6-7d81-4490-9df9-2cfd08ba76de","portId":"port1"},"to":{"nodeId":"c48f90b8-b61f-488a-8c3a-a64ae57d36a5","portId":"port1"}},"fa1a92ed-13e5-4e97-a0da-e59e3d824e30":{"id":"fa1a92ed-13e5-4e97-a0da-e59e3d824e30","from":{"nodeId":"c48f90b8-b61f-488a-8c3a-a64ae57d36a5","portId":"port2"},"to":{"nodeId":"3ddbbd2f-8df4-404e-b2c3-9e87d423b59c","portId":"port1"}},"1fad2910-5f0d-429a-b078-4d40c985e18d":{"id":"1fad2910-5f0d-429a-b078-4d40c985e18d","from":{"nodeId":"c48f90b8-b61f-488a-8c3a-a64ae57d36a5","portId":"port4"},"to":{"nodeId":"3ddbbd2f-8df4-404e-b2c3-9e87d423b59c","portId":"port2"}},"5fd652fa-e094-4dcb-a59c-a87bdf27975e":{"id":"5fd652fa-e094-4dcb-a59c-a87bdf27975e","from":{"nodeId":"f41959be-14e5-49e4-9d9f-034bec8e5414","portId":"port1"},"to":{"nodeId":"c48f90b8-b61f-488a-8c3a-a64ae57d36a5","portId":"port1"}}},"hovered":{}}
Display the source blob
Display the rendered blob
Raw
{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "name": "ImageGraph.ipynb", "version": "0.3.2", "provenance": [], "collapsed_sections": [] }, "kernelspec": { "name": "python3", "display_name": "Python 3" } }, "cells": [ { "cell_type": "code", "metadata": { "id": "gsUbIGfNqSjV", "colab_type": "code", "colab": { "base_uri": "https://localhost:8080/", "height": 34 }, "outputId": "a306f9c8-c721-4280-fba4-f175cffa7090" }, "source": [ " !pip install -q -U git+https:\/\/github.com\/leoimpett\/pyimagegraph\nimport imagegraph as ig\nimL00 = ig.loadIIIFManifest(\"https:\/\/iiif.bodleian.ox.ac.uk\/iiif\/manifest\/e32a277e-91e2-4a6d-8ba6-cc4bad230410.json\")\nimL04 = ig.loadIIIFManifest(\"https:\/\/iiif.bodleian.ox.ac.uk\/iiif\/manifest\/b7605259-10a3-4343-8197-15bc1bf487b1.json\")\nfL01,fL02,fL03 = ig.getRGB(imL04)\n_ = ig.scatterPlot(fL01,fL03) " ], "execution_count": 0, "outputs": [ { "output_type": "stream", "text": [ " " ], "name": "stdout" } ] } ]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment