{ "metadata": { "language": "ruby", "name": "", "signature": "sha256:d43e798d616a0e2a37d94d14342db66b5e81bb10cd4fa5672030f45ddac7996a" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "code", "collapsed": false, "input": [ "require 'nyaplot'\n", "require 'nyaplot3d'" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 1, "text": [ "\"if(window['d3'] === undefined ||\\n window['Nyaplot'] === undefined){\\n var path = {\\\"d3\\\":\\\"http://d3js.org/d3.v3.min\\\"};\\n\\n\\n\\n var shim = {\\\"d3\\\":{\\\"exports\\\":\\\"d3\\\"}};\\n\\n require.config({paths: path, shim:shim});\\n\\n\\nrequire(['d3'], function(d3){window['d3']=d3;console.log('finished loading d3');\\n\\n\\tvar script = d3.select(\\\"head\\\")\\n\\t .append(\\\"script\\\")\\n\\t .attr(\\\"src\\\", \\\"http://cdn.rawgit.com/domitry/Nyaplotjs/master/release/nyaplot.js\\\")\\n\\t .attr(\\\"async\\\", true);\\n\\n\\tscript[0][0].onload = script[0][0].onreadystatechange = function(){\\n\\n\\n\\t var event = document.createEvent(\\\"HTMLEvents\\\");\\n\\t event.initEvent(\\\"load_nyaplot\\\",false,false);\\n\\t window.dispatchEvent(event);\\n\\t console.log('Finished loading Nyaplotjs');\\n\\n\\t};\\n\\n\\n});\\n}\\n\"" ] }, { "html": [ "" ], "metadata": {}, "output_type": "pyout", "prompt_number": 1, "text": [ "\"if(window['d3'] === undefined ||\\n window['Nyaplot'] === undefined){\\n var path = {\\\"d3\\\":\\\"http://d3js.org/d3.v3.min\\\",\\\"THREE\\\":\\\"http://cdnjs.cloudflare.com/ajax/libs/three.js/r66/three.min\\\",\\\"Elegans\\\":\\\"http://cdn.rawgit.com/domitry/elegans/nyaplot-extension/release/elegans\\\"};\\n\\n\\n\\n var shim = {\\\"d3\\\":{\\\"exports\\\":\\\"d3\\\"},\\\"THREE\\\":{\\\"exports\\\":\\\"THREE\\\"},\\\"Elegans\\\":{\\\"exports\\\":\\\"Elegans\\\"}};\\n\\n require.config({paths: path, shim:shim});\\n\\n\\nrequire(['d3'], function(d3){window['d3']=d3;console.log('finished loading d3');require(['THREE'], function(THREE){window['THREE']=THREE;console.log('finished loading THREE');require(['Elegans'], function(Elegans){window['Elegans']=Elegans;console.log('finished loading Elegans');\\n\\n\\tvar script = d3.select(\\\"head\\\")\\n\\t .append(\\\"script\\\")\\n\\t .attr(\\\"src\\\", \\\"http://cdn.rawgit.com/domitry/Nyaplotjs/master/release/nyaplot.js\\\")\\n\\t .attr(\\\"async\\\", true);\\n\\n\\tscript[0][0].onload = script[0][0].onreadystatechange = function(){\\n\\n\\n\\t var event = document.createEvent(\\\"HTMLEvents\\\");\\n\\t event.initEvent(\\\"load_nyaplot\\\",false,false);\\n\\t window.dispatchEvent(event);\\n\\t console.log('Finished loading Nyaplotjs');\\n\\n\\t};\\n\\n\\n});});});\\n}\\n\"" ] }, { "metadata": {}, "output_type": "pyout", "prompt_number": 1, "text": [ "true" ] } ], "prompt_number": 1 }, { "cell_type": "code", "collapsed": false, "input": [ "x=[];y=[];z=[]\n", "-10.step(10, 0.5) do |i|\n", " -10.step(10, 0.5) do |j|\n", " x.push(i)\n", " y.push(j)\n", " z.push(Math.sin(Math.sqrt(i*i+j*j))/Math.sqrt(i*i+j*j))\n", " end\n", "end\n", "z.map!{|val| next (val.nan? ? 0 : val)} #(0,0) will be -inf" ], "language": "python", "metadata": {}, "outputs": [ { "metadata": {}, "output_type": "pyout", "prompt_number": 2, "text": [ "[0.07070980527467927, 0.06825111305414358, 0.05763057548928058, 0.04034617895060916, 0.018552192423288767, -0.005305751788096055, -0.02884524481214462, -0.050038523052220896, -0.06740715089491094, -0.08010823579141367, -0.08792034505189632, -0.09115188436397047, -0.09050228958928583, -0.08690699622242735, -0.08139217990463421, -0.07495689987901655, -0.06849088196757172, -0.06272773781166564, -0.05822723495837525, -0.05537684587809335, -0.05440211108893698, -0.05537684587809335, -0.05822723495837525, -0.06272773781166564, -0.06849088196757172, -0.07495689987901655, -0.08139217990463421, -0.08690699622242735, -0.09050228958928583, -0.09115188436397047, -0.08792034505189632, -0.08010823579141367, -0.06740715089491094, -0.050038523052220896, -0.02884524481214462, -0.005305751788096055, 0.018552192423288767, 0.04034617895060916, 0.05763057548928058, 0.06825111305414358, 0.07070980527467927, 0.06825111305414358, 0.05682630444012635, 0.03796178393906855, 0.014135155449061413, -0.011763804124600832, -0.03687486910392919, -0.05874532782785397, -0.0755937821931744, -0.08643675803630407, -0.09108220848970375, -0.09001568643529065, -0.08421802680997838, -0.07495689987901655, -0.0635897584670486, -0.051405153532472825, -0.03951638564151894, -0.02880901662197588, -0.019934067090364063, -0.013332838992708288, -0.009277249905099165, -0.007910644259137822, -0.009277249905099165, -0.013332838992708288, -0.019934067090364063, -0.02880901662197588, -0.03951638564151894, -0.051405153532472825, -0.0635897584670486, -0.07495689987901655, -0.08421802680997838, -0.09001568643529065, -0.09108220848970375, -0.08643675803630407, -0.0755937821931744, -0.05874532782785397, -0.03687486910392919, -0.011763804124600832, 0.014135155449061413, 0.03796178393906855, 0.05682630444012635, 0.06825111305414358, 0.05763057548928058, 0.03796178393906855, 0.012637541642049447, -0.015014039828919575, -0.04160737907596747, -0.0641838159733434, -0.08056977983257328, -0.08956773031925042, -0.09097419633026813, -0.08545030284658549, -0.07429153508625874, -0.05915252370129161, -0.04177969822725026, -0.023792531570818704, -0.006536976075760194, 0.008983020970559483, 0.022104754680741478, 0.03245520841273295, 0.03987122267808871, 0.04431326426819208, 0.04579094280463962, 0.04431326426819208, 0.03987122267808871, 0.03245520841273295, 0.022104754680741478, 0.008983020970559483, -0.006536976075760194, -0.023792531570818704, -0.04177969822725026, -0.05915252370129161, -0.07429153508625874, -0.08545030284658549, -0.09097419633026813, -0.08956773031925042, -0.08056977983257328, -0.0641838159733434, -0.04160737907596747, -0.015014039828919575, 0.012637541642049447, 0.03796178393906855, 0.05763057548928058, 0.04034617895060916, 0.014135155449061413, -0.015014039828919575, -0.043166197954687714, -0.06677409789954362, -0.08316007856929132, -0.09080401018805377, -0.0894139480404508, -0.07979810941024242, -0.0635897584670486, -0.0428948164978531, -0.019934067090364063, 0.0032601210841151328, 0.025053744421125373, 0.04431326426819208, 0.06040720535198953, 0.07313012167416309, 0.08257932528697066, 0.08901491514755587, 0.09272862238309293, 0.09393966030864591, 0.09272862238309293, 0.08901491514755587, 0.08257932528697066, 0.07313012167416309, 0.06040720535198953, 0.04431326426819208, 0.025053744421125373, 0.0032601210841151328, -0.019934067090364063, -0.0428948164978531, -0.0635897584670486, -0.07979810941024242, -0.0894139480404508, -0.09080401018805377, -0.08316007856929132, -0.06677409789954362, -0.043166197954687714, -0.015014039828919575, 0.014135155449061413, 0.04034617895060916, 0.018552192423288767, -0.011763804124600832, -0.04160737907596747, -0.06677409789954362, -0.083953080486421, -0.09115188436397047, -0.08786057577066687, -0.07495689987901655, -0.05440211108893698, -0.02880901662197588, -0.000975520434412708, 0.026531247839761095, 0.051678659315078174, 0.07313012167416309, 0.09026587102554127, 0.1030892321900898, 0.11205862411281925, 0.11788827534862069, 0.121354197903323, 0.12313056789780169, 0.12366978082792272, 0.12313056789780169, 0.121354197903323, 0.11788827534862069, 0.11205862411281925, 0.1030892321900898, 0.09026587102554127, 0.07313012167416309, 0.051678659315078174, 0.026531247839761095, -0.000975520434412708, -0.02880901662197588, -0.05440211108893698, -0.07495689987901655, -0.08786057577066687, -0.09115188436397047, -0.083953080486421, -0.06677409789954362, -0.04160737907596747, -0.011763804124600832, 0.018552192423288767, -0.005305751788096055, -0.03687486910392919, -0.0641838159733434, -0.08316007856929132, -0.09115188436397047, -0.08723804412635582, -0.07221555931565682, -0.04830079537758751, -0.018630431167854764, 0.013324064862461698, 0.04431326426819208, 0.07174463418130257, 0.09393966030864591, 0.11020037089331168, 0.12071048357355876, 0.12632201382479508, 0.1282877460523285, 0.1279943847202572, 0.12673508793268007, 0.12554007460949038, 0.12506666356996518, 0.12554007460949038, 0.12673508793268007, 0.1279943847202572, 0.1282877460523285, 0.12632201382479508, 0.12071048357355876, 0.11020037089331168, 0.09393966030864591, 0.07174463418130257, 0.04431326426819208, 0.013324064862461698, -0.018630431167854764, -0.04830079537758751, -0.07221555931565682, -0.08723804412635582, -0.09115188436397047, -0.08316007856929132, -0.0641838159733434, -0.03687486910392919, -0.005305751788096055, -0.02884524481214462, -0.05874532782785397, -0.08056977983257328, -0.09080401018805377, -0.08786057577066687, -0.07221555931565682, -0.046172733100891844, -0.013332838992708288, 0.022104754680741478, 0.05606169383989522, 0.08518823525005793, 0.1072644357230806, 0.121354197903323, 0.12772614095633136, 0.12759863509556327, 0.1227899979382399, 0.11535613684707621, 0.10728003423923389, 0.10024812527586709, 0.09551761666147543, 0.09385522838839844, 0.09551761666147543, 0.10024812527586709, 0.10728003423923389, 0.11535613684707621, 0.1227899979382399, 0.12759863509556327, 0.12772614095633136, 0.121354197903323, 0.1072644357230806, 0.08518823525005793, 0.05606169383989522, 0.022104754680741478, -0.013332838992708288, -0.046172733100891844, -0.07221555931565682, -0.08786057577066687, -0.09080401018805377, -0.08056977983257328, -0.05874532782785397, -0.02884524481214462, -0.050038523052220896, -0.0755937821931744, -0.08956773031925042, -0.0894139480404508, -0.07495689987901655, -0.04830079537758751, -0.013332838992708288, 0.025053744421125373, 0.06184586593944633, 0.09272862238309293, 0.11468947045883603, 0.12632201382479508, 0.12781428895032207, 0.1206727784533444, 0.10728003423923389, 0.09040200935907731, 0.0727498464973691, 0.05666621451668112, 0.04395992890538334, 0.03586819257714133, 0.03309538278274085, 0.03586819257714133, 0.04395992890538334, 0.05666621451668112, 0.0727498464973691, 0.09040200935907731, 0.10728003423923389, 0.1206727784533444, 0.12781428895032207, 0.12632201382479508, 0.11468947045883603, 0.09272862238309293, 0.06184586593944633, 0.025053744421125373, -0.013332838992708288, -0.04830079537758751, -0.07495689987901655, -0.0894139480404508, -0.08956773031925042, -0.0755937821931744, -0.050038523052220896, -0.06740715089491094, -0.08643675803630407, -0.09097419633026813, -0.07979810941024242, -0.05440211108893698, -0.018630431167854764, 0.022104754680741478, 0.06184586593944633, 0.09513663192183475, 0.11788827534862069, 0.12791446519229313, 0.12506666356996518, 0.11099177345003862, 0.08861118769406219, 0.061467682588178515, 0.03309538278274085, 0.006539307734329662, -0.015905088066645427, -0.032729152507152436, -0.043081930958211126, -0.04656924969982098, -0.043081930958211126, -0.032729152507152436, -0.015905088066645427, 0.006539307734329662, 0.03309538278274085, 0.061467682588178515, 0.08861118769406219, 0.11099177345003862, 0.12506666356996518, 0.12791446519229313, 0.11788827534862069, 0.09513663192183475, 0.06184586593944633, 0.022104754680741478, -0.018630431167854764, -0.05440211108893698, -0.07979810941024242, -0.09097419633026813, -0.08643675803630407, -0.06740715089491094, -0.08010823579141367, -0.09108220848970375, -0.08545030284658549, -0.0635897584670486, -0.02880901662197588, 0.013324064862461698, 0.05606169383989522, 0.09272862238309293, 0.11788827534862069, 0.12819563383513788, 0.1227899979382399, 0.10318836687199265, 0.0727498464973691, 0.03586819257714133, -0.0029053968069243366, -0.0396120270827976, -0.07136107141075336, -0.0964681698772501, -0.11428272813296206, -0.12481027146866008, -0.1282800591946167, -0.12481027146866008, -0.11428272813296206, -0.0964681698772501, -0.07136107141075336, -0.0396120270827976, -0.0029053968069243366, 0.03586819257714133, 0.0727498464973691, 0.10318836687199265, 0.1227899979382399, 0.12819563383513788, 0.11788827534862069, 0.09272862238309293, 0.05606169383989522, 0.013324064862461698, -0.02880901662197588, -0.0635897584670486, -0.08545030284658549, -0.09108220848970375, -0.08010823579141367, -0.08792034505189632, -0.09001568643529065, -0.07429153508625874, -0.0428948164978531, -0.000975520434412708, 0.04431326426819208, 0.08518823525005793, 0.11468947045883603, 0.12791446519229313, 0.1227899979382399, 0.10024812527586709, 0.06380703560977322, 0.018686436816934687, -0.02931843708828789, -0.07494068295407723, -0.11428272813296206, -0.14523137672394124, -0.16739618809597498, -0.18163979110507836, -0.1893661116834589, -0.1917848549326277, -0.1893661116834589, -0.18163979110507836, -0.16739618809597498, -0.14523137672394124, -0.11428272813296206, -0.07494068295407723, -0.02931843708828789, 0.018686436816934687, 0.06380703560977322, 0.10024812527586709, 0.1227899979382399, 0.12791446519229313, 0.11468947045883603, 0.08518823525005793, 0.04431326426819208, -0.000975520434412708, -0.0428948164978531, -0.07429153508625874, -0.09001568643529065, -0.08792034505189632, -0.09115188436397047, -0.08421802680997838, -0.05915252370129161, -0.019934067090364063, 0.026531247839761095, 0.07174463418130257, 0.1072644357230806, 0.12632201382479508, 0.12506666356996518, 0.10318836687199265, 0.06380703560977322, 0.012678882219140045, -0.043081930958211126, -0.0964681698772501, -0.1419020591482169, -0.17613111363996398, -0.1985212210673702, -0.21071704065734573, -0.21578929942337413, -0.217106624273501, -0.21722891503668823, -0.217106624273501, -0.21578929942337413, -0.21071704065734573, -0.1985212210673702, -0.17613111363996398, -0.1419020591482169, -0.0964681698772501, -0.043081930958211126, 0.012678882219140045, 0.06380703560977322, 0.10318836687199265, 0.12506666356996518, 0.12632201382479508, 0.1072644357230806, 0.07174463418130257, 0.026531247839761095, -0.019934067090364063, -0.05915252370129161, -0.08421802680997838, -0.09115188436397047, -0.09050228958928583, -0.07495689987901655, -0.04177969822725026, 0.0032601210841151328, 0.051678659315078174, 0.09393966030864591, 0.121354197903323, 0.12781428895032207, 0.11099177345003862, 0.0727498464973691, 0.018686436816934687, -0.043081930958211126, -0.10362229026069987, -0.1549964036247235, -0.1917848549326277, -0.21199733150313538, -0.21718431835123952, -0.21174773278219358, -0.20162936743561297, -0.19269534164247415, -0.18920062382698205, -0.19269534164247415, -0.20162936743561297, -0.21174773278219358, -0.21718431835123952, -0.21199733150313538, -0.1917848549326277, -0.1549964036247235, -0.10362229026069987, -0.043081930958211126, 0.018686436816934687, 0.0727498464973691, 0.11099177345003862, 0.12781428895032207, 0.121354197903323, 0.09393966030864591, 0.051678659315078174, 0.0032601210841151328, -0.04177969822725026, -0.07495689987901655, -0.09050228958928583, -0.08690699622242735, -0.0635897584670486, -0.023792531570818704, 0.025053744421125373, 0.07313012167416309, 0.11020037089331168, 0.12772614095633136, 0.1206727784533444, 0.08861118769406219, 0.03586819257714133, -0.02931843708828789, -0.0964681698772501, -0.1549964036247235, -0.19636607441272252, -0.21578929942337413, -0.21311244844710367, -0.19269534164247415, -0.162314921526778, -0.13133744216365315, -0.10856373127183089, -0.10022377933989138, -0.10856373127183089, -0.13133744216365315, -0.162314921526778, -0.19269534164247415, -0.21311244844710367, -0.21578929942337413, -0.19636607441272252, -0.1549964036247235, -0.0964681698772501, -0.02931843708828789, 0.03586819257714133, 0.08861118769406219, 0.1206727784533444, 0.12772614095633136, 0.11020037089331168, 0.07313012167416309, 0.025053744421125373, -0.023792531570818704, -0.0635897584670486, -0.08690699622242735, -0.08139217990463421, -0.051405153532472825, -0.006536976075760194, 0.04431326426819208, 0.09026587102554127, 0.12071048357355876, 0.12759863509556327, 0.10728003423923389, 0.061467682588178515, -0.0029053968069243366, -0.07494068295407723, -0.1419020591482169, -0.1917848549326277, -0.21578929942337413, -0.21017152293525476, -0.17706921681216475, -0.12411188138749576, -0.0628822344847537, -0.0065407069689387, 0.0328941813182363, 0.0470400026866224, 0.0328941813182363, -0.0065407069689387, -0.0628822344847537, -0.12411188138749576, -0.17706921681216475, -0.21017152293525476, -0.21578929942337413, -0.1917848549326277, -0.1419020591482169, -0.07494068295407723, -0.0029053968069243366, 0.061467682588178515, 0.10728003423923389, 0.12759863509556327, 0.12071048357355876, 0.09026587102554127, 0.04431326426819208, -0.006536976075760194, -0.051405153532472825, -0.08139217990463421, -0.07495689987901655, -0.03951638564151894, 0.008983020970559483, 0.06040720535198953, 0.1030892321900898, 0.12632201382479508, 0.1227899979382399, 0.09040200935907731, 0.03309538278274085, -0.0396120270827976, -0.11428272813296206, -0.17613111363996398, -0.21199733150313538, -0.21311244844710367, -0.17706921681216475, -0.10856373127183089, -0.01872008860113564, 0.07689817560810495, 0.16121107496476533, 0.2189011346103909, 0.23938885764158263, 0.2189011346103909, 0.16121107496476533, 0.07689817560810495, -0.01872008860113564, -0.10856373127183089, -0.17706921681216475, -0.21311244844710367, -0.21199733150313538, -0.17613111363996398, -0.11428272813296206, -0.0396120270827976, 0.03309538278274085, 0.09040200935907731, 0.1227899979382399, 0.12632201382479508, 0.1030892321900898, 0.06040720535198953, 0.008983020970559483, -0.03951638564151894, -0.07495689987901655, -0.06849088196757172, -0.02880901662197588, 0.022104754680741478, 0.07313012167416309, 0.11205862411281925, 0.1282877460523285, 0.11535613684707621, 0.0727498464973691, 0.006539307734329662, -0.07136107141075336, -0.14523137672394124, -0.1985212210673702, -0.21718431835123952, -0.19269534164247415, -0.12411188138749576, -0.01872008860113564, 0.10891980905843199, 0.23938885764158263, 0.35184490787569894, 0.4278214842691431, 0.45464871341284085, 0.4278214842691431, 0.35184490787569894, 0.23938885764158263, 0.10891980905843199, -0.01872008860113564, -0.12411188138749576, -0.19269534164247415, -0.21718431835123952, -0.1985212210673702, -0.14523137672394124, -0.07136107141075336, 0.006539307734329662, 0.0727498464973691, 0.11535613684707621, 0.1282877460523285, 0.11205862411281925, 0.07313012167416309, 0.022104754680741478, -0.02880901662197588, -0.06849088196757172, -0.06272773781166564, -0.019934067090364063, 0.03245520841273295, 0.08257932528697066, 0.11788827534862069, 0.1279943847202572, 0.10728003423923389, 0.05666621451668112, -0.015905088066645427, -0.0964681698772501, -0.16739618809597498, -0.21071704065734573, -0.21174773278219358, -0.162314921526778, -0.0628822344847537, 0.07689817560810495, 0.23938885764158263, 0.4017547423895375, 0.5398415805455232, 0.6324217062813903, 0.6649966577360363, 0.6324217062813903, 0.5398415805455232, 0.4017547423895375, 0.23938885764158263, 0.07689817560810495, -0.0628822344847537, -0.162314921526778, -0.21174773278219358, -0.21071704065734573, -0.16739618809597498, -0.0964681698772501, -0.015905088066645427, 0.05666621451668112, 0.10728003423923389, 0.1279943847202572, 0.11788827534862069, 0.08257932528697066, 0.03245520841273295, -0.019934067090364063, -0.06272773781166564, -0.05822723495837525, -0.013332838992708288, 0.03987122267808871, 0.08901491514755587, 0.121354197903323, 0.12673508793268007, 0.10024812527586709, 0.04395992890538334, -0.032729152507152436, -0.11428272813296206, -0.18163979110507836, -0.21578929942337413, -0.20162936743561297, -0.13133744216365315, -0.0065407069689387, 0.16121107496476533, 0.35184490787569894, 0.5398415805455232, 0.6984559986366083, 0.804306627215558, 0.8414709848078965, 0.804306627215558, 0.6984559986366083, 0.5398415805455232, 0.35184490787569894, 0.16121107496476533, -0.0065407069689387, -0.13133744216365315, -0.20162936743561297, -0.21578929942337413, -0.18163979110507836, -0.11428272813296206, -0.032729152507152436, 0.04395992890538334, 0.10024812527586709, 0.12673508793268007, 0.121354197903323, 0.08901491514755587, 0.03987122267808871, -0.013332838992708288, -0.05822723495837525, -0.05537684587809335, -0.009277249905099165, 0.04431326426819208, 0.09272862238309293, 0.12313056789780169, 0.12554007460949038, 0.09551761666147543, 0.03586819257714133, -0.043081930958211126, -0.12481027146866008, -0.1893661116834589, -0.217106624273501, -0.19269534164247415, -0.10856373127183089, 0.0328941813182363, 0.2189011346103909, 0.4278214842691431, 0.6324217062813903, 0.804306627215558, 0.9187253698655684, 0.958851077208406, 0.9187253698655684, 0.804306627215558, 0.6324217062813903, 0.4278214842691431, 0.2189011346103909, 0.0328941813182363, -0.10856373127183089, -0.19269534164247415, -0.217106624273501, -0.1893661116834589, -0.12481027146866008, -0.043081930958211126, 0.03586819257714133, 0.09551761666147543, 0.12554007460949038, 0.12313056789780169, 0.09272862238309293, 0.04431326426819208, -0.009277249905099165, -0.05537684587809335, -0.05440211108893698, -0.007910644259137822, 0.04579094280463962, 0.09393966030864591, 0.12366978082792272, 0.12506666356996518, 0.09385522838839844, 0.03309538278274085, -0.04656924969982098, -0.1282800591946167, -0.1917848549326277, -0.21722891503668823, -0.18920062382698205, -0.10022377933989138, 0.0470400026866224, 0.23938885764158263, 0.45464871341284085, 0.6649966577360363, 0.8414709848078965, 0.958851077208406, 0, 0.958851077208406, 0.8414709848078965, 0.6649966577360363, 0.45464871341284085, 0.23938885764158263, 0.0470400026866224, -0.10022377933989138, -0.18920062382698205, -0.21722891503668823, -0.1917848549326277, -0.1282800591946167, -0.04656924969982098, 0.03309538278274085, 0.09385522838839844, 0.12506666356996518, 0.12366978082792272, 0.09393966030864591, 0.04579094280463962, -0.007910644259137822, -0.05440211108893698, -0.05537684587809335, -0.009277249905099165, 0.04431326426819208, 0.09272862238309293, 0.12313056789780169, 0.12554007460949038, 0.09551761666147543, 0.03586819257714133, -0.043081930958211126, -0.12481027146866008, -0.1893661116834589, -0.217106624273501, -0.19269534164247415, -0.10856373127183089, 0.0328941813182363, 0.2189011346103909, 0.4278214842691431, 0.6324217062813903, 0.804306627215558, 0.9187253698655684, 0.958851077208406, 0.9187253698655684, 0.804306627215558, 0.6324217062813903, 0.4278214842691431, 0.2189011346103909, 0.0328941813182363, -0.10856373127183089, -0.19269534164247415, -0.217106624273501, -0.1893661116834589, -0.12481027146866008, -0.043081930958211126, 0.03586819257714133, 0.09551761666147543, 0.12554007460949038, 0.12313056789780169, 0.09272862238309293, 0.04431326426819208, -0.009277249905099165, -0.05537684587809335, -0.05822723495837525, -0.013332838992708288, 0.03987122267808871, 0.08901491514755587, 0.121354197903323, 0.12673508793268007, 0.10024812527586709, 0.04395992890538334, -0.032729152507152436, -0.11428272813296206, -0.18163979110507836, -0.21578929942337413, -0.20162936743561297, -0.13133744216365315, -0.0065407069689387, 0.16121107496476533, 0.35184490787569894, 0.5398415805455232, 0.6984559986366083, 0.804306627215558, 0.8414709848078965, 0.804306627215558, 0.6984559986366083, 0.5398415805455232, 0.35184490787569894, 0.16121107496476533, -0.0065407069689387, -0.13133744216365315, -0.20162936743561297, -0.21578929942337413, -0.18163979110507836, -0.11428272813296206, -0.032729152507152436, 0.04395992890538334, 0.10024812527586709, 0.12673508793268007, 0.121354197903323, 0.08901491514755587, 0.03987122267808871, -0.013332838992708288, -0.05822723495837525, -0.06272773781166564, -0.019934067090364063, 0.03245520841273295, 0.08257932528697066, 0.11788827534862069, 0.1279943847202572, 0.10728003423923389, 0.05666621451668112, -0.015905088066645427, -0.0964681698772501, -0.16739618809597498, -0.21071704065734573, -0.21174773278219358, -0.162314921526778, -0.0628822344847537, 0.07689817560810495, 0.23938885764158263, 0.4017547423895375, 0.5398415805455232, 0.6324217062813903, 0.6649966577360363, 0.6324217062813903, 0.5398415805455232, 0.4017547423895375, 0.23938885764158263, 0.07689817560810495, -0.0628822344847537, -0.162314921526778, -0.21174773278219358, -0.21071704065734573, -0.16739618809597498, -0.0964681698772501, -0.015905088066645427, 0.05666621451668112, 0.10728003423923389, 0.1279943847202572, 0.11788827534862069, 0.08257932528697066, 0.03245520841273295, -0.019934067090364063, -0.06272773781166564, -0.06849088196757172, -0.02880901662197588, 0.022104754680741478, 0.07313012167416309, 0.11205862411281925, 0.1282877460523285, 0.11535613684707621, 0.0727498464973691, 0.006539307734329662, -0.07136107141075336, -0.14523137672394124, -0.1985212210673702, -0.21718431835123952, -0.19269534164247415, -0.12411188138749576, -0.01872008860113564, 0.10891980905843199, 0.23938885764158263, 0.35184490787569894, 0.4278214842691431, 0.45464871341284085, 0.4278214842691431, 0.35184490787569894, 0.23938885764158263, 0.10891980905843199, -0.01872008860113564, -0.12411188138749576, -0.19269534164247415, -0.21718431835123952, -0.1985212210673702, -0.14523137672394124, -0.07136107141075336, 0.006539307734329662, 0.0727498464973691, 0.11535613684707621, 0.1282877460523285, 0.11205862411281925, 0.07313012167416309, 0.022104754680741478, -0.02880901662197588, -0.06849088196757172, -0.07495689987901655, -0.03951638564151894, 0.008983020970559483, 0.06040720535198953, 0.1030892321900898, 0.12632201382479508, 0.1227899979382399, 0.09040200935907731, 0.03309538278274085, -0.0396120270827976, -0.11428272813296206, -0.17613111363996398, -0.21199733150313538, -0.21311244844710367, -0.17706921681216475, -0.10856373127183089, -0.01872008860113564, 0.07689817560810495, 0.16121107496476533, 0.2189011346103909, 0.23938885764158263, 0.2189011346103909, 0.16121107496476533, 0.07689817560810495, -0.01872008860113564, -0.10856373127183089, -0.17706921681216475, -0.21311244844710367, -0.21199733150313538, -0.17613111363996398, -0.11428272813296206, -0.0396120270827976, 0.03309538278274085, 0.09040200935907731, 0.1227899979382399, 0.12632201382479508, 0.1030892321900898, 0.06040720535198953, 0.008983020970559483, -0.03951638564151894, -0.07495689987901655, -0.08139217990463421, -0.051405153532472825, -0.006536976075760194, 0.04431326426819208, 0.09026587102554127, 0.12071048357355876, 0.12759863509556327, 0.10728003423923389, 0.061467682588178515, -0.0029053968069243366, -0.07494068295407723, -0.1419020591482169, -0.1917848549326277, -0.21578929942337413, -0.21017152293525476, -0.17706921681216475, -0.12411188138749576, -0.0628822344847537, -0.0065407069689387, 0.0328941813182363, 0.0470400026866224, 0.0328941813182363, -0.0065407069689387, -0.0628822344847537, -0.12411188138749576, -0.17706921681216475, -0.21017152293525476, -0.21578929942337413, -0.1917848549326277, -0.1419020591482169, -0.07494068295407723, -0.0029053968069243366, 0.061467682588178515, 0.10728003423923389, 0.12759863509556327, 0.12071048357355876, 0.09026587102554127, 0.04431326426819208, -0.006536976075760194, -0.051405153532472825, -0.08139217990463421, -0.08690699622242735, -0.0635897584670486, -0.023792531570818704, 0.025053744421125373, 0.07313012167416309, 0.11020037089331168, 0.12772614095633136, 0.1206727784533444, 0.08861118769406219, 0.03586819257714133, -0.02931843708828789, -0.0964681698772501, -0.1549964036247235, -0.19636607441272252, -0.21578929942337413, -0.21311244844710367, -0.19269534164247415, -0.162314921526778, -0.13133744216365315, -0.10856373127183089, -0.10022377933989138, -0.10856373127183089, -0.13133744216365315, -0.162314921526778, -0.19269534164247415, -0.21311244844710367, -0.21578929942337413, -0.19636607441272252, -0.1549964036247235, -0.0964681698772501, -0.02931843708828789, 0.03586819257714133, 0.08861118769406219, 0.1206727784533444, 0.12772614095633136, 0.11020037089331168, 0.07313012167416309, 0.025053744421125373, -0.023792531570818704, -0.0635897584670486, -0.08690699622242735, -0.09050228958928583, -0.07495689987901655, -0.04177969822725026, 0.0032601210841151328, 0.051678659315078174, 0.09393966030864591, 0.121354197903323, 0.12781428895032207, 0.11099177345003862, 0.0727498464973691, 0.018686436816934687, -0.043081930958211126, -0.10362229026069987, -0.1549964036247235, -0.1917848549326277, -0.21199733150313538, -0.21718431835123952, -0.21174773278219358, -0.20162936743561297, -0.19269534164247415, -0.18920062382698205, -0.19269534164247415, -0.20162936743561297, -0.21174773278219358, -0.21718431835123952, -0.21199733150313538, -0.1917848549326277, -0.1549964036247235, -0.10362229026069987, -0.043081930958211126, 0.018686436816934687, 0.0727498464973691, 0.11099177345003862, 0.12781428895032207, 0.121354197903323, 0.09393966030864591, 0.051678659315078174, 0.0032601210841151328, -0.04177969822725026, -0.07495689987901655, -0.09050228958928583, -0.09115188436397047, -0.08421802680997838, -0.05915252370129161, -0.019934067090364063, 0.026531247839761095, 0.07174463418130257, 0.1072644357230806, 0.12632201382479508, 0.12506666356996518, 0.10318836687199265, 0.06380703560977322, 0.012678882219140045, -0.043081930958211126, -0.0964681698772501, -0.1419020591482169, -0.17613111363996398, -0.1985212210673702, -0.21071704065734573, -0.21578929942337413, -0.217106624273501, -0.21722891503668823, -0.217106624273501, -0.21578929942337413, -0.21071704065734573, -0.1985212210673702, -0.17613111363996398, -0.1419020591482169, -0.0964681698772501, -0.043081930958211126, 0.012678882219140045, 0.06380703560977322, 0.10318836687199265, 0.12506666356996518, 0.12632201382479508, 0.1072644357230806, 0.07174463418130257, 0.026531247839761095, -0.019934067090364063, -0.05915252370129161, -0.08421802680997838, -0.09115188436397047, -0.08792034505189632, -0.09001568643529065, -0.07429153508625874, -0.0428948164978531, -0.000975520434412708, 0.04431326426819208, 0.08518823525005793, 0.11468947045883603, 0.12791446519229313, 0.1227899979382399, 0.10024812527586709, 0.06380703560977322, 0.018686436816934687, -0.02931843708828789, -0.07494068295407723, -0.11428272813296206, -0.14523137672394124, -0.16739618809597498, -0.18163979110507836, -0.1893661116834589, -0.1917848549326277, -0.1893661116834589, -0.18163979110507836, -0.16739618809597498, -0.14523137672394124, -0.11428272813296206, -0.07494068295407723, -0.02931843708828789, 0.018686436816934687, 0.06380703560977322, 0.10024812527586709, 0.1227899979382399, 0.12791446519229313, 0.11468947045883603, 0.08518823525005793, 0.04431326426819208, -0.000975520434412708, -0.0428948164978531, -0.07429153508625874, -0.09001568643529065, -0.08792034505189632, -0.08010823579141367, -0.09108220848970375, -0.08545030284658549, -0.0635897584670486, -0.02880901662197588, 0.013324064862461698, 0.05606169383989522, 0.09272862238309293, 0.11788827534862069, 0.12819563383513788, 0.1227899979382399, 0.10318836687199265, 0.0727498464973691, 0.03586819257714133, -0.0029053968069243366, -0.0396120270827976, -0.07136107141075336, -0.0964681698772501, -0.11428272813296206, -0.12481027146866008, -0.1282800591946167, -0.12481027146866008, -0.11428272813296206, -0.0964681698772501, -0.07136107141075336, -0.0396120270827976, -0.0029053968069243366, 0.03586819257714133, 0.0727498464973691, 0.10318836687199265, 0.1227899979382399, 0.12819563383513788, 0.11788827534862069, 0.09272862238309293, 0.05606169383989522, 0.013324064862461698, -0.02880901662197588, -0.0635897584670486, -0.08545030284658549, -0.09108220848970375, -0.08010823579141367, -0.06740715089491094, -0.08643675803630407, -0.09097419633026813, -0.07979810941024242, -0.05440211108893698, -0.018630431167854764, 0.022104754680741478, 0.06184586593944633, 0.09513663192183475, 0.11788827534862069, 0.12791446519229313, 0.12506666356996518, 0.11099177345003862, 0.08861118769406219, 0.061467682588178515, 0.03309538278274085, 0.006539307734329662, -0.015905088066645427, -0.032729152507152436, -0.043081930958211126, -0.04656924969982098, -0.043081930958211126, -0.032729152507152436, -0.015905088066645427, 0.006539307734329662, 0.03309538278274085, 0.061467682588178515, 0.08861118769406219, 0.11099177345003862, 0.12506666356996518, 0.12791446519229313, 0.11788827534862069, 0.09513663192183475, 0.06184586593944633, 0.022104754680741478, -0.018630431167854764, -0.05440211108893698, -0.07979810941024242, -0.09097419633026813, -0.08643675803630407, -0.06740715089491094, -0.050038523052220896, -0.0755937821931744, -0.08956773031925042, -0.0894139480404508, -0.07495689987901655, -0.04830079537758751, -0.013332838992708288, 0.025053744421125373, 0.06184586593944633, 0.09272862238309293, 0.11468947045883603, 0.12632201382479508, 0.12781428895032207, 0.1206727784533444, 0.10728003423923389, 0.09040200935907731, 0.0727498464973691, 0.05666621451668112, 0.04395992890538334, 0.03586819257714133, 0.03309538278274085, 0.03586819257714133, 0.04395992890538334, 0.05666621451668112, 0.0727498464973691, 0.09040200935907731, 0.10728003423923389, 0.1206727784533444, 0.12781428895032207, 0.12632201382479508, 0.11468947045883603, 0.09272862238309293, 0.06184586593944633, 0.025053744421125373, -0.013332838992708288, -0.04830079537758751, -0.07495689987901655, -0.0894139480404508, -0.08956773031925042, -0.0755937821931744, -0.050038523052220896, -0.02884524481214462, -0.05874532782785397, -0.08056977983257328, -0.09080401018805377, -0.08786057577066687, -0.07221555931565682, -0.046172733100891844, -0.013332838992708288, 0.022104754680741478, 0.05606169383989522, 0.08518823525005793, 0.1072644357230806, 0.121354197903323, 0.12772614095633136, 0.12759863509556327, 0.1227899979382399, 0.11535613684707621, 0.10728003423923389, 0.10024812527586709, 0.09551761666147543, 0.09385522838839844, 0.09551761666147543, 0.10024812527586709, 0.10728003423923389, 0.11535613684707621, 0.1227899979382399, 0.12759863509556327, 0.12772614095633136, 0.121354197903323, 0.1072644357230806, 0.08518823525005793, 0.05606169383989522, 0.022104754680741478, -0.013332838992708288, -0.046172733100891844, -0.07221555931565682, -0.08786057577066687, -0.09080401018805377, -0.08056977983257328, -0.05874532782785397, -0.02884524481214462, -0.005305751788096055, -0.03687486910392919, -0.0641838159733434, -0.08316007856929132, -0.09115188436397047, -0.08723804412635582, -0.07221555931565682, -0.04830079537758751, -0.018630431167854764, 0.013324064862461698, 0.04431326426819208, 0.07174463418130257, 0.09393966030864591, 0.11020037089331168, 0.12071048357355876, 0.12632201382479508, 0.1282877460523285, 0.1279943847202572, 0.12673508793268007, 0.12554007460949038, 0.12506666356996518, 0.12554007460949038, 0.12673508793268007, 0.1279943847202572, 0.1282877460523285, 0.12632201382479508, 0.12071048357355876, 0.11020037089331168, 0.09393966030864591, 0.07174463418130257, 0.04431326426819208, 0.013324064862461698, -0.018630431167854764, -0.04830079537758751, -0.07221555931565682, -0.08723804412635582, -0.09115188436397047, -0.08316007856929132, -0.0641838159733434, -0.03687486910392919, -0.005305751788096055, 0.018552192423288767, -0.011763804124600832, -0.04160737907596747, -0.06677409789954362, -0.083953080486421, -0.09115188436397047, -0.08786057577066687, -0.07495689987901655, -0.05440211108893698, -0.02880901662197588, -0.000975520434412708, 0.026531247839761095, 0.051678659315078174, 0.07313012167416309, 0.09026587102554127, 0.1030892321900898, 0.11205862411281925, 0.11788827534862069, 0.121354197903323, 0.12313056789780169, 0.12366978082792272, 0.12313056789780169, 0.121354197903323, 0.11788827534862069, 0.11205862411281925, 0.1030892321900898, 0.09026587102554127, 0.07313012167416309, 0.051678659315078174, 0.026531247839761095, -0.000975520434412708, -0.02880901662197588, -0.05440211108893698, -0.07495689987901655, -0.08786057577066687, -0.09115188436397047, -0.083953080486421, -0.06677409789954362, -0.04160737907596747, -0.011763804124600832, 0.018552192423288767, 0.04034617895060916, 0.014135155449061413, -0.015014039828919575, -0.043166197954687714, -0.06677409789954362, -0.08316007856929132, -0.09080401018805377, -0.0894139480404508, -0.07979810941024242, -0.0635897584670486, -0.0428948164978531, -0.019934067090364063, 0.0032601210841151328, 0.025053744421125373, 0.04431326426819208, 0.06040720535198953, 0.07313012167416309, 0.08257932528697066, 0.08901491514755587, 0.09272862238309293, 0.09393966030864591, 0.09272862238309293, 0.08901491514755587, 0.08257932528697066, 0.07313012167416309, 0.06040720535198953, 0.04431326426819208, 0.025053744421125373, 0.0032601210841151328, -0.019934067090364063, -0.0428948164978531, -0.0635897584670486, -0.07979810941024242, -0.0894139480404508, -0.09080401018805377, -0.08316007856929132, -0.06677409789954362, -0.043166197954687714, -0.015014039828919575, 0.014135155449061413, 0.04034617895060916, 0.05763057548928058, 0.03796178393906855, 0.012637541642049447, -0.015014039828919575, -0.04160737907596747, -0.0641838159733434, -0.08056977983257328, -0.08956773031925042, -0.09097419633026813, -0.08545030284658549, -0.07429153508625874, -0.05915252370129161, -0.04177969822725026, -0.023792531570818704, -0.006536976075760194, 0.008983020970559483, 0.022104754680741478, 0.03245520841273295, 0.03987122267808871, 0.04431326426819208, 0.04579094280463962, 0.04431326426819208, 0.03987122267808871, 0.03245520841273295, 0.022104754680741478, 0.008983020970559483, -0.006536976075760194, -0.023792531570818704, -0.04177969822725026, -0.05915252370129161, -0.07429153508625874, -0.08545030284658549, -0.09097419633026813, -0.08956773031925042, -0.08056977983257328, -0.0641838159733434, -0.04160737907596747, -0.015014039828919575, 0.012637541642049447, 0.03796178393906855, 0.05763057548928058, 0.06825111305414358, 0.05682630444012635, 0.03796178393906855, 0.014135155449061413, -0.011763804124600832, -0.03687486910392919, -0.05874532782785397, -0.0755937821931744, -0.08643675803630407, -0.09108220848970375, -0.09001568643529065, -0.08421802680997838, -0.07495689987901655, -0.0635897584670486, -0.051405153532472825, -0.03951638564151894, -0.02880901662197588, -0.019934067090364063, -0.013332838992708288, -0.009277249905099165, -0.007910644259137822, -0.009277249905099165, -0.013332838992708288, -0.019934067090364063, -0.02880901662197588, -0.03951638564151894, -0.051405153532472825, -0.0635897584670486, -0.07495689987901655, -0.08421802680997838, -0.09001568643529065, -0.09108220848970375, -0.08643675803630407, -0.0755937821931744, -0.05874532782785397, -0.03687486910392919, -0.011763804124600832, 0.014135155449061413, 0.03796178393906855, 0.05682630444012635, 0.06825111305414358, 0.07070980527467927, 0.06825111305414358, 0.05763057548928058, 0.04034617895060916, 0.018552192423288767, -0.005305751788096055, -0.02884524481214462, -0.050038523052220896, -0.06740715089491094, -0.08010823579141367, -0.08792034505189632, -0.09115188436397047, -0.09050228958928583, -0.08690699622242735, -0.08139217990463421, -0.07495689987901655, -0.06849088196757172, -0.06272773781166564, -0.05822723495837525, -0.05537684587809335, -0.05440211108893698, -0.05537684587809335, -0.05822723495837525, -0.06272773781166564, -0.06849088196757172, -0.07495689987901655, -0.08139217990463421, -0.08690699622242735, -0.09050228958928583, -0.09115188436397047, -0.08792034505189632, -0.08010823579141367, -0.06740715089491094, -0.050038523052220896, -0.02884524481214462, -0.005305751788096055, 0.018552192423288767, 0.04034617895060916, 0.05763057548928058, 0.06825111305414358, 0.07070980527467927]" ] } ], "prompt_number": 2 }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Wireframe" ] }, { "cell_type": "code", "collapsed": false, "input": [ "plot = Nyaplot::Plot3D.new\n", "plot.add(:wireframe, x, y, z)\n", "plot.show" ], "language": "python", "metadata": {}, "outputs": [ { "html": [ "
\n", "\n" ], "metadata": {}, "output_type": "pyout", "prompt_number": 3, "text": [ "#