Skip to content

Instantly share code, notes, and snippets.

@max6cn
Created March 17, 2016 20:39
Show Gist options
  • Save max6cn/ac26909650fa96c2a5f8 to your computer and use it in GitHub Desktop.
Save max6cn/ac26909650fa96c2a5f8 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"metadata": {
"collapsed": false,
"trusted": true
},
"cell_type": "code",
"source": "A = [ 1, 1, 2; 3, 5, 8; 13, 21, 34 ];\nB = rand (3, 3);\nB",
"execution_count": 1,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": "B =\n\n 3.0866e-01 6.3521e-01 8.7787e-01\n 4.9387e-01 7.3666e-01 8.4493e-04\n 7.5120e-01 9.4391e-02 2.1586e-02\n\n"
}
]
},
{
"metadata": {
"collapsed": false,
"trusted": true
},
"cell_type": "code",
"source": "1+2",
"execution_count": 2,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": "ans = 3\r\n"
}
]
},
{
"metadata": {
"collapsed": false,
"trusted": true
},
"cell_type": "code",
"source": "x = linspace(0, 2*pi, 100);\na = cos(2*x);\nb = sin(4*x);\nc = 2*sin(x);\n\nfigure;\nplot(x, a,'g');\nhold on;\nplot(x, b,'b');\nplot(x, c,'r');\n",
"execution_count": 19,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<IPython.core.display.SVG object>",
"image/svg+xml": "<svg height=\"420px\" viewBox=\"0 0 268 201\" width=\"560px\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n\n<title>Gnuplot</title>\n<desc>Produced by GNUPLOT 4.6 patchlevel 5 (Gentoo revision r0) </desc>\n\n<g id=\"gnuplot_canvas\">\n\n<rect fill=\"none\" height=\"201\" width=\"268\" x=\"0\" y=\"0\"/>\n<defs>\n\n\t<circle id=\"gpDot\" r=\"0.5\" stroke-width=\"0.5\"/>\n\t<path d=\"M-1,0 h2 M0,-1 v2\" id=\"gpPt0\" stroke=\"currentColor\" stroke-width=\"0.333\"/>\n\t<path d=\"M-1,-1 L1,1 M1,-1 L-1,1\" id=\"gpPt1\" stroke=\"currentColor\" stroke-width=\"0.333\"/>\n\t<path d=\"M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1\" id=\"gpPt2\" stroke=\"currentColor\" stroke-width=\"0.333\"/>\n\t<rect height=\"2\" id=\"gpPt3\" stroke=\"currentColor\" stroke-width=\"0.333\" width=\"2\" x=\"-1\" y=\"-1\"/>\n\t<rect fill=\"currentColor\" height=\"2\" id=\"gpPt4\" stroke=\"currentColor\" stroke-width=\"0.333\" width=\"2\" x=\"-1\" y=\"-1\"/>\n\t<circle cx=\"0\" cy=\"0\" id=\"gpPt5\" r=\"1\" stroke=\"currentColor\" stroke-width=\"0.333\"/>\n\t<use fill=\"currentColor\" id=\"gpPt6\" stroke=\"none\" xlink:href=\"#gpPt5\"/>\n\t<path d=\"M0,-1.33 L-1.33,0.67 L1.33,0.67 z\" id=\"gpPt7\" stroke=\"currentColor\" stroke-width=\"0.333\"/>\n\t<use fill=\"currentColor\" id=\"gpPt8\" stroke=\"none\" xlink:href=\"#gpPt7\"/>\n\t<use id=\"gpPt9\" stroke=\"currentColor\" transform=\"rotate(180)\" xlink:href=\"#gpPt7\"/>\n\t<use fill=\"currentColor\" id=\"gpPt10\" stroke=\"none\" xlink:href=\"#gpPt9\"/>\n\t<use id=\"gpPt11\" stroke=\"currentColor\" transform=\"rotate(45)\" xlink:href=\"#gpPt3\"/>\n\t<use fill=\"currentColor\" id=\"gpPt12\" stroke=\"none\" xlink:href=\"#gpPt11\"/>\n</defs>\n<g style=\"fill:none; color:white; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n</g>\n<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n\t<g style=\"stroke:none; shape-rendering:crispEdges\">\n\t\t<polygon fill=\"rgb(255, 255, 255)\" points=\"36.4,177.6 251.8,177.6 251.8,11.4 36.4,11.4 \"/>\n\t</g>\n\t<path d=\"M36.4,177.6 L36.4,11.4 L251.8,11.4 L251.8,177.6 L36.4,177.6 \" stroke=\"black\"/></g>\n<g style=\"fill:none; color:black; stroke:black; stroke-width:0.50; stroke-linecap:butt; stroke-linejoin:miter\">\n\t<path d=\"M36.4,177.6 L44.8,177.6 M251.9,177.6 L243.5,177.6 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(30.8,181.3)\">\n\t\t<text><tspan>-2</tspan></text>\n\t</g>\n\t<path d=\"M36.4,156.8 L44.8,156.8 M251.9,156.8 L243.5,156.8 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(30.8,160.5)\">\n\t\t<text><tspan>-1.5</tspan></text>\n\t</g>\n\t<path d=\"M36.4,136.0 L44.8,136.0 M251.9,136.0 L243.5,136.0 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(30.8,139.7)\">\n\t\t<text><tspan>-1</tspan></text>\n\t</g>\n\t<path d=\"M36.4,115.2 L44.8,115.2 M251.9,115.2 L243.5,115.2 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(30.8,118.9)\">\n\t\t<text><tspan>-0.5</tspan></text>\n\t</g>\n\t<path d=\"M36.4,94.4 L44.8,94.4 M251.9,94.4 L243.5,94.4 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(30.8,98.1)\">\n\t\t<text><tspan>0</tspan></text>\n\t</g>\n\t<path d=\"M36.4,73.7 L44.8,73.7 M251.9,73.7 L243.5,73.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(30.8,77.4)\">\n\t\t<text><tspan>0.5</tspan></text>\n\t</g>\n\t<path d=\"M36.4,52.9 L44.8,52.9 M251.9,52.9 L243.5,52.9 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(30.8,56.6)\">\n\t\t<text><tspan>1</tspan></text>\n\t</g>\n\t<path d=\"M36.4,32.1 L44.8,32.1 M251.9,32.1 L243.5,32.1 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(30.8,35.8)\">\n\t\t<text><tspan>1.5</tspan></text>\n\t</g>\n\t<path d=\"M36.4,11.3 L44.8,11.3 M251.9,11.3 L243.5,11.3 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(30.8,15.0)\">\n\t\t<text><tspan>2</tspan></text>\n\t</g>\n\t<path d=\"M36.4,177.6 L36.4,169.2 M36.4,11.3 L36.4,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(36.4,193.3)\">\n\t\t<text><tspan>0</tspan></text>\n\t</g>\n\t<path d=\"M67.2,177.6 L67.2,169.2 M67.2,11.3 L67.2,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(67.2,193.3)\">\n\t\t<text><tspan>1</tspan></text>\n\t</g>\n\t<path d=\"M98.0,177.6 L98.0,169.2 M98.0,11.3 L98.0,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(98.0,193.3)\">\n\t\t<text><tspan>2</tspan></text>\n\t</g>\n\t<path d=\"M128.8,177.6 L128.8,169.2 M128.8,11.3 L128.8,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(128.8,193.3)\">\n\t\t<text><tspan>3</tspan></text>\n\t</g>\n\t<path d=\"M159.5,177.6 L159.5,169.2 M159.5,11.3 L159.5,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(159.5,193.3)\">\n\t\t<text><tspan>4</tspan></text>\n\t</g>\n\t<path d=\"M190.3,177.6 L190.3,169.2 M190.3,11.3 L190.3,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(190.3,193.3)\">\n\t\t<text><tspan>5</tspan></text>\n\t</g>\n\t<path d=\"M221.1,177.6 L221.1,169.2 M221.1,11.3 L221.1,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(221.1,193.3)\">\n\t\t<text><tspan>6</tspan></text>\n\t</g>\n\t<path d=\"M251.9,177.6 L251.9,169.2 M251.9,11.3 L251.9,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(251.9,193.3)\">\n\t\t<text><tspan>7</tspan></text>\n\t</g>\n\t<path d=\"M36.4,11.3 L36.4,177.6 L251.9,177.6 L251.9,11.3 L36.4,11.3 Z \" stroke=\"black\"/></g>\n\t<g id=\"gnuplot_plot_1a\"><title>gnuplot_plot_1a</title>\n<g style=\"fill:none; color:red; stroke:currentColor; stroke-width:0.50; stroke-linecap:butt; stroke-linejoin:miter\">\n\t<path d=\"M36.4,52.9 L38.4,53.2 L40.3,54.2 L42.3,55.9 L44.2,58.1 L46.2,61.0 L48.1,64.4 L50.1,68.2 L52.0,72.5 L54.0,77.2 L55.9,82.1 L57.9,87.2 L59.8,92.5 L61.8,97.7 L63.8,103.0 L65.7,108.0 L67.7,112.9 L69.6,117.5 L71.6,121.7 L73.5,125.4 L75.5,128.7 L77.4,131.4 L79.4,133.5 L81.3,135.0 L83.3,135.8 L85.2,136.0 L87.2,135.5 L89.2,134.3 L91.1,132.5 L93.1,130.1 L95.0,127.1 L97.0,123.6 L98.9,119.6 L100.9,115.2 L102.8,110.5 L104.8,105.5 L106.7,100.4 L108.7,95.1 L110.6,89.8 L112.6,84.6 L114.6,79.6 L116.5,74.8 L118.5,70.3 L120.4,66.2 L122.4,62.6 L124.3,59.5 L126.3,56.9 L128.2,55.0 L130.2,53.6 L132.1,53.0 L134.1,53.0 L136.0,53.6 L138.0,55.0 L140.0,56.9 L141.9,59.5 L143.9,62.6 L145.8,66.2 L147.8,70.3 L149.7,74.8 L151.7,79.6 L153.6,84.6 L155.6,89.8 L157.5,95.1 L159.5,100.4 L161.4,105.5 L163.4,110.5 L165.4,115.2 L167.3,119.6 L169.3,123.6 L171.2,127.1 L173.2,130.1 L175.1,132.5 L177.1,134.3 L179.0,135.5 L181.0,136.0 L182.9,135.8 L184.9,135.0 L186.8,133.5 L188.8,131.4 L190.8,128.7 L192.7,125.4 L194.7,121.7 L196.6,117.5 L198.6,112.9 L200.5,108.0 L202.5,103.0 L204.4,97.7 L206.4,92.5 L208.3,87.2 L210.3,82.1 L212.2,77.2 L214.2,72.5 L216.2,68.2 L218.1,64.4 L220.1,61.0 L222.0,58.1 L224.0,55.9 L225.9,54.2 L227.9,53.2 L229.8,52.9 \" stroke=\"rgb( 0, 255, 0)\"/></g>\n\t</g>\n\t<g id=\"gnuplot_plot_2a\"><title>gnuplot_plot_2a</title>\n<g style=\"fill:none; color:red; stroke:currentColor; stroke-width:0.50; stroke-linecap:butt; stroke-linejoin:miter\">\n\t<path d=\"M36.4,94.4 L38.4,84.0 L40.3,74.2 L42.3,65.8 L44.2,59.1 L46.2,54.7 L48.1,52.9 L50.1,53.8 L52.0,57.2 L54.0,63.0 L55.9,70.9 L57.9,80.2 L59.8,90.5 L61.8,101.0 L63.8,111.1 L65.7,120.1 L67.7,127.5 L69.6,132.8 L71.6,135.6 L73.5,135.8 L75.5,133.3 L77.4,128.3 L79.4,121.2 L81.3,112.3 L83.3,102.3 L85.2,91.8 L87.2,81.5 L89.2,72.0 L91.1,63.9 L93.1,57.8 L95.0,54.0 L97.0,52.9 L98.9,54.4 L100.9,58.4 L102.8,64.8 L104.8,73.1 L106.7,82.7 L108.7,93.1 L110.6,103.6 L112.6,113.5 L114.6,122.2 L116.5,129.1 L118.5,133.7 L120.4,135.9 L122.4,135.4 L124.3,132.3 L126.3,126.7 L128.2,119.1 L130.2,109.9 L132.1,99.7 L134.1,89.2 L136.0,79.0 L138.0,69.8 L140.0,62.2 L141.9,56.6 L143.9,53.5 L145.8,53.0 L147.8,55.2 L149.7,59.8 L151.7,66.7 L153.6,75.4 L155.6,85.3 L157.5,95.8 L159.5,106.2 L161.4,115.8 L163.4,124.1 L165.4,130.5 L167.3,134.5 L169.3,136.0 L171.2,134.9 L173.2,131.1 L175.1,125.0 L177.1,116.9 L179.0,107.4 L181.0,97.1 L182.9,86.6 L184.9,76.6 L186.8,67.7 L188.8,60.6 L190.8,55.6 L192.7,53.1 L194.7,53.3 L196.6,56.1 L198.6,61.4 L200.5,68.8 L202.5,77.8 L204.4,87.9 L206.4,98.4 L208.3,108.7 L210.3,118.0 L212.2,125.9 L214.2,131.7 L216.2,135.1 L218.1,136.0 L220.1,134.2 L222.0,129.8 L224.0,123.1 L225.9,114.7 L227.9,104.9 L229.8,94.5 \" stroke=\"rgb( 0, 0, 255)\"/></g>\n\t</g>\n\t<g id=\"gnuplot_plot_3a\"><title>gnuplot_plot_3a</title>\n<g style=\"fill:none; color:red; stroke:currentColor; stroke-width:0.50; stroke-linecap:butt; stroke-linejoin:miter\">\n\t<path d=\"M36.4,94.4 L38.4,89.2 L40.3,83.9 L42.3,78.7 L44.2,73.6 L46.2,68.5 L48.1,63.5 L50.1,58.7 L52.0,54.0 L54.0,49.5 L55.9,45.1 L57.9,41.0 L59.8,37.1 L61.8,33.4 L63.8,29.9 L65.7,26.7 L67.7,23.8 L69.6,21.2 L71.6,18.8 L73.5,16.8 L75.5,15.0 L77.4,13.6 L79.4,12.6 L81.3,11.8 L83.3,11.4 L85.2,11.3 L87.2,11.6 L89.2,12.1 L91.1,13.1 L93.1,14.3 L95.0,15.9 L97.0,17.8 L98.9,19.9 L100.9,22.4 L102.8,25.2 L104.8,28.3 L106.7,31.6 L108.7,35.2 L110.6,39.0 L112.6,43.1 L114.6,47.3 L116.5,51.7 L118.5,56.3 L120.4,61.1 L122.4,66.0 L124.3,71.0 L126.3,76.1 L128.2,81.3 L130.2,86.5 L132.1,91.8 L134.1,97.1 L136.0,102.4 L138.0,107.6 L140.0,112.8 L141.9,117.9 L143.9,122.9 L145.8,127.8 L147.8,132.6 L149.7,137.2 L151.7,141.6 L153.6,145.8 L155.6,149.9 L157.5,153.7 L159.5,157.3 L161.4,160.6 L163.4,163.7 L165.4,166.5 L167.3,169.0 L169.3,171.1 L171.2,173.0 L173.2,174.6 L175.1,175.8 L177.1,176.8 L179.0,177.3 L181.0,177.6 L182.9,177.5 L184.9,177.1 L186.8,176.3 L188.8,175.3 L190.8,173.9 L192.7,172.1 L194.7,170.1 L196.6,167.7 L198.6,165.1 L200.5,162.2 L202.5,159.0 L204.4,155.5 L206.4,151.8 L208.3,147.9 L210.3,143.8 L212.2,139.4 L214.2,134.9 L216.2,130.2 L218.1,125.4 L220.1,120.4 L222.0,115.3 L224.0,110.2 L225.9,105.0 L227.9,99.7 L229.8,94.5 \" stroke=\"rgb(255, 0, 0)\"/></g>\n\t</g>\n<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:0.50; stroke-linecap:butt; stroke-linejoin:miter\">\n</g>\n</g>\n</svg>"
},
"metadata": {}
}
]
},
{
"metadata": {
"collapsed": false,
"trusted": true
},
"cell_type": "code",
"source": "figure;\nhold off;\nplot(x, a+b+c);",
"execution_count": 18,
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<IPython.core.display.SVG object>",
"image/svg+xml": "<svg height=\"420px\" viewBox=\"0 0 268 201\" width=\"560px\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n\n<title>Gnuplot</title>\n<desc>Produced by GNUPLOT 4.6 patchlevel 5 (Gentoo revision r0) </desc>\n\n<g id=\"gnuplot_canvas\">\n\n<rect fill=\"none\" height=\"201\" width=\"268\" x=\"0\" y=\"0\"/>\n<defs>\n\n\t<circle id=\"gpDot\" r=\"0.5\" stroke-width=\"0.5\"/>\n\t<path d=\"M-1,0 h2 M0,-1 v2\" id=\"gpPt0\" stroke=\"currentColor\" stroke-width=\"0.333\"/>\n\t<path d=\"M-1,-1 L1,1 M1,-1 L-1,1\" id=\"gpPt1\" stroke=\"currentColor\" stroke-width=\"0.333\"/>\n\t<path d=\"M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1\" id=\"gpPt2\" stroke=\"currentColor\" stroke-width=\"0.333\"/>\n\t<rect height=\"2\" id=\"gpPt3\" stroke=\"currentColor\" stroke-width=\"0.333\" width=\"2\" x=\"-1\" y=\"-1\"/>\n\t<rect fill=\"currentColor\" height=\"2\" id=\"gpPt4\" stroke=\"currentColor\" stroke-width=\"0.333\" width=\"2\" x=\"-1\" y=\"-1\"/>\n\t<circle cx=\"0\" cy=\"0\" id=\"gpPt5\" r=\"1\" stroke=\"currentColor\" stroke-width=\"0.333\"/>\n\t<use fill=\"currentColor\" id=\"gpPt6\" stroke=\"none\" xlink:href=\"#gpPt5\"/>\n\t<path d=\"M0,-1.33 L-1.33,0.67 L1.33,0.67 z\" id=\"gpPt7\" stroke=\"currentColor\" stroke-width=\"0.333\"/>\n\t<use fill=\"currentColor\" id=\"gpPt8\" stroke=\"none\" xlink:href=\"#gpPt7\"/>\n\t<use id=\"gpPt9\" stroke=\"currentColor\" transform=\"rotate(180)\" xlink:href=\"#gpPt7\"/>\n\t<use fill=\"currentColor\" id=\"gpPt10\" stroke=\"none\" xlink:href=\"#gpPt9\"/>\n\t<use id=\"gpPt11\" stroke=\"currentColor\" transform=\"rotate(45)\" xlink:href=\"#gpPt3\"/>\n\t<use fill=\"currentColor\" id=\"gpPt12\" stroke=\"none\" xlink:href=\"#gpPt11\"/>\n</defs>\n<g style=\"fill:none; color:white; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n</g>\n<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:1.00; stroke-linecap:butt; stroke-linejoin:miter\">\n\t<g style=\"stroke:none; shape-rendering:crispEdges\">\n\t\t<polygon fill=\"rgb(255, 255, 255)\" points=\"25.2,177.6 251.8,177.6 251.8,11.4 25.2,11.4 \"/>\n\t</g>\n\t<path d=\"M25.2,177.6 L25.2,11.4 L251.8,11.4 L251.8,177.6 L25.2,177.6 \" stroke=\"black\"/></g>\n<g style=\"fill:none; color:black; stroke:black; stroke-width:0.50; stroke-linecap:butt; stroke-linejoin:miter\">\n\t<path d=\"M25.2,177.6 L33.6,177.6 M251.9,177.6 L243.5,177.6 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(19.6,181.3)\">\n\t\t<text><tspan>-4</tspan></text>\n\t</g>\n\t<path d=\"M25.2,153.8 L33.6,153.8 M251.9,153.8 L243.5,153.8 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(19.6,157.5)\">\n\t\t<text><tspan>-3</tspan></text>\n\t</g>\n\t<path d=\"M25.2,130.1 L33.6,130.1 M251.9,130.1 L243.5,130.1 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(19.6,133.8)\">\n\t\t<text><tspan>-2</tspan></text>\n\t</g>\n\t<path d=\"M25.2,106.3 L33.6,106.3 M251.9,106.3 L243.5,106.3 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(19.6,110.0)\">\n\t\t<text><tspan>-1</tspan></text>\n\t</g>\n\t<path d=\"M25.2,82.6 L33.6,82.6 M251.9,82.6 L243.5,82.6 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(19.6,86.3)\">\n\t\t<text><tspan>0</tspan></text>\n\t</g>\n\t<path d=\"M25.2,58.8 L33.6,58.8 M251.9,58.8 L243.5,58.8 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(19.6,62.5)\">\n\t\t<text><tspan>1</tspan></text>\n\t</g>\n\t<path d=\"M25.2,35.1 L33.6,35.1 M251.9,35.1 L243.5,35.1 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(19.6,38.8)\">\n\t\t<text><tspan>2</tspan></text>\n\t</g>\n\t<path d=\"M25.2,11.3 L33.6,11.3 M251.9,11.3 L243.5,11.3 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:end\" transform=\"translate(19.6,15.0)\">\n\t\t<text><tspan>3</tspan></text>\n\t</g>\n\t<path d=\"M25.2,177.6 L25.2,169.2 M25.2,11.3 L25.2,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(25.2,193.3)\">\n\t\t<text><tspan>0</tspan></text>\n\t</g>\n\t<path d=\"M57.6,177.6 L57.6,169.2 M57.6,11.3 L57.6,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(57.6,193.3)\">\n\t\t<text><tspan>1</tspan></text>\n\t</g>\n\t<path d=\"M90.0,177.6 L90.0,169.2 M90.0,11.3 L90.0,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(90.0,193.3)\">\n\t\t<text><tspan>2</tspan></text>\n\t</g>\n\t<path d=\"M122.4,177.6 L122.4,169.2 M122.4,11.3 L122.4,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(122.4,193.3)\">\n\t\t<text><tspan>3</tspan></text>\n\t</g>\n\t<path d=\"M154.7,177.6 L154.7,169.2 M154.7,11.3 L154.7,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(154.7,193.3)\">\n\t\t<text><tspan>4</tspan></text>\n\t</g>\n\t<path d=\"M187.1,177.6 L187.1,169.2 M187.1,11.3 L187.1,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(187.1,193.3)\">\n\t\t<text><tspan>5</tspan></text>\n\t</g>\n\t<path d=\"M219.5,177.6 L219.5,169.2 M219.5,11.3 L219.5,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(219.5,193.3)\">\n\t\t<text><tspan>6</tspan></text>\n\t</g>\n\t<path d=\"M251.9,177.6 L251.9,169.2 M251.9,11.3 L251.9,19.7 \" stroke=\"black\"/>\t<g style=\"stroke:none; fill:rgb(0,0,0); font-family:{}; font-size:10.00pt; text-anchor:middle\" transform=\"translate(251.9,193.3)\">\n\t\t<text><tspan>7</tspan></text>\n\t</g>\n\t<path d=\"M25.2,11.3 L25.2,177.6 L251.9,177.6 L251.9,11.3 L25.2,11.3 Z \" stroke=\"black\"/></g>\n\t<g id=\"gnuplot_plot_1a\"><title>gnuplot_plot_1a</title>\n<g style=\"fill:none; color:red; stroke:currentColor; stroke-width:0.50; stroke-linecap:butt; stroke-linejoin:miter\">\n\t<path d=\"M25.2,58.8 L27.3,50.0 L29.3,42.0 L31.4,35.1 L33.4,29.7 L35.5,25.9 L37.5,24.0 L39.6,23.9 L41.6,25.7 L43.7,29.1 L45.8,33.9 L47.8,39.8 L49.9,46.4 L51.9,53.3 L54.0,60.1 L56.0,66.3 L58.1,71.7 L60.1,75.8 L62.2,78.4 L64.3,79.5 L66.3,79.0 L68.4,76.9 L70.4,73.4 L72.5,68.7 L74.5,63.3 L76.6,57.3 L78.6,51.3 L80.7,45.5 L82.8,40.4 L84.8,36.2 L86.9,33.3 L88.9,31.7 L91.0,31.5 L93.0,32.7 L95.1,35.3 L97.1,38.9 L99.2,43.4 L101.3,48.3 L103.3,53.5 L105.4,58.5 L107.4,63.0 L109.5,66.7 L111.5,69.5 L113.6,71.1 L115.6,71.5 L117.7,70.8 L119.7,69.1 L121.8,66.6 L123.9,63.6 L125.9,60.4 L128.0,57.4 L130.0,54.9 L132.1,53.4 L134.1,53.1 L136.2,54.4 L138.2,57.2 L140.3,61.8 L142.4,68.1 L144.4,76.0 L146.5,85.2 L148.5,95.5 L150.6,106.4 L152.6,117.6 L154.7,128.6 L156.7,138.9 L158.8,148.2 L160.9,156.2 L162.9,162.4 L165.0,166.8 L167.0,169.2 L169.1,169.7 L171.1,168.3 L173.2,165.2 L175.2,160.8 L177.3,155.3 L179.4,149.2 L181.4,142.8 L183.5,136.4 L185.5,130.5 L187.6,125.3 L189.6,121.1 L191.7,117.8 L193.7,115.7 L195.8,114.6 L197.9,114.4 L199.9,114.8 L202.0,115.6 L204.0,116.5 L206.1,117.1 L208.1,117.2 L210.2,116.3 L212.2,114.4 L214.3,111.3 L216.4,106.8 L218.4,101.0 L220.5,93.9 L222.5,85.9 L224.6,77.1 L226.6,68.0 L228.7,58.8 \" stroke=\"rgb( 0, 0, 255)\"/></g>\n\t</g>\n<g style=\"fill:none; color:black; stroke:currentColor; stroke-width:0.50; stroke-linecap:butt; stroke-linejoin:miter\">\n</g>\n</g>\n</svg>"
},
"metadata": {}
}
]
},
{
"metadata": {
"collapsed": false,
"trusted": true
},
"cell_type": "code",
"source": "import notebook.nbextensions\nnotebook.nbextensions.install_nbextension('https://rawgithub.com/minrk/ipython_extensions/master/nbextensions/gist.js', user=True)",
"execution_count": 1,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": "downloading https://rawgithub.com/minrk/ipython_extensions/master/nbextensions/gist.js to /tmp/tmpfECtlz/gist.js\ncopying /tmp/tmpfECtlz/gist.js -> /home/gentoo/.local/share/jupyter/nbextensions/gist.js\n"
}
]
},
{
"metadata": {
"collapsed": false,
"trusted": true
},
"cell_type": "code",
"source": "%%javascript\nJupyter.utils.load_extensions('gist')",
"execution_count": 2,
"outputs": [
{
"output_type": "display_data",
"data": {
"application/javascript": "Jupyter.utils.load_extensions('gist')",
"text/plain": "<IPython.core.display.Javascript object>"
},
"metadata": {}
}
]
},
{
"metadata": {
"trusted": true,
"collapsed": true
},
"cell_type": "code",
"source": "",
"execution_count": null,
"outputs": []
}
],
"metadata": {
"kernelspec": {
"name": "python2",
"display_name": "Python 2",
"language": "python"
},
"language_info": {
"mimetype": "text/x-python",
"nbconvert_exporter": "python",
"name": "python",
"pygments_lexer": "ipython2",
"version": "2.7.10",
"file_extension": ".py",
"codemirror_mode": {
"version": 2,
"name": "ipython"
}
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment