Files
graphly/geom.ipynb
T

143 lines
35 KiB
Plaintext

{
"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=\"853.23\" cy=\"497.48\" r=\"3\" /><circle cx=\"856.69\" cy=\"496.95\" r=\"3\" /><circle cx=\"860.07\" cy=\"496.43\" r=\"3\" /><circle cx=\"863.39\" cy=\"495.91\" r=\"3\" /><circle cx=\"866.66\" cy=\"495.40\" r=\"3\" /><circle cx=\"869.86\" cy=\"494.89\" r=\"3\" /><circle cx=\"873.00\" cy=\"494.38\" r=\"3\" /><circle cx=\"876.09\" cy=\"493.89\" r=\"3\" /><circle cx=\"879.12\" cy=\"493.39\" r=\"3\" /><circle cx=\"882.10\" cy=\"492.90\" r=\"3\" /><circle cx=\"885.03\" cy=\"492.41\" r=\"3\" /><circle cx=\"887.92\" cy=\"491.93\" r=\"3\" /><circle cx=\"890.75\" cy=\"491.45\" r=\"3\" /><circle cx=\"893.54\" cy=\"490.98\" r=\"3\" /><circle cx=\"896.29\" cy=\"490.51\" r=\"3\" /><circle cx=\"898.99\" cy=\"490.04\" r=\"3\" /><circle cx=\"901.66\" cy=\"489.58\" r=\"3\" /><circle cx=\"904.28\" cy=\"489.12\" r=\"3\" /><circle cx=\"906.86\" cy=\"488.66\" r=\"3\" /><circle cx=\"909.41\" cy=\"488.21\" r=\"3\" /><circle cx=\"911.92\" cy=\"487.76\" r=\"3\" /><circle cx=\"914.39\" cy=\"487.31\" r=\"3\" /><circle cx=\"916.83\" cy=\"486.87\" r=\"3\" /><circle cx=\"919.24\" cy=\"486.43\" r=\"3\" /><circle cx=\"921.61\" cy=\"485.99\" r=\"3\" /><circle cx=\"923.95\" cy=\"485.55\" r=\"3\" /><circle cx=\"926.26\" cy=\"485.12\" r=\"3\" /><circle cx=\"928.54\" cy=\"484.69\" r=\"3\" /><circle cx=\"930.79\" cy=\"484.27\" r=\"3\" /><circle cx=\"933.02\" cy=\"483.84\" r=\"3\" /><circle cx=\"935.21\" cy=\"483.42\" r=\"3\" /><circle cx=\"937.38\" cy=\"483.01\" r=\"3\" /><circle cx=\"939.52\" cy=\"482.59\" r=\"3\" /><circle cx=\"941.63\" cy=\"482.18\" r=\"3\" /><circle cx=\"943.72\" cy=\"481.77\" r=\"3\" /><circle cx=\"945.78\" cy=\"481.36\" r=\"3\" /><circle cx=\"947.82\" cy=\"480.95\" r=\"3\" /><circle cx=\"949.84\" cy=\"480.55\" r=\"3\" /><circle cx=\"951.83\" cy=\"480.15\" r=\"3\" /><circle cx=\"953.80\" cy=\"479.75\" r=\"3\" /><circle cx=\"955.75\" cy=\"479.35\" r=\"3\" /><circle cx=\"957.68\" cy=\"478.96\" r=\"3\" /><circle cx=\"959.59\" cy=\"478.57\" r=\"3\" /><circle cx=\"961.47\" cy=\"478.18\" r=\"3\" /><circle cx=\"963.34\" cy=\"477.79\" r=\"3\" /><circle cx=\"965.18\" cy=\"477.40\" r=\"3\" /><circle cx=\"967.01\" cy=\"477.02\" r=\"3\" /><circle cx=\"968.82\" cy=\"476.64\" r=\"3\" /><circle cx=\"970.61\" cy=\"476.26\" r=\"3\" /><circle cx=\"972.38\" cy=\"475.88\" r=\"3\" /></g><g fill=\"none\" stroke=\"#f60\"><polygon points=\"167.90,543.13 173.90,543.13 170.90,548.33\" /><polygon points=\"288.80,528.28 294.80,528.28 291.80,533.47\" /><polygon points=\"359.52,516.09 365.52,516.09 362.52,521.28\" /><polygon points=\"409.70,511.07 415.70,511.07 412.70,516.27\" /><polygon points=\"448.62,533.03 454.62,533.03 451.62,538.22\" /><polygon points=\"480.42,503.63 486.42,503.63 483.42,508.83\" /><polygon points=\"507.30,505.82 513.30,505.82 510.30,511.01\" /><polygon points=\"530.59,494.13 536.59,494.13 533.59,499.32\" /><polygon points=\"551.14,537.42 557.14,537.42 554.14,542.62\" /><polygon points=\"569.51,519.79 575.51,519.79 572.51,524.99\" /><polygon points=\"586.14,463.28 592.14,463.28 589.14,468.48\" /><polygon points=\"601.31,428.11 607.31,428.11 604.31,433.30\" /><polygon points=\"615.28,439.78 621.28,439.78 618.28,444.97\" /><polygon points=\"628.20,511.72 634.20,511.72 631.20,516.92\" /><polygon points=\"640.24,499.09 646.24,499.09 643.24,504.28\" /><polygon points=\"651.49,480.06 657.49,480.06 654.49,485.26\" /><polygon points=\"662.07,400.36 668.07,400.36 665.07,405.55\" /><polygon points=\"672.04,407.16 678.04,407.16 675.04,412.36\" /><polygon points=\"681.47,516.04 687.47,516.04 684.47,521.23\" /><polygon points=\"690.41,469.65 696.41,469.65 693.41,474.85\" /><polygon points=\"698.92,525.50 704.92,525.50 701.92,530.70\" /><polygon points=\"707.04,415.20 713.04,415.20 710.04,420.39\" /><polygon points=\"714.79,416.40 720.79,416.40 717.79,421.60\" /><polygon points=\"722.21,466.44 728.21,466.44 725.21,471.64\" /><polygon points=\"729.33,493.33 735.33,493.33 732.33,498.52\" /><polygon points=\"736.17,451.55 742.17,451.55 739.17,456.75\" /><polygon points=\"742.76,393.56 748.76,393.56 745.76,398.75\" /><polygon points=\"749.10,428.53 755.10,428.53 752.10,433.72\" /><polygon points=\"755.22,252.91 761.22,252.91 758.22,258.10\" /><polygon points=\"761.13,403.22 767.13,403.22 764.13,408.42\" /><polygon points=\"766.85,322.33 772.85,322.33 769.85,327.53\" /><polygon points=\"772.39,521.75 778.39,521.75 775.39,526.94\" /><polygon points=\"777.76,420.97 783.76,420.97 780.76,426.17\" /><polygon points=\"782.96,229.44 788.96,229.44 785.96,234.63\" /><polygon points=\"788.02,394.36 794.02,394.36 791.02,399.55\" /><polygon points=\"792.93,414.77 798.93,414.77 795.93,419.96\" /><polygon points=\"797.71,206.90 803.71,206.90 800.71,212.10\" /><polygon points=\"802.36,294.56 808.36,294.56 805.36,299.76\" /><polygon points=\"806.90,314.30 812.90,314.30 809.90,319.49\" /><polygon points=\"811.31,539.93 817.31,539.93 814.31,545.13\" /><polygon points=\"815.62,386.78 821.62,386.78 818.62,391.97\" /><polygon points=\"819.82,262.67 825.82,262.67 822.82,267.86\" /><polygon points=\"823.93,252.36 829.93,252.36 826.93,257.56\" /><polygon points=\"827.93,255.14 833.93,255.14 830.93,260.33\" /><polygon points=\"831.85,436.87 837.85,436.87 834.85,442.07\" /><polygon points=\"835.69,227.37 841.69,227.37 838.69,232.56\" /><polygon points=\"839.44,479.63 845.44,479.63 842.44,484.82\" /><polygon points=\"843.11,447.48 849.11,447.48 846.11,452.67\" /><polygon points=\"846.71,480.94 852.71,480.94 849.71,486.14\" /><polygon points=\"850.23,435.57 856.23,435.57 853.23,440.77\" /><polygon points=\"853.69,167.67 859.69,167.67 856.69,172.86\" /><polygon points=\"857.07,165.53 863.07,165.53 860.07,170.73\" /><polygon points=\"860.39,292.04 866.39,292.04 863.39,297.24\" /><polygon points=\"863.66,42.79 869.66,42.79 866.66,47.99\" /><polygon points=\"866.86,21.12 872.86,21.12 869.86,26.31\" /><polygon points=\"870.00,471.31 876.00,471.31 873.00,476.51\" /><polygon points=\"873.09,179.76 879.09,179.76 876.09,184.95\" /><polygon points=\"876.12,292.03 882.12,292.03 879.12,297.22\" /><polygon points=\"879.10,222.62 885.10,222.62 882.10,227.82\" /><polygon points=\"882.03,160.07 888.03,160.07 885.03,165.26\" /><polygon points=\"884.92,236.03 890.92,236.03 887.92,241.23\" /><polygon points=\"887.75,66.67 893.75,66.67 890.75,71.86\" /><polygon points=\"890.54,258.21 896.54,258.21 893.54,263.41\" /><polygon points=\"893.29,423.54 899.29,423.54 896.29,428.74\" /><polygon points=\"895.99,478.99 901.99,478.99 898.99,484.19\" /><polygon points=\"901.28,91.81 907.28,91.81 904.28,97.01\" /><polygon points=\"903.86,337.43 909.86,337.43 906.86,342.63\" /><polygon points=\"906.41,211.21 912.41,211.21 909.41,216.41\" /><polygon points=\"908.92,542.19 914.92,542.19 911.92,547.38\" /><polygon points=\"916.24,340.59 922.24,340.59 919.24,345.78\" /><polygon points=\"920.95,190.42 926.95,190.42 923.95,195.62\" /><polygon points=\"925.54,174.40 931.54,174.40 928.54,179.60\" /><polygon points=\"934.38,475.06 940.38,475.06 937.38,480.26\" /><polygon points=\"936.52,372.88 942.52,372.88 939.52,378.08\" /><polygon points=\"942.78,154.71 948.78,154.71 945.78,159.90\" /><polygon points=\"944.82,122.15 950.82,122.15 947.82,127.35\" /><polygon points=\"948.83,284.65 954.83,284.65 951.83,289.84\" /><polygon points=\"954.68,225.64 960.68,225.64 957.68,230.84\" /><polygon points=\"956.59,58.76 962.59,58.76 959.59,63.96\" /><polygon points=\"960.34,528.20 966.34,528.20 963.34,533.39\" /><polygon points=\"967.61,533.30 973.61,533.30 970.61,538.50\" /><polygon points=\"969.38,106.34 975.38,106.34 972.38,111.54\" /></g><g stroke=\"black\"><line x1=\"50.00\" x2=\"50.00\" y1=\"550.00\" y2=\"560.00\" /><line x1=\"451.62\" x2=\"451.62\" y1=\"550.00\" y2=\"560.00\" /><line x1=\"853.23\" x2=\"853.23\" y1=\"550.00\" y2=\"560.00\" /><line x1=\"170.90\" x2=\"170.90\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"241.62\" x2=\"241.62\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"291.80\" x2=\"291.80\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"330.72\" x2=\"330.72\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"362.52\" x2=\"362.52\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"389.40\" x2=\"389.40\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"412.70\" x2=\"412.70\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"433.24\" x2=\"433.24\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"572.51\" x2=\"572.51\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"643.24\" x2=\"643.24\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"693.41\" x2=\"693.41\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"732.33\" x2=\"732.33\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"764.13\" x2=\"764.13\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"791.02\" x2=\"791.02\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"814.31\" x2=\"814.31\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"834.85\" x2=\"834.85\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"974.13\" x2=\"974.13\" y1=\"550.00\" y2=\"555.00\" /><g fill=\"black\" font-family=\"Arial, sans-serif\" font-size=\"10\" stroke=\"none\" text-anchor=\"middle\"><text x=\"50.00\" y=\"570.00\">1.00</text><text x=\"451.62\" y=\"570.00\">10.00</text><text x=\"853.23\" y=\"570.00\">100.00</text></g><line x1=\"50.00\" x2=\"975.00\" y1=\"550.00\" y2=\"550.00\" /></g><g stroke=\"black\"><line x1=\"50.00\" x2=\"40.00\" y1=\"497.48\" y2=\"497.48\" /><line x1=\"50.00\" x2=\"40.00\" y1=\"444.42\" y2=\"444.42\" /><line x1=\"50.00\" x2=\"40.00\" y1=\"391.37\" y2=\"391.37\" /><line x1=\"50.00\" x2=\"40.00\" y1=\"338.32\" y2=\"338.32\" /><line x1=\"50.00\" x2=\"40.00\" y1=\"285.27\" y2=\"285.27\" /><line x1=\"50.00\" x2=\"40.00\" y1=\"232.21\" y2=\"232.21\" /><line x1=\"50.00\" x2=\"40.00\" y1=\"179.16\" y2=\"179.16\" /><line x1=\"50.00\" x2=\"40.00\" y1=\"126.11\" y2=\"126.11\" /><line x1=\"50.00\" x2=\"40.00\" y1=\"73.05\" y2=\"73.05\" /><line x1=\"50.00\" x2=\"40.00\" y1=\"20.00\" y2=\"20.00\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"524.00\" y2=\"524.00\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"470.95\" y2=\"470.95\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"417.90\" y2=\"417.90\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"364.84\" y2=\"364.84\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"311.79\" y2=\"311.79\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"258.74\" y2=\"258.74\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"205.69\" y2=\"205.69\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"152.63\" y2=\"152.63\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"99.58\" y2=\"99.58\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"46.53\" y2=\"46.53\" /><g fill=\"black\" font-family=\"Arial, sans-serif\" font-size=\"10\" stroke=\"none\" text-anchor=\"end\"><text x=\"35.00\" y=\"497.48\">10.00</text><text x=\"35.00\" y=\"444.42\">20.00</text><text x=\"35.00\" y=\"391.37\">30.00</text><text x=\"35.00\" y=\"338.32\">40.00</text><text x=\"35.00\" y=\"285.27\">50.00</text><text x=\"35.00\" y=\"232.21\">60.00</text><text x=\"35.00\" y=\"179.16\">70.00</text><text x=\"35.00\" y=\"126.11\">80.00</text><text x=\"35.00\" y=\"73.05\">90.00</text><text x=\"35.00\" y=\"20.00\">100.00</text></g><line x1=\"50.00\" x2=\"50.00\" y1=\"550.00\" y2=\"20.00\" /></g></g></svg>"
]
},
"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.90\" cy=\"206.69\" r=\"3\" /><circle cx=\"814.31\" cy=\"205.72\" r=\"3\" /><circle cx=\"818.62\" cy=\"204.78\" r=\"3\" /><circle cx=\"822.82\" cy=\"203.85\" r=\"3\" /><circle cx=\"826.93\" cy=\"202.95\" r=\"3\" /><circle cx=\"830.93\" cy=\"202.07\" r=\"3\" /><circle cx=\"834.85\" cy=\"201.21\" r=\"3\" /><circle cx=\"838.69\" cy=\"200.37\" r=\"3\" /><circle cx=\"842.44\" cy=\"199.55\" r=\"3\" /><circle cx=\"846.11\" cy=\"198.74\" r=\"3\" /><circle cx=\"849.71\" cy=\"197.95\" r=\"3\" /><circle cx=\"853.23\" cy=\"197.17\" r=\"3\" /><circle cx=\"856.69\" cy=\"196.42\" r=\"3\" /><circle cx=\"860.07\" cy=\"195.67\" r=\"3\" /><circle cx=\"863.39\" cy=\"194.94\" r=\"3\" /><circle cx=\"866.66\" cy=\"194.23\" r=\"3\" /><circle cx=\"869.86\" cy=\"193.52\" r=\"3\" /><circle cx=\"873.00\" cy=\"192.83\" r=\"3\" /><circle cx=\"876.09\" cy=\"192.16\" r=\"3\" /><circle cx=\"879.12\" cy=\"191.49\" r=\"3\" /><circle cx=\"882.10\" cy=\"190.83\" r=\"3\" /><circle cx=\"885.03\" cy=\"190.19\" r=\"3\" /><circle cx=\"887.92\" cy=\"189.56\" r=\"3\" /><circle cx=\"890.75\" cy=\"188.93\" r=\"3\" /><circle cx=\"893.54\" cy=\"188.32\" r=\"3\" /><circle cx=\"896.29\" cy=\"187.72\" r=\"3\" /><circle cx=\"898.99\" cy=\"187.12\" r=\"3\" /><circle cx=\"901.66\" cy=\"186.54\" r=\"3\" /><circle cx=\"904.28\" cy=\"185.96\" r=\"3\" /><circle cx=\"906.86\" cy=\"185.40\" r=\"3\" /><circle cx=\"909.41\" cy=\"184.84\" r=\"3\" /><circle cx=\"911.92\" cy=\"184.29\" r=\"3\" /><circle cx=\"914.39\" cy=\"183.74\" r=\"3\" /><circle cx=\"916.83\" cy=\"183.21\" r=\"3\" /><circle cx=\"919.24\" cy=\"182.68\" r=\"3\" /><circle cx=\"921.61\" cy=\"182.16\" r=\"3\" /><circle cx=\"923.95\" cy=\"181.64\" r=\"3\" /><circle cx=\"926.26\" cy=\"181.14\" r=\"3\" /><circle cx=\"928.54\" cy=\"180.63\" r=\"3\" /><circle cx=\"930.79\" cy=\"180.14\" r=\"3\" /><circle cx=\"933.02\" cy=\"179.65\" r=\"3\" /><circle cx=\"935.21\" cy=\"179.17\" r=\"3\" /><circle cx=\"937.38\" cy=\"178.69\" r=\"3\" /><circle cx=\"939.52\" cy=\"178.22\" r=\"3\" /><circle cx=\"941.63\" cy=\"177.76\" r=\"3\" /><circle cx=\"943.72\" cy=\"177.30\" r=\"3\" /><circle cx=\"945.78\" cy=\"176.85\" r=\"3\" /><circle cx=\"947.82\" cy=\"176.40\" r=\"3\" /><circle cx=\"949.84\" cy=\"175.96\" r=\"3\" /><circle cx=\"951.83\" cy=\"175.52\" r=\"3\" /><circle cx=\"953.80\" cy=\"175.09\" r=\"3\" /><circle cx=\"955.75\" cy=\"174.66\" r=\"3\" /><circle cx=\"957.68\" cy=\"174.23\" r=\"3\" /><circle cx=\"959.59\" cy=\"173.82\" r=\"3\" /><circle cx=\"961.47\" cy=\"173.40\" r=\"3\" /><circle cx=\"963.34\" cy=\"172.99\" r=\"3\" /><circle cx=\"965.18\" cy=\"172.59\" r=\"3\" /><circle cx=\"967.01\" cy=\"172.19\" r=\"3\" /><circle cx=\"968.82\" cy=\"171.79\" r=\"3\" /><circle cx=\"970.61\" cy=\"171.40\" r=\"3\" /><circle cx=\"972.38\" cy=\"171.01\" r=\"3\" /></g><g fill=\"none\" stroke=\"#f60\"><polygon points=\"167.90,435.74 173.90,435.74 170.90,440.94\" /><polygon points=\"288.80,278.91 294.80,278.91 291.80,284.11\" /><polygon points=\"359.52,237.61 365.52,237.61 362.52,242.80\" /><polygon points=\"409.70,225.48 415.70,225.48 412.70,230.68\" /><polygon points=\"448.62,303.93 454.62,303.93 451.62,309.13\" /><polygon points=\"480.42,210.42 486.42,210.42 483.42,215.62\" /><polygon points=\"507.30,214.54 513.30,214.54 510.30,219.74\" /><polygon points=\"530.59,194.69 536.59,194.69 533.59,199.89\" /><polygon points=\"551.14,337.78 557.14,337.78 554.14,342.97\" /><polygon points=\"569.51,247.99 575.51,247.99 572.51,253.19\" /><polygon points=\"586.14,158.57 592.14,158.57 589.14,163.77\" /><polygon points=\"601.31,131.24 607.31,131.24 604.31,136.43\" /><polygon points=\"615.28,139.27 621.28,139.27 618.28,144.47\" /><polygon points=\"628.20,226.94 634.20,226.94 631.20,232.14\" /><polygon points=\"640.24,202.50 646.24,202.50 643.24,207.69\" /><polygon points=\"651.49,176.10 657.49,176.10 654.49,181.30\" /><polygon points=\"662.07,114.96 668.07,114.96 665.07,120.15\" /><polygon points=\"672.04,118.64 678.04,118.64 675.04,123.84\" /><polygon points=\"681.47,237.47 687.47,237.47 684.47,242.67\" /><polygon points=\"690.41,164.76 696.41,164.76 693.41,169.96\" /><polygon points=\"698.92,267.36 704.92,267.36 701.92,272.56\" /><polygon points=\"707.04,123.23 713.04,123.23 710.04,128.43\" /><polygon points=\"714.79,123.95 720.79,123.95 717.79,129.14\" /><polygon points=\"722.21,161.58 728.21,161.58 725.21,166.78\" /><polygon points=\"729.33,193.50 735.33,193.50 732.33,198.70\" /><polygon points=\"736.17,148.33 742.17,148.33 739.17,153.53\" /><polygon points=\"742.76,111.45 748.76,111.45 745.76,116.64\" /><polygon points=\"749.10,131.51 755.10,131.51 752.10,136.71\" /><polygon points=\"755.22,61.20 761.22,61.20 758.22,66.40\" /><polygon points=\"761.13,116.49 767.13,116.49 764.13,121.68\" /><polygon points=\"766.85,81.97 772.85,81.97 769.85,87.16\" /><polygon points=\"772.39,254.08 778.39,254.08 775.39,259.28\" /><polygon points=\"777.76,126.71 783.76,126.71 780.76,131.91\" /><polygon points=\"782.96,55.29 788.96,55.29 785.96,60.48\" /><polygon points=\"788.02,111.85 794.02,111.85 791.02,117.05\" /><polygon points=\"792.93,122.98 798.93,122.98 795.93,128.17\" /><polygon points=\"797.71,50.01 803.71,50.01 800.71,55.21\" /><polygon points=\"802.36,72.98 808.36,72.98 805.36,78.17\" /><polygon points=\"806.90,79.26 812.90,79.26 809.90,84.45\" /><polygon points=\"811.31,366.98 817.31,366.98 814.31,372.18\" /><polygon points=\"815.62,108.10 821.62,108.10 818.62,113.30\" /><polygon points=\"819.82,63.80 825.82,63.80 822.82,69.00\" /><polygon points=\"823.93,61.06 829.93,61.06 826.93,66.26\" /><polygon points=\"827.93,61.79 833.93,61.79 830.93,66.99\" /><polygon points=\"831.85,137.19 837.85,137.19 834.85,142.39\" /><polygon points=\"835.69,54.79 841.69,54.79 838.69,59.98\" /><polygon points=\"839.44,175.59 845.44,175.59 842.44,180.79\" /><polygon points=\"843.11,145.07 849.11,145.07 846.11,150.27\" /><polygon points=\"846.71,177.14 852.71,177.14 849.71,182.34\" /><polygon points=\"850.23,136.28 856.23,136.28 853.23,141.47\" /><polygon points=\"853.69,41.60 859.69,41.60 856.69,46.80\" /><polygon points=\"857.07,41.17 863.07,41.17 860.07,46.37\" /><polygon points=\"860.39,72.21 866.39,72.21 863.39,77.41\" /><polygon points=\"863.66,19.72 869.66,19.72 866.66,24.91\" /><polygon points=\"866.86,16.48 872.86,16.48 869.86,21.68\" /><polygon points=\"870.00,166.46 876.00,166.46 873.00,171.66\" /><polygon points=\"873.09,44.10 879.09,44.10 876.09,49.29\" /><polygon points=\"876.12,72.21 882.12,72.21 879.12,77.40\" /><polygon points=\"879.10,53.65 885.10,53.65 882.10,58.85\" /><polygon points=\"882.03,40.08 888.03,40.08 885.03,45.27\" /><polygon points=\"884.92,56.91 890.92,56.91 887.92,62.10\" /><polygon points=\"887.75,23.45 893.75,23.45 890.75,28.64\" /><polygon points=\"890.54,62.61 896.54,62.61 893.54,67.80\" /><polygon points=\"893.29,128.31 899.29,128.31 896.29,133.51\" /><polygon points=\"895.99,174.86 901.99,174.86 898.99,180.05\" /><polygon points=\"901.28,27.58 907.28,27.58 904.28,32.78\" /><polygon points=\"903.86,87.34 909.86,87.34 906.86,92.54\" /><polygon points=\"906.41,50.99 912.41,50.99 909.41,56.19\" /><polygon points=\"908.92,408.39 914.92,408.39 911.92,413.58\" /><polygon points=\"916.24,88.51 922.24,88.51 919.24,93.71\" /><polygon points=\"920.95,46.37 926.95,46.37 923.95,51.56\" /><polygon points=\"925.54,42.98 931.54,42.98 928.54,48.18\" /><polygon points=\"934.38,170.44 940.38,170.44 937.38,175.64\" /><polygon points=\"936.52,101.66 942.52,101.66 939.52,106.86\" /><polygon points=\"942.78,39.02 948.78,39.02 945.78,44.22\" /><polygon points=\"944.82,32.89 950.82,32.89 947.82,38.08\" /><polygon points=\"948.83,70.00 954.83,70.00 951.83,75.20\" /><polygon points=\"954.68,54.37 960.68,54.37 957.68,59.57\" /><polygon points=\"956.59,22.19 962.59,22.19 959.59,27.39\" /><polygon points=\"960.34,278.55 966.34,278.55 963.34,283.74\" /><polygon points=\"967.61,305.66 973.61,305.66 970.61,310.86\" /><polygon points=\"969.38,30.08 975.38,30.08 972.38,35.27\" /></g><g stroke=\"black\"><line x1=\"50.00\" x2=\"50.00\" y1=\"550.00\" y2=\"560.00\" /><line x1=\"451.62\" x2=\"451.62\" y1=\"550.00\" y2=\"560.00\" /><line x1=\"853.23\" x2=\"853.23\" y1=\"550.00\" y2=\"560.00\" /><line x1=\"170.90\" x2=\"170.90\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"241.62\" x2=\"241.62\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"291.80\" x2=\"291.80\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"330.72\" x2=\"330.72\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"362.52\" x2=\"362.52\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"389.40\" x2=\"389.40\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"412.70\" x2=\"412.70\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"433.24\" x2=\"433.24\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"572.51\" x2=\"572.51\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"643.24\" x2=\"643.24\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"693.41\" x2=\"693.41\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"732.33\" x2=\"732.33\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"764.13\" x2=\"764.13\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"791.02\" x2=\"791.02\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"814.31\" x2=\"814.31\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"834.85\" x2=\"834.85\" y1=\"550.00\" y2=\"555.00\" /><line x1=\"974.13\" x2=\"974.13\" y1=\"550.00\" y2=\"555.00\" /><g fill=\"black\" font-family=\"Arial, sans-serif\" font-size=\"10\" stroke=\"none\" text-anchor=\"middle\"><text x=\"50.00\" y=\"570.00\">1.00</text><text x=\"451.62\" y=\"570.00\">10.00</text><text x=\"853.23\" y=\"570.00\">100.00</text></g><line x1=\"50.00\" x2=\"975.00\" y1=\"550.00\" y2=\"550.00\" /></g><g stroke=\"black\"><line x1=\"50.00\" x2=\"40.00\" y1=\"550.00\" y2=\"550.00\" /><line x1=\"50.00\" x2=\"40.00\" y1=\"373.59\" y2=\"373.59\" /><line x1=\"50.00\" x2=\"40.00\" y1=\"197.17\" y2=\"197.17\" /><line x1=\"50.00\" x2=\"40.00\" y1=\"20.76\" y2=\"20.76\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"496.89\" y2=\"496.89\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"465.83\" y2=\"465.83\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"443.79\" y2=\"443.79\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"426.69\" y2=\"426.69\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"412.72\" y2=\"412.72\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"400.91\" y2=\"400.91\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"390.68\" y2=\"390.68\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"381.66\" y2=\"381.66\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"320.48\" y2=\"320.48\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"289.42\" y2=\"289.42\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"267.38\" y2=\"267.38\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"250.28\" y2=\"250.28\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"236.31\" y2=\"236.31\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"224.50\" y2=\"224.50\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"214.27\" y2=\"214.27\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"205.25\" y2=\"205.25\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"144.07\" y2=\"144.07\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"113.00\" y2=\"113.00\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"90.96\" y2=\"90.96\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"73.87\" y2=\"73.87\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"59.90\" y2=\"59.90\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"48.09\" y2=\"48.09\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"37.86\" y2=\"37.86\" /><line x1=\"50.00\" x2=\"45.00\" y1=\"28.83\" y2=\"28.83\" /><g fill=\"black\" font-family=\"Arial, sans-serif\" font-size=\"10\" stroke=\"none\" text-anchor=\"end\"><text x=\"35.00\" y=\"550.00\">0.10</text><text x=\"35.00\" y=\"373.59\">1.00</text><text x=\"35.00\" y=\"197.17\">10.00</text><text x=\"35.00\" y=\"20.76\">100.00</text></g><line x1=\"50.00\" x2=\"50.00\" y1=\"550.00\" y2=\"20.00\" /></g></g></svg>"
]
},
"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
}