added experiments with geom
This commit is contained in:
1 parent
0dc1740eba
commit
551594ce63
4 files changed
+163
-14
No files matched your search
+142
@@ -0,0 +1,142 @@
|
|||||||
|
{
|
||||||
|
"cells": [
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 1,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"(require '[thi.ng.geom.viz.core :as viz]\n",
|
||||||
|
" '[thi.ng.geom.svg.core :as svg]\n",
|
||||||
|
" '[thi.ng.geom.core.vector :as v]\n",
|
||||||
|
" '[thi.ng.color.core :as col]\n",
|
||||||
|
" '[thi.ng.math.core :as m :refer [PI TWO_PI]]\n",
|
||||||
|
" '[clojupyter.misc.display :as display])"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 24,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"text/plain": [
|
||||||
|
"#'user/spec"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"execution_count": 24,
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "execute_result"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"\n",
|
||||||
|
"(defn export-viz\n",
|
||||||
|
" [spec]\n",
|
||||||
|
" (->> spec\n",
|
||||||
|
" (viz/svg-plot2d-cartesian)\n",
|
||||||
|
" (svg/svg {:width 985 :height 600})\n",
|
||||||
|
" (svg/serialize)))\n",
|
||||||
|
"\n",
|
||||||
|
"(def spec\n",
|
||||||
|
" {:x-axis (viz/log-axis\n",
|
||||||
|
" {:domain [1 201]\n",
|
||||||
|
" :range [50 (- 985 10)]\n",
|
||||||
|
" :pos 550})\n",
|
||||||
|
" :y-axis (viz/linear-axis\n",
|
||||||
|
" {:domain [0.1 100]\n",
|
||||||
|
" :range [550 20]\n",
|
||||||
|
" :major 10\n",
|
||||||
|
" :minor 5\n",
|
||||||
|
" :pos 50\n",
|
||||||
|
" :label-dist 15\n",
|
||||||
|
" :label-style {:text-anchor \"end\"}})\n",
|
||||||
|
" :grid {:attribs {:stroke \"#caa\"}\n",
|
||||||
|
" :minor-x true\n",
|
||||||
|
" :minor-y true}\n",
|
||||||
|
" :data [{:values (map (juxt identity #(Math/sqrt %)) (range 0 200 2))\n",
|
||||||
|
" :attribs {:fill \"#0af\" :stroke \"none\"}\n",
|
||||||
|
" :layout viz/svg-scatter-plot}\n",
|
||||||
|
" {:values (map (juxt identity #(m/random %)) (range 0 200 2))\n",
|
||||||
|
" :attribs {:fill \"none\" :stroke \"#f60\"}\n",
|
||||||
|
" :shape (viz/svg-triangle-down 6)\n",
|
||||||
|
" :layout viz/svg-scatter-plot}]})"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 25,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"text/html": [
|
||||||
|
"<?xml version=\"1.0\"?>\n",
|
||||||
|
"<svg height=\"600\" version=\"1.1\" width=\"985\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\"><g><g stroke-dasharray=\"1 1\" stroke=\"#caa\"><line x1=\"170.90\" x2=\"170.90\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"241.62\" x2=\"241.62\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"291.80\" x2=\"291.80\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"330.72\" x2=\"330.72\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"362.52\" x2=\"362.52\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"389.40\" x2=\"389.40\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"412.70\" x2=\"412.70\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"433.24\" x2=\"433.24\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"572.51\" x2=\"572.51\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"643.24\" x2=\"643.24\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"693.41\" x2=\"693.41\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"732.33\" x2=\"732.33\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"764.13\" x2=\"764.13\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"791.02\" x2=\"791.02\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"814.31\" x2=\"814.31\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"834.85\" x2=\"834.85\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"974.13\" x2=\"974.13\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"50.00\" x2=\"50.00\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"451.62\" x2=\"451.62\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"853.23\" x2=\"853.23\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"524.00\" y2=\"524.00\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"470.95\" y2=\"470.95\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"417.90\" y2=\"417.90\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"364.84\" y2=\"364.84\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"311.79\" y2=\"311.79\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"258.74\" y2=\"258.74\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"205.69\" y2=\"205.69\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"152.63\" y2=\"152.63\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"99.58\" y2=\"99.58\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"46.53\" y2=\"46.53\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"497.48\" y2=\"497.48\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"444.42\" y2=\"444.42\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"391.37\" y2=\"391.37\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"338.32\" y2=\"338.32\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"285.27\" y2=\"285.27\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"232.21\" y2=\"232.21\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"179.16\" y2=\"179.16\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"126.11\" y2=\"126.11\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"73.05\" y2=\"73.05\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"20.00\" y2=\"20.00\" /></g><g fill=\"#0af\" stroke=\"none\"><circle cx=\"170.90\" cy=\"543.03\" r=\"3\" /><circle cx=\"291.80\" cy=\"539.92\" r=\"3\" /><circle cx=\"362.52\" cy=\"537.54\" r=\"3\" /><circle cx=\"412.70\" cy=\"535.52\" r=\"3\" /><circle cx=\"451.62\" cy=\"533.75\" r=\"3\" /><circle cx=\"483.42\" cy=\"532.15\" r=\"3\" /><circle cx=\"510.30\" cy=\"530.68\" r=\"3\" /><circle cx=\"533.59\" cy=\"529.31\" r=\"3\" /><circle cx=\"554.14\" cy=\"528.02\" r=\"3\" /><circle cx=\"572.51\" cy=\"526.80\" r=\"3\" /><circle cx=\"589.14\" cy=\"525.65\" r=\"3\" /><circle cx=\"604.31\" cy=\"524.54\" r=\"3\" /><circle cx=\"618.28\" cy=\"523.48\" r=\"3\" /><circle cx=\"631.20\" cy=\"522.46\" r=\"3\" /><circle cx=\"643.24\" cy=\"521.47\" r=\"3\" /><circle cx=\"654.49\" cy=\"520.52\" r=\"3\" /><circle cx=\"665.07\" cy=\"519.60\" r=\"3\" /><circle cx=\"675.04\" cy=\"518.70\" r=\"3\" /><circle cx=\"684.47\" cy=\"517.83\" r=\"3\" /><circle cx=\"693.41\" cy=\"516.98\" r=\"3\" /><circle cx=\"701.92\" cy=\"516.15\" r=\"3\" /><circle cx=\"710.04\" cy=\"515.34\" r=\"3\" /><circle cx=\"717.79\" cy=\"514.55\" r=\"3\" /><circle cx=\"725.21\" cy=\"513.77\" r=\"3\" /><circle cx=\"732.33\" cy=\"513.02\" r=\"3\" /><circle cx=\"739.17\" cy=\"512.27\" r=\"3\" /><circle cx=\"745.76\" cy=\"511.54\" r=\"3\" /><circle cx=\"752.10\" cy=\"510.83\" r=\"3\" /><circle cx=\"758.22\" cy=\"510.13\" r=\"3\" /><circle cx=\"764.13\" cy=\"509.44\" r=\"3\" /><circle cx=\"769.85\" cy=\"508.76\" r=\"3\" /><circle cx=\"775.39\" cy=\"508.09\" r=\"3\" /><circle cx=\"780.76\" cy=\"507.43\" r=\"3\" /><circle cx=\"785.96\" cy=\"506.78\" r=\"3\" /><circle cx=\"791.02\" cy=\"506.14\" r=\"3\" /><circle cx=\"795.93\" cy=\"505.51\" r=\"3\" /><circle cx=\"800.71\" cy=\"504.89\" r=\"3\" /><circle cx=\"805.36\" cy=\"504.28\" r=\"3\" /><circle cx=\"809.90\" cy=\"503.68\" r=\"3\" /><circle cx=\"814.31\" cy=\"503.08\" r=\"3\" /><circle cx=\"818.62\" cy=\"502.49\" r=\"3\" /><circle cx=\"822.82\" cy=\"501.91\" r=\"3\" /><circle cx=\"826.93\" cy=\"501.33\" r=\"3\" /><circle cx=\"830.93\" cy=\"500.76\" r=\"3\" /><circle cx=\"834.85\" cy=\"500.20\" r=\"3\" /><circle cx=\"838.69\" cy=\"499.64\" r=\"3\" /><circle cx=\"842.44\" cy=\"499.09\" r=\"3\" /><circle cx=\"846.11\" cy=\"498.55\" r=\"3\" /><circle cx=\"849.71\" cy=\"498.01\" r=\"3\" /><circle cx=Line truncated
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"execution_count": 25,
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "execute_result"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"(-> spec\n",
|
||||||
|
" (export-viz)\n",
|
||||||
|
" (display/make-html))"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 26,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"text/html": [
|
||||||
|
"<?xml version=\"1.0\"?>\n",
|
||||||
|
"<svg height=\"600\" version=\"1.1\" width=\"985\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\"><g><g stroke-dasharray=\"1 1\" stroke=\"#caa\"><line x1=\"170.90\" x2=\"170.90\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"241.62\" x2=\"241.62\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"291.80\" x2=\"291.80\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"330.72\" x2=\"330.72\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"362.52\" x2=\"362.52\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"389.40\" x2=\"389.40\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"412.70\" x2=\"412.70\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"433.24\" x2=\"433.24\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"572.51\" x2=\"572.51\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"643.24\" x2=\"643.24\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"693.41\" x2=\"693.41\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"732.33\" x2=\"732.33\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"764.13\" x2=\"764.13\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"791.02\" x2=\"791.02\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"814.31\" x2=\"814.31\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"834.85\" x2=\"834.85\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"974.13\" x2=\"974.13\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"50.00\" x2=\"50.00\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"451.62\" x2=\"451.62\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"853.23\" x2=\"853.23\" y1=\"550.00\" y2=\"20.00\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"496.89\" y2=\"496.89\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"465.83\" y2=\"465.83\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"443.79\" y2=\"443.79\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"426.69\" y2=\"426.69\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"412.72\" y2=\"412.72\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"400.91\" y2=\"400.91\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"390.68\" y2=\"390.68\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"381.66\" y2=\"381.66\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"320.48\" y2=\"320.48\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"289.42\" y2=\"289.42\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"267.38\" y2=\"267.38\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"250.28\" y2=\"250.28\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"236.31\" y2=\"236.31\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"224.50\" y2=\"224.50\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"214.27\" y2=\"214.27\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"205.25\" y2=\"205.25\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"144.07\" y2=\"144.07\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"113.00\" y2=\"113.00\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"90.96\" y2=\"90.96\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"73.87\" y2=\"73.87\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"59.90\" y2=\"59.90\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"48.09\" y2=\"48.09\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"37.86\" y2=\"37.86\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"28.83\" y2=\"28.83\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"550.00\" y2=\"550.00\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"373.59\" y2=\"373.59\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"197.17\" y2=\"197.17\" /><line x1=\"50.00\" x2=\"975.00\" y1=\"20.76\" y2=\"20.76\" /></g><g fill=\"#0af\" stroke=\"none\"><circle cx=\"170.90\" cy=\"347.03\" r=\"3\" /><circle cx=\"291.80\" cy=\"320.48\" r=\"3\" /><circle cx=\"362.52\" cy=\"304.95\" r=\"3\" /><circle cx=\"412.70\" cy=\"293.93\" r=\"3\" /><circle cx=\"451.62\" cy=\"285.38\" r=\"3\" /><circle cx=\"483.42\" cy=\"278.40\" r=\"3\" /><circle cx=\"510.30\" cy=\"272.49\" r=\"3\" /><circle cx=\"533.59\" cy=\"267.38\" r=\"3\" /><circle cx=\"554.14\" cy=\"262.86\" r=\"3\" /><circle cx=\"572.51\" cy=\"258.83\" r=\"3\" /><circle cx=\"589.14\" cy=\"255.18\" r=\"3\" /><circle cx=\"604.31\" cy=\"251.84\" r=\"3\" /><circle cx=\"618.28\" cy=\"248.78\" r=\"3\" /><circle cx=\"631.20\" cy=\"245.94\" r=\"3\" /><circle cx=\"643.24\" cy=\"243.30\" r=\"3\" /><circle cx=\"654.49\" cy=\"240.82\" r=\"3\" /><circle cx=\"665.07\" cy=\"238.50\" r=\"3\" /><circle cx=\"675.04\" cy=\"236.31\" r=\"3\" /><circle cx=\"684.47\" cy=\"234.24\" r=\"3\" /><circle cx=\"693.41\" cy=\"232.28\" r=\"3\" /><circle cx=\"701.92\" cy=\"230.41\" r=\"3\" /><circle cx=\"710.04\" cy=\"228.62\" r=\"3\" /><circle cx=\"717.79\" cy=\"226.92\" r=\"3\" /><circle cx=\"725.21\" cy=\"225.29\" r=\"3\" /><circle cx=\"732.33\" cy=\"223.73\" r=\"3\" /><circle cx=\"739.17\" cy=\"222.23\" r=\"3\" /><circle cx=\"745.76\" cy=\"220.78\" r=\"3\" /><circle cx=\"752.10\" cy=\"219.39\" r=\"3\" /><circle cx=\"758.22\" cy=\"218.04\" r=\"3\" /><circle cx=\"764.13\" cy=\"216.74\" r=\"3\" /><circle cx=\"769.85\" cy=\"215.49\" r=\"3\" /><circle cx=\"775.39\" cy=\"214.27\" r=\"3\" /><circle cx=\"780.76\" cy=\"213.09\" r=\"3\" /><circle cx=\"785.96\" cy=\"211.95\" r=\"3\" /><circle cx=\"791.02\" cy=\"210.84\" r=\"3\" /><circle cx=\"795.93\" cy=\"209.76\" r=\"3\" /><circle cx=\"800.71\" cy=\"208.71\" r=\"3\" /><circle cx=\"805.36\" cy=\"207.69\" r=\"3\" /><circle cx=\"809.90Line truncated
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"execution_count": 26,
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "execute_result"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"(-> spec\n",
|
||||||
|
" (assoc :y-axis (viz/log-axis\n",
|
||||||
|
" {:domain [0.1 101]\n",
|
||||||
|
" :range [550 20]\n",
|
||||||
|
" :pos 50\n",
|
||||||
|
" :label-dist 15\n",
|
||||||
|
" :label-style {:text-anchor \"end\"}}))\n",
|
||||||
|
" (export-viz)\n",
|
||||||
|
" (display/make-html))"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"metadata": {
|
||||||
|
"kernelspec": {
|
||||||
|
"display_name": "Lein-Clojure",
|
||||||
|
"language": "clojure",
|
||||||
|
"name": "lein-clojure"
|
||||||
|
},
|
||||||
|
"language_info": {
|
||||||
|
"file_extension": ".clj",
|
||||||
|
"mimetype": "text/x-clojure",
|
||||||
|
"name": "clojure",
|
||||||
|
"version": "1.9.0-RC1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nbformat": 4,
|
||||||
|
"nbformat_minor": 2
|
||||||
|
}
|
||||||
+8
-8
@@ -2,7 +2,7 @@
|
|||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 1,
|
"execution_count": 4,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 2,
|
"execution_count": 5,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
"<script src=\"https://code.highcharts.com/highcharts.js\"></script>"
|
"<script src=\"https://code.highcharts.com/highcharts.js\"></script>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 2,
|
"execution_count": 5,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 5,
|
"execution_count": 6,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
"#'user/plot-highchart"
|
"#'user/plot-highchart"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 5,
|
"execution_count": 6,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
@@ -59,16 +59,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 6,
|
"execution_count": 7,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"text/html": [
|
"text/html": [
|
||||||
"<div><div id=\"129fcd9b-cfbd-401c-b7f9-77e47fd4f966\" style=\"{:background-color "red"}\"></div><script>Highcharts.chart('129fcd9b-cfbd-401c-b7f9-77e47fd4f966', {\"chart\":{\"type\":\"line\"},\"title\":{\"text\":\"Plot of random data\"},\"series\":[{\"data\":[600.0802979890468,2785.389013339901,3724.857367908388,5985.603555749925,7334.329136017631,9634.43331036138,11632.424414838628,13018.046919330196,15172.278849084434,16677.0498215185,17290.266503995434,19078.072943776962,21724.92199871079,22962.62705156953,25315.96671303604,26112.54713621363,27657.440724070628,30699.038945326236,32369.193700334374,33800.485225470016,35039.08390962823,36238.560829416725,38805.617181208894,40104.18852326288,41966.927104944974,43760.35168683501,45669.52593257159,47931.241112593685,48093.765596453944,50552.68151757262,52618.13615096416,54538.862198847004,55615.1462957035,57871.24117925703,60018.393676455045,61546.8274448606,62934.42181064036,64203.15835133128,66802.0157215116,68506.02318771144,69307.71473189823,70771.75262450769,72162.58316457798,74740.667794496,76496.80905874955,78838.59832917634,80633.68714609183,80983.33352077876,83923.23898835508,85569.12361322394,86795.44888396862,88001.12441201405,89269.22491499192,92113.7597909834,92790.17378098961,94500.71366886036,97738.60992715358,98378.56480669587,100698.46713859537,102815.41587097303,103409.57936985882,105849.27978517415,107018.83014312397,108751.06825660712,110312.69934168007,112906.93810487595,114570.57091913065,115347.21684707148,117804.689622244,119055.43125265592,121297.80780759195,122091.95129344838,124428.34994479611,126671.84646485707,127587.40691682795,129068.70534824175,131420.18775991932,132236.92506452746,135537.88888293534,137003.43670163985,137921.54901857846,140369.65232777552,142233.6553969074,144016.82320462874,144410.43318324172,146924.77310759202,148097.32729688473,150552.46003021477,151975.67671430882,153102.93908702018,155900.55332082295,156276.51504561372,158898.81925531253,160254.2275697256,161574.33887326877,164538.89650848432,166259.71920510373,166666.93233835528,169365.7615223026,170834.71186683056,173187.8658416879,173712.8125296444,175870.88080361387,178355.64126395562,179766.3378204997,181339.39533205217,182641.71651831255,185045.8247083939,185895.48754249187,187563.46293919458,189850.36096992894,191515.95763821038,192610.6843525983,195219.51571283897,197155.6074146366,198190.5135883966,199486.8287302667,200924.78706435143,204168.9176838454,205478.35877356748,206195.8533434571,209294.29741799936,211049.11896027403,212090.4981462157,213100.05579731677,215611.46776711097,216572.91097622126,218260.2881355831,221295.8619141015,221963.97534362215,223987.080865147,225923.1748711948,227597.49725282824,228538.8184004026,230556.26524805411,233216.86497525012,234036.04805990995,236654.9663552744,237405.16424354212,239104.80682147868,241586.52267442486,242540.50873655992,243788.30471087137,245445.96005074945,247339.77737184407,249949.8739846094,251999.7659242527,252516.05176973974,255335.5501955527,257237.4768932571,258655.7217215005,260657.8671907037,260927.34958132735,263597.061474925,264692.2210935054,267352.59377282223,269051.57441553235,270665.04256238055,271891.31873620406,273076.83654297964,275453.9950288818,276675.3090468854,278024.4849221397,281312.6443705342,283006.6043241753,283326.23708383326,286491.1647689781,287242.73497592163,288458.8518022821,290122.0710574523,292472.4236559113,294274.0786791017,295417.40227119497,298484.3665774888,298602.806605945,300842.09925871535,303125.81444980117,304782.84850132786,305787.8562678689,308586.97206032113,309855.914838043,311220.8231255287,313740.1755967167,315418.8478073935,316374.14428555383,318592.19305214763,319885.48675533297,321548.3031816897,323212.78560680087,325545.1597709014,326989.83084999095,328987.9163546938,330445.7325888522,332357.8570826954,333911.86791193986,335510.588982341,337737.3411823799,339745.4454620149,341298.1788232182,342224.0834709178,343352.9069063556,346592.60684583866,347178.5372581809,349729.2169637244,350158.44062886795,352135.91462266137,354214.31068336725,355415.25128121587,358063.6711835985,359723.2131403899,361750.46599925746,363690.24076733785,363983.578819666,365999.9278991995,367444.097645974,369834.44721695094,371794.2704588695,373287.1355312797,374909.96076036216,377473.40444566775,378838.6348978555,379819.25933932234,381336.1849918871,383589.8121593502,384427.9703985433,386132.41627653106,388181.15992709546,390578.16122243693,391791.6561035207,393925.7252631345,395193.52521181235,396464.8411838699,398583.94282875146,401249.29853455117,401685.26409821084,404501.45208438905,406565.06725671684,406796.1711420384,408993.09137441183,411234.1416370062,413461.1474529966,414379.0854772839,416221.6422610484,417625.01016691845,419513.69739297393,420972.83168222406,422525.4108995704,424516.9749457561,427023.10056539567,427762.75530465116,429862.95333748753,432286.95631412824,434043.0133414028,434404.079648369,436974.56048738456,438411.8475435063Line truncated
|
"<div><div id=\"09acf154-e0ec-416f-b29e-e8c162d46a43\" style=\"{:background-color "red"}\"></div><script>Highcharts.chart('09acf154-e0ec-416f-b29e-e8c162d46a43', {\"chart\":{\"type\":\"line\"},\"title\":{\"text\":\"Plot of random data\"},\"series\":[{\"data\":[313.2395113147347,2504.7009852781107,4152.821102377371,5376.196615612254,8464.254219582623,9768.094838951929,11113.198348809794,12067.601243941033,14143.979022171661,16386.912132556674,18360.067655516305,20376.763144753553,22093.032303331147,23204.727540625605,24040.973452088074,26028.95976392403,28755.172578540987,30496.66801988258,31856.66218625194,33034.12453701488,35239.096444381954,37544.19473349313,38724.90069792185,40343.2025343159,42347.257647426246,43137.785124283364,44849.91082974311,46694.8639565556,49341.70606096406,50721.93665814907,52922.740732123275,53772.835738316,55006.246408445484,56815.49533837548,58867.00727873466,60277.004753854635,61818.141527049294,63828.52016455682,65852.18180700757,68349.96599181883,68761.13607398554,71646.7257731006,73262.95526183411,74614.83419042394,75850.7530237446,78678.00295078671,79214.20672950803,81345.90580857164,83386.61501531962,84460.59876859782,87020.7124535066,88475.15399350673,90290.9690108852,92007.24484232735,94368.97120990983,95658.55771257218,96269.64359688805,98743.85471212097,99683.38493054196,101518.9112809803,103953.34346714313,105403.36813874221,106582.52125885527,109478.03006806974,109939.4871698227,111546.9013934005,114267.2994550725,116171.16243139985,117521.71936571384,119005.57143888187,121715.67741451785,122023.93760164388,123833.77970500365,126263.1922534394,128273.78227698358,129075.32368232148,130446.58683070935,132368.4988052163,135355.4149434654,135948.83990407235,138782.19581078793,139379.637704625,142246.47210656657,142704.6608400633,144369.71388880225,147131.36820544547,148666.06717063586,149443.27107824053,151638.30983304715,154400.75155851687,155689.99603975247,157776.97205025022,159301.1281206123,159702.062076412,161818.68035318877,164110.81352674446,165967.2197442986,166754.23629170927,168642.83563929368,171039.41589723443,173226.52739486875,173778.3831685787,175517.8485193912,176766.6690070837,179917.51386752137,180602.7103240123,183602.2121971517,184543.43869224098,185956.1973633656,187453.67883572326,190390.35600968602,190666.1801654455,193487.15912590205,195363.2801571708,196063.81898236135,198638.7536402417,199875.51442393617,201031.0368897575,203008.95612831457,204878.75563862003,207465.88803306452,208273.66043329868,210416.22800376246,211108.32511893273,214118.1119956714,214879.25578898354,216629.613808851,218171.6519222628,221085.66369036087,221428.54559228558,223978.8006388775,226419.3111817297,227987.78813599292,228276.7931618709,230237.54053581183,232717.06477541503,234123.79971172006,235274.93550973767,237372.929108563,240025.91758208224,240712.23281685793,242038.89483376459,243714.34956633512,246796.98401154246,247620.3142019931,250452.1188842069,252033.43734324622,252321.11621367402,255632.65280021,256140.10793669574,259023.65993701178,260429.2639218104,261232.09546361805,264255.017023758,265859.9698696644,266019.1810464599,268190.3725705906,269417.3812797348,271469.4765199665,273651.36314249964,275971.45721509866,277600.59140428784,278437.19579362136,281239.99505401275,282708.48894539487,283719.95608700806,284978.67544430855,286799.20676204574,289197.6623641349,291054.0181994101,291941.6569040192,294415.08086693066,295287.6580124654,298141.2497821939,299987.9219808421,300535.6238531297,303478.9925435666,304936.3325278433,306294.0877280068,307564.3084559974,309264.0920282911,312000.9367832274,313892.3493751183,315527.81357050413,316459.942082197,318372.2460911695,319557.0354501911,322317.2329506197,323122.8449392918,324786.4285129783,326394.32722258824,328670.2930639095,329653.1142962725,332861.84083283396,332994.60812665586,334666.01575559675,337580.4640188181,338851.9565257045,340803.6465284919,342054.77992485114,344148.3983517749,345796.84199719393,346912.1791706609,348581.88187996636,351760.0863718422,352226.461402528,354485.4504937239,356701.462864075,357993.00474950916,359239.1736158276,361278.87627227866,363564.0670628953,365143.0580684601,367062.49058697926,368117.2387190761,369827.1132745863,371844.9375680767,373080.49968484405,374972.68286947446,377419.20718844736,378386.15392942395,379627.3086448944,382069.2729357773,382842.4911597019,385907.48152950243,387042.45407319267,388212.98021782405,391086.1236381219,391670.47650472156,393670.422442097,394983.71255563496,396812.4980937629,399037.28231666464,400370.2621060802,402878.35844486346,404465.9576994709,406541.11207664455,406766.72514605813,409760.8079824908,410293.5308100678,412767.5977086731,413945.4571319846,415836.5242910624,418386.6063883836,418749.62172973895,420907.46137876145,423417.4800422221,424595.4885311342,426257.298308546,427960.3956694186,430014.1340384843,430803.4141457908,432940.4459711254,434660.21728632785,436056.6134602157,437920.8864979652,439493.1952886935Line truncated
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 6,
|
"execution_count": 7,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-6
@@ -32,7 +32,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 6,
|
"execution_count": 2,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
"#'user/plotly-cred"
|
"#'user/plotly-cred"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 6,
|
"execution_count": 2,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
@@ -111,8 +111,7 @@
|
|||||||
" (:embed_url)\n",
|
" (:embed_url)\n",
|
||||||
" to-iframe \n",
|
" to-iframe \n",
|
||||||
" (hiccup/html)\n",
|
" (hiccup/html)\n",
|
||||||
" (display/make-html))))\n",
|
" (display/make-html))))"
|
||||||
" "
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -125,7 +124,7 @@
|
|||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"text/html": [
|
"text/html": [
|
||||||
"<iframe frameborder=\"0\" height=\"200\" scrolling=\"no\" src=\"https://plot.ly/~didier/78.embed\" width=\"100%\"></iframe>"
|
"<iframe frameborder=\"0\" height=\"200\" scrolling=\"no\" src=\"https://plot.ly/~didier/80.embed\" width=\"100%\"></iframe>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 4,
|
"execution_count": 4,
|
||||||
@@ -159,7 +158,7 @@
|
|||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"text/html": [
|
"text/html": [
|
||||||
"<iframe frameborder=\"0\" height=\"200\" scrolling=\"no\" src=\"https://plot.ly/~didier/79.embed\" width=\"100%\"></iframe>"
|
"<iframe frameborder=\"0\" height=\"200\" scrolling=\"no\" src=\"https://plot.ly/~didier/81.embed\" width=\"100%\"></iframe>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 5,
|
"execution_count": 5,
|
||||||
@@ -187,6 +186,13 @@
|
|||||||
" (plot-response)))\n",
|
" (plot-response)))\n",
|
||||||
"plot-data"
|
"plot-data"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
:url "http://www.eclipse.org/legal/epl-v10.html"}
|
||||||
:dependencies [[org.clojure/clojure "1.9.0-RC1"]
|
:dependencies [[org.clojure/clojure "1.9.0-RC1"]
|
||||||
[clj-http "3.7.0"]
|
[clj-http "3.7.0"]
|
||||||
|
[thi.ng/geom "0.0.908"]
|
||||||
[hiccup "1.0.5"]]
|
[hiccup "1.0.5"]]
|
||||||
:main ^:skip-aot graphly.core
|
:main ^:skip-aot graphly.core
|
||||||
:plugins [[lein-jupyter "0.1.10"]]
|
:plugins [[lein-jupyter "0.1.10"]]
|
||||||
|
|||||||
Reference in new issue
Block a user