dilcom/gnuplotrb

View on GitHub
notebooks/math_plots.ipynb

Summary

Maintainability
Test Coverage
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Plotting from an analytic function expression\n",
    "\n",
    "#### Plot in cartesian coordinate system"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\"  standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       " \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg \n",
       " width=\"600\" height=\"480\"\n",
       " viewBox=\"0 0 600 480\"\n",
       " xmlns=\"http://www.w3.org/2000/svg\"\n",
       " xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n",
       ">\n",
       "\n",
       "<title>Gnuplot</title>\n",
       "<desc>Produced by GNUPLOT 5.0 patchlevel rc2 </desc>\n",
       "\n",
       "<g id=\"gnuplot_canvas\">\n",
       "\n",
       "<rect x=\"0\" y=\"0\" width=\"600\" height=\"480\" fill=\"none\"/>\n",
       "<defs>\n",
       "\n",
       "\t<circle id='gpDot' r='0.5' stroke-width='0.5'/>\n",
       "\t<path id='gpPt0' stroke-width='0.222' stroke='currentColor' d='M-1,0 h2 M0,-1 v2'/>\n",
       "\t<path id='gpPt1' stroke-width='0.222' stroke='currentColor' d='M-1,-1 L1,1 M1,-1 L-1,1'/>\n",
       "\t<path id='gpPt2' stroke-width='0.222' stroke='currentColor' d='M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1'/>\n",
       "\t<rect id='gpPt3' stroke-width='0.222' stroke='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
       "\t<rect id='gpPt4' stroke-width='0.222' stroke='currentColor' fill='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
       "\t<circle id='gpPt5' stroke-width='0.222' stroke='currentColor' cx='0' cy='0' r='1'/>\n",
       "\t<use xlink:href='#gpPt5' id='gpPt6' fill='currentColor' stroke='none'/>\n",
       "\t<path id='gpPt7' stroke-width='0.222' stroke='currentColor' d='M0,-1.33 L-1.33,0.67 L1.33,0.67 z'/>\n",
       "\t<use xlink:href='#gpPt7' id='gpPt8' fill='currentColor' stroke='none'/>\n",
       "\t<use xlink:href='#gpPt7' id='gpPt9' stroke='currentColor' transform='rotate(180)'/>\n",
       "\t<use xlink:href='#gpPt9' id='gpPt10' fill='currentColor' stroke='none'/>\n",
       "\t<use xlink:href='#gpPt3' id='gpPt11' stroke='currentColor' transform='rotate(45)'/>\n",
       "\t<use xlink:href='#gpPt11' id='gpPt12' fill='currentColor' stroke='none'/>\n",
       "\t<path id='gpPt13' stroke-width='0.222' stroke='currentColor' d='M0,1.330 L1.265,0.411 L0.782,-1.067 L-0.782,-1.076 L-1.265,0.411 z'/>\n",
       "\t<use xlink:href='#gpPt13' id='gpPt14' fill='currentColor' stroke='none'/>\n",
       "\t<filter id='textbox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>\n",
       "\t  <feFlood flood-color='white' flood-opacity='1' result='bgnd'/>\n",
       "\t  <feComposite in='SourceGraphic' in2='bgnd' operator='atop'/>\n",
       "\t</filter>\n",
       "\t<filter id='greybox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>\n",
       "\t  <feFlood flood-color='lightgrey' flood-opacity='1' result='grey'/>\n",
       "\t  <feComposite in='SourceGraphic' in2='grey' operator='atop'/>\n",
       "\t</filter>\n",
       "</defs>\n",
       "<g fill=\"none\" color=\"white\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M55.3,422.4 L64.3,422.4 M575.0,422.4 L566.0,422.4  '/>\t<g transform=\"translate(47.0,426.9)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >-6</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M55.3,369.8 L64.3,369.8 M575.0,369.8 L566.0,369.8  '/>\t<g transform=\"translate(47.0,374.3)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >-4</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M55.3,317.2 L64.3,317.2 M575.0,317.2 L566.0,317.2  '/>\t<g transform=\"translate(47.0,321.7)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >-2</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M55.3,264.6 L64.3,264.6 M575.0,264.6 L566.0,264.6  '/>\t<g transform=\"translate(47.0,269.1)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M55.3,211.9 L64.3,211.9 M575.0,211.9 L566.0,211.9  '/>\t<g transform=\"translate(47.0,216.4)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 2</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M55.3,159.3 L64.3,159.3 M575.0,159.3 L566.0,159.3  '/>\t<g transform=\"translate(47.0,163.8)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 4</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M55.3,106.7 L64.3,106.7 M575.0,106.7 L566.0,106.7  '/>\t<g transform=\"translate(47.0,111.2)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 6</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M55.3,54.1 L64.3,54.1 M575.0,54.1 L566.0,54.1  '/>\t<g transform=\"translate(47.0,58.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 8</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M55.3,422.4 L55.3,413.4 M55.3,54.1 L55.3,63.1  '/>\t<g transform=\"translate(55.3,444.9)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >-10</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M185.2,422.4 L185.2,413.4 M185.2,54.1 L185.2,63.1  '/>\t<g transform=\"translate(185.2,444.9)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >-5</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M315.2,422.4 L315.2,413.4 M315.2,54.1 L315.2,63.1  '/>\t<g transform=\"translate(315.2,444.9)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M445.1,422.4 L445.1,413.4 M445.1,54.1 L445.1,63.1  '/>\t<g transform=\"translate(445.1,444.9)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 5</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M575.0,422.4 L575.0,413.4 M575.0,54.1 L575.0,63.1  '/>\t<g transform=\"translate(575.0,444.9)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 10</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M55.3,54.1 L55.3,422.4 L575.0,422.4 L575.0,54.1 L55.3,54.1 Z  '/></g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<g transform=\"translate(17.6,238.3) rotate(270)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >x</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<g transform=\"translate(315.1,471.9)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >x*sin(x)</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<g transform=\"translate(315.1,31.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >Math function example</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "\t<g id=\"gnuplot_plot_1\" ><title>x*sin(x)</title>\n",
       "<g fill=\"none\" color=\"white\" stroke=\"black\" stroke-width=\"3.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"3.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<g transform=\"translate(507.9,76.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text>x*sin(x)</text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"3.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='rgb(  0,   0, 255)'  d='M516.2,72.1 L558.4,72.1 M55.3,407.7 L60.5,358.5 L65.8,307.6 L71.0,256.9 L76.3,208.8 L81.5,164.9\n",
       "\t\tL86.8,127.1 L92.0,96.5 L97.3,74.2 L102.5,60.8 L107.8,56.3 L113.0,60.5 L118.3,72.9 L123.5,92.5\n",
       "\t\tL128.8,118.1 L134.0,148.3 L139.3,181.6 L144.5,216.4 L149.8,251.1 L155.0,284.2 L160.3,314.4 L165.5,340.6\n",
       "\t\tL170.8,361.8 L176.0,377.4 L181.3,387.2 L186.5,391.1 L191.8,389.4 L197.0,382.5 L202.3,371.1 L207.5,356.2\n",
       "\t\tL212.8,338.7 L218.0,319.7 L223.3,300.2 L228.5,281.3 L233.8,263.7 L239.0,248.3 L244.3,235.7 L249.5,226.2\n",
       "\t\tL254.8,219.9 L260.0,217.0 L265.3,217.1 L270.5,219.9 L275.8,224.8 L281.0,231.2 L286.3,238.4 L291.5,245.7\n",
       "\t\tL296.8,252.5 L302.0,258.1 L307.3,262.2 L312.5,264.3 L317.8,264.3 L323.0,262.2 L328.3,258.1 L333.5,252.5\n",
       "\t\tL338.8,245.7 L344.0,238.4 L349.3,231.2 L354.5,224.8 L359.8,219.9 L365.0,217.1 L370.3,217.0 L375.5,219.9\n",
       "\t\tL380.8,226.2 L386.0,235.7 L391.3,248.3 L396.5,263.7 L401.8,281.3 L407.0,300.2 L412.3,319.7 L417.5,338.7\n",
       "\t\tL422.8,356.2 L428.0,371.1 L433.3,382.5 L438.5,389.4 L443.8,391.1 L449.0,387.2 L454.3,377.4 L459.5,361.8\n",
       "\t\tL464.8,340.6 L470.0,314.4 L475.3,284.2 L480.5,251.1 L485.8,216.4 L491.0,181.6 L496.3,148.3 L501.5,118.1\n",
       "\t\tL506.8,92.5 L512.0,72.9 L517.3,60.5 L522.5,56.3 L527.8,60.8 L533.0,74.2 L538.3,96.5 L543.5,127.1\n",
       "\t\tL548.8,164.9 L554.0,208.8 L559.3,256.9 L564.5,307.6 L569.8,358.5 L575.0,407.7  '/></g>\n",
       "\t</g>\n",
       "<g fill=\"none\" color=\"white\" stroke=\"rgb(  0,   0, 255)\" stroke-width=\"2.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"2.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"black\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M55.3,54.1 L55.3,422.4 L575.0,422.4 L575.0,54.1 L55.3,54.1 Z  '/></g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "</g>\n",
       "</svg>\n",
       "\n"
      ],
      "text/plain": [
       "#<GnuplotRB::Plot:0x000000034f1610 @datasets=Hamster::Vector[#<GnuplotRB::Dataset:0x000000034f13e0 @type=:math_function, @data=\"x*sin(x)\", @options=Hamster::Hash[:with => \"lines\", :lt => {:rgb=>\"blue\", :lw=>3}]>], @options=Hamster::Hash[:xrange => -10..10, :title => \"Math function example\", :ylabel => \"x\", :xlabel => \"x*sin(x)\"], @already_plotted=true, @cmd=\"plot \", @terminal=#<GnuplotRB::Terminal:0x000000034f0eb8 @cmd=\"gnuplot 2>&1\", @current_datablock=0, @err_array=[], @in=#<IO:fd 23>>>"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "require 'gnuplotrb'\n",
    "include GnuplotRB\n",
    "\n",
    "cartesian = Plot.new(\n",
    "  ['x*sin(x)', with: 'lines', lt: { rgb: 'blue', lw: 3 }],\n",
    "  xrange: -10..10,\n",
    "  title: 'Math function example', \n",
    "  ylabel: 'x',\n",
    "  xlabel: 'x*sin(x)'\n",
    ")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### Plot in polar coordinate system"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\"  standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       " \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg \n",
       " width=\"600\" height=\"480\"\n",
       " viewBox=\"0 0 600 480\"\n",
       " xmlns=\"http://www.w3.org/2000/svg\"\n",
       " xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n",
       ">\n",
       "\n",
       "<title>Gnuplot</title>\n",
       "<desc>Produced by GNUPLOT 5.0 patchlevel rc2 </desc>\n",
       "\n",
       "<g id=\"gnuplot_canvas\">\n",
       "\n",
       "<rect x=\"0\" y=\"0\" width=\"600\" height=\"480\" fill=\"none\"/>\n",
       "<defs>\n",
       "\n",
       "\t<circle id='gpDot' r='0.5' stroke-width='0.5'/>\n",
       "\t<path id='gpPt0' stroke-width='0.222' stroke='currentColor' d='M-1,0 h2 M0,-1 v2'/>\n",
       "\t<path id='gpPt1' stroke-width='0.222' stroke='currentColor' d='M-1,-1 L1,1 M1,-1 L-1,1'/>\n",
       "\t<path id='gpPt2' stroke-width='0.222' stroke='currentColor' d='M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1'/>\n",
       "\t<rect id='gpPt3' stroke-width='0.222' stroke='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
       "\t<rect id='gpPt4' stroke-width='0.222' stroke='currentColor' fill='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
       "\t<circle id='gpPt5' stroke-width='0.222' stroke='currentColor' cx='0' cy='0' r='1'/>\n",
       "\t<use xlink:href='#gpPt5' id='gpPt6' fill='currentColor' stroke='none'/>\n",
       "\t<path id='gpPt7' stroke-width='0.222' stroke='currentColor' d='M0,-1.33 L-1.33,0.67 L1.33,0.67 z'/>\n",
       "\t<use xlink:href='#gpPt7' id='gpPt8' fill='currentColor' stroke='none'/>\n",
       "\t<use xlink:href='#gpPt7' id='gpPt9' stroke='currentColor' transform='rotate(180)'/>\n",
       "\t<use xlink:href='#gpPt9' id='gpPt10' fill='currentColor' stroke='none'/>\n",
       "\t<use xlink:href='#gpPt3' id='gpPt11' stroke='currentColor' transform='rotate(45)'/>\n",
       "\t<use xlink:href='#gpPt11' id='gpPt12' fill='currentColor' stroke='none'/>\n",
       "\t<path id='gpPt13' stroke-width='0.222' stroke='currentColor' d='M0,1.330 L1.265,0.411 L0.782,-1.067 L-0.782,-1.076 L-1.265,0.411 z'/>\n",
       "\t<use xlink:href='#gpPt13' id='gpPt14' fill='currentColor' stroke='none'/>\n",
       "\t<filter id='textbox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>\n",
       "\t  <feFlood flood-color='white' flood-opacity='1' result='bgnd'/>\n",
       "\t  <feComposite in='SourceGraphic' in2='bgnd' operator='atop'/>\n",
       "\t</filter>\n",
       "\t<filter id='greybox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>\n",
       "\t  <feFlood flood-color='lightgrey' flood-opacity='1' result='grey'/>\n",
       "\t  <feComposite in='SourceGraphic' in2='grey' operator='atop'/>\n",
       "\t</filter>\n",
       "</defs>\n",
       "<g fill=\"none\" color=\"white\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M53.9,444.0 L62.9,444.0 M575.0,444.0 L566.0,444.0  '/>\t<g transform=\"translate(45.6,448.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 1</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M53.9,405.0 L62.9,405.0 M575.0,405.0 L566.0,405.0  '/>\t<g transform=\"translate(45.6,409.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.8</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M53.9,366.0 L62.9,366.0 M575.0,366.0 L566.0,366.0  '/>\t<g transform=\"translate(45.6,370.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.6</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M53.9,327.0 L62.9,327.0 M575.0,327.0 L566.0,327.0  '/>\t<g transform=\"translate(45.6,331.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.4</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M53.9,288.0 L62.9,288.0 M575.0,288.0 L566.0,288.0  '/>\t<g transform=\"translate(45.6,292.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.2</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M53.9,249.0 L62.9,249.0 M575.0,249.0 L566.0,249.0  '/>\t<g transform=\"translate(45.6,253.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M53.9,210.1 L62.9,210.1 M575.0,210.1 L566.0,210.1  '/>\t<g transform=\"translate(45.6,214.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.2</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M53.9,171.1 L62.9,171.1 M575.0,171.1 L566.0,171.1  '/>\t<g transform=\"translate(45.6,175.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.4</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M53.9,132.1 L62.9,132.1 M575.0,132.1 L566.0,132.1  '/>\t<g transform=\"translate(45.6,136.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.6</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M53.9,93.1 L62.9,93.1 M575.0,93.1 L566.0,93.1  '/>\t<g transform=\"translate(45.6,97.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.8</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M53.9,54.1 L62.9,54.1 M575.0,54.1 L566.0,54.1  '/>\t<g transform=\"translate(45.6,58.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 1</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M53.9,444.0 L53.9,435.0 M53.9,54.1 L53.9,63.1  '/>\t<g transform=\"translate(53.9,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 1</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M106.0,444.0 L106.0,435.0 M106.0,54.1 L106.0,63.1  '/>\t<g transform=\"translate(106.0,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.8</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M158.1,444.0 L158.1,435.0 M158.1,54.1 L158.1,63.1  '/>\t<g transform=\"translate(158.1,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.6</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M210.2,444.0 L210.2,435.0 M210.2,54.1 L210.2,63.1  '/>\t<g transform=\"translate(210.2,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.4</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M262.3,444.0 L262.3,435.0 M262.3,54.1 L262.3,63.1  '/>\t<g transform=\"translate(262.3,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.2</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M314.5,444.0 L314.5,435.0 M314.5,54.1 L314.5,63.1  '/>\t<g transform=\"translate(314.5,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M366.6,444.0 L366.6,435.0 M366.6,54.1 L366.6,63.1  '/>\t<g transform=\"translate(366.6,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.2</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M418.7,444.0 L418.7,435.0 M418.7,54.1 L418.7,63.1  '/>\t<g transform=\"translate(418.7,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.4</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M470.8,444.0 L470.8,435.0 M470.8,54.1 L470.8,63.1  '/>\t<g transform=\"translate(470.8,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.6</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M522.9,444.0 L522.9,435.0 M522.9,54.1 L522.9,63.1  '/>\t<g transform=\"translate(522.9,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.8</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M575.0,444.0 L575.0,435.0 M575.0,54.1 L575.0,63.1  '/>\t<g transform=\"translate(575.0,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 1</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M314.5,249.0 L314.5,240.0 M314.5,249.0 L314.5,258.0  '/>\t<g transform=\"translate(314.5,271.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M366.6,249.0 L366.6,240.0 M366.6,249.0 L366.6,258.0  '/>\t<g transform=\"translate(366.6,271.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.2</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M418.7,249.0 L418.7,240.0 M418.7,249.0 L418.7,258.0  '/>\t<g transform=\"translate(418.7,271.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.4</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M470.8,249.0 L470.8,240.0 M470.8,249.0 L470.8,258.0  '/>\t<g transform=\"translate(470.8,271.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.6</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M522.9,249.0 L522.9,240.0 M522.9,249.0 L522.9,258.0  '/>\t<g transform=\"translate(522.9,271.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0.8</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M575.0,249.0 L575.0,240.0 M575.0,249.0 L575.0,258.0  '/>\t<g transform=\"translate(575.0,271.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 1</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M53.9,54.1 L53.9,444.0 L575.0,444.0 L575.0,54.1 L53.9,54.1 Z  '/></g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<g transform=\"translate(314.4,31.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >Plot in polar example</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "\t<g id=\"gnuplot_plot_1\" ><title>abs(sin(3*t))</title>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<g transform=\"translate(507.9,76.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text>abs(sin(3*t))</text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<g stroke='none' shape-rendering='crispEdges'>\n",
       "\t\t<polygon fill = 'rgb(255,   0,   0)' points = '516.2,76.6 558.4,76.6 558.4,67.6 516.2,67.6 '/>\n",
       "\t</g>\n",
       "\t<path stroke='rgb(255,   0,   0)'  d='M516.2,76.6 L558.4,76.6 L558.4,67.6 L516.2,67.6 L516.2,76.6 Z  '/></g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<g stroke='none' shape-rendering='crispEdges'>\n",
       "\t\t<polygon fill = 'rgb(255,   0,   0)' points = '314.5,249.0 324.3,249.0 334.1,248.7 343.9,248.2 353.6,247.6 363.3,246.7 372.8,245.7 382.3,244.6 391.6,243.2 400.8,241.7 409.8,240.0 418.6,238.2 427.3,236.2 435.7,234.1 443.9,231.8 451.8,229.4\n",
       "459.5,226.9 466.9,224.2 474.1,221.5 480.9,218.7 487.5,215.7 493.7,212.7 499.6,209.7 505.1,206.5 510.3,203.4 515.2,200.2 519.6,196.9 523.7,193.7 527.5,190.4 530.8,187.2 533.8,183.9 536.4,180.7\n",
       "538.6,177.6 540.4,174.5 541.8,171.4 542.9,168.4 543.5,165.6 543.8,162.8 543.6,160.1 543.1,157.6 542.2,155.1 541.0,152.8 539.4,150.7 537.4,148.7 535.1,146.9 532.5,145.3 529.5,143.8 526.2,142.6\n",
       "522.6,141.5 518.7,140.7 514.5,140.0 510.0,139.6 505.3,139.4 500.4,139.4 495.2,139.7 489.8,140.2 484.2,141.0 478.4,142.0 472.4,143.2 466.3,144.7 460.0,146.4 453.7,148.4 447.2,150.7 440.6,153.2\n",
       "434.0,155.9 427.3,158.9 420.5,162.1 413.8,165.5 407.0,169.2 400.2,173.1 393.5,177.3 386.8,181.6 380.2,186.2 373.7,191.0 367.2,195.9 360.8,201.1 354.6,206.4 348.5,211.9 342.5,217.6 336.7,223.4\n",
       "331.1,229.4 325.6,235.5 320.3,241.7 315.3,248.0 318.5,243.7 323.1,237.2 327.5,230.7 331.7,224.0 335.6,217.4 339.2,210.7 342.6,204.0 345.8,197.3 348.7,190.6 351.3,183.9 353.6,177.2 355.7,170.6\n",
       "357.5,164.1 359.0,157.6 360.2,151.3 361.2,145.0 361.9,138.8 362.3,132.8 362.5,127.0 362.4,121.2 362.1,115.7 361.5,110.3 360.7,105.1 359.7,100.1 358.4,95.3 357.0,90.8 355.3,86.4 353.4,82.3\n",
       "351.4,78.5 349.1,74.9 346.8,71.6 344.2,68.5 341.5,65.8 338.8,63.3 335.9,61.1 332.9,59.2 329.8,57.6 326.6,56.3 323.4,55.3 320.2,54.6 316.9,54.2 313.6,54.1 310.4,54.3 307.1,54.9\n",
       "303.9,55.7 300.7,56.9 297.6,58.3 294.5,60.1 291.6,62.1 288.7,64.5 286.0,67.1 283.4,70.0 280.9,73.2 278.6,76.7 276.5,80.4 274.5,84.4 272.8,88.6 271.2,93.0 269.8,97.7 268.7,102.6\n",
       "267.7,107.7 267.0,113.0 266.6,118.4 266.4,124.1 266.4,129.9 266.8,135.8 267.3,141.9 268.2,148.1 269.3,154.4 270.7,160.9 272.3,167.3 274.2,173.9 276.4,180.5 278.9,187.2 281.7,193.9 284.7,200.6\n",
       "287.9,207.3 291.5,214.0 295.3,220.7 299.3,227.4 303.6,233.9 308.1,240.5 312.8,246.9 311.1,244.8 306.0,238.6 300.6,232.4 295.0,226.4 289.3,220.5 283.4,214.8 277.4,209.2 271.2,203.7 264.9,198.5\n",
       "258.5,193.4 252.0,188.6 245.4,183.9 238.7,179.4 232.0,175.2 225.3,171.2 218.5,167.3 211.7,163.8 205.0,160.4 198.3,157.3 191.6,154.5 185.0,151.9 178.5,149.5 172.0,147.4 165.7,145.5 159.5,143.9\n",
       "153.5,142.6 147.6,141.4 141.9,140.6 136.4,139.9 131.1,139.5 126.0,139.4 121.2,139.5 116.6,139.8 112.3,140.3 108.2,141.1 104.5,142.0 101.0,143.2 97.9,144.5 95.1,146.1 92.6,147.8 90.5,149.7\n",
       "88.7,151.8 87.2,154.0 86.2,156.3 85.5,158.8 85.2,161.4 85.2,164.2 85.7,167.0 86.5,169.9 87.7,172.9 89.3,176.0 91.4,179.1 93.7,182.3 96.5,185.5 99.7,188.8 103.2,192.0 107.2,195.3\n",
       "111.5,198.5 116.1,201.8 121.1,205.0 126.5,208.1 132.2,211.2 138.3,214.3 144.7,217.2 151.4,220.1 158.4,222.9 165.6,225.6 173.2,228.2 181.0,230.6 189.1,233.0 197.4,235.2 205.9,237.2 214.7,239.1\n",
       "223.6,240.9 232.7,242.5 241.9,243.9 251.3,245.2 260.8,246.3 270.4,247.2 280.1,247.9 289.9,248.5 299.7,248.8 309.5,249.0 309.5,249.1 299.7,249.3 289.9,249.6 280.1,250.2 270.4,250.9 260.8,251.8\n",
       "251.3,252.9 241.9,254.2 232.7,255.6 223.6,257.2 214.7,259.0 205.9,260.9 197.4,262.9 189.1,265.1 181.0,267.5 173.2,269.9 165.6,272.5 158.4,275.2 151.4,278.0 144.7,280.9 138.3,283.8 132.2,286.9\n",
       "126.5,290.0 121.1,293.1 116.1,296.3 111.5,299.6 107.2,302.8 103.2,306.1 99.7,309.3 96.5,312.6 93.7,315.8 91.4,319.0 89.3,322.1 87.7,325.2 86.5,328.2 85.7,331.1 85.2,333.9 85.2,336.7\n",
       "85.5,339.3 86.2,341.8 87.2,344.1 88.7,346.3 90.5,348.4 92.6,350.3 95.1,352.0 97.9,353.6 101.0,354.9 104.5,356.1 108.2,357.0 112.3,357.8 116.6,358.3 121.2,358.6 126.0,358.7 131.1,358.6\n",
       "136.4,358.2 141.9,357.5 147.6,356.7 153.5,355.5 159.5,354.2 165.7,352.6 172.0,350.7 178.5,348.6 185.0,346.2 191.6,343.6 198.3,340.8 205.0,337.7 211.7,334.3 218.5,330.8 225.3,326.9 232.0,322.9\n",
       "238.7,318.7 245.4,314.2 252.0,309.5 258.5,304.7 264.9,299.6 271.2,294.4 277.4,288.9 283.4,283.3 289.3,277.6 295.0,271.7 300.6,265.7 306.0,259.5 311.1,253.3 312.8,251.2 308.1,257.6 303.6,264.2\n",
       "299.3,270.7 295.3,277.4 291.5,284.1 287.9,290.8 284.7,297.5 281.7,304.2 278.9,310.9 276.4,317.6 274.2,324.2 272.3,330.8 270.7,337.2 269.3,343.7 268.2,350.0 267.3,356.2 266.8,362.3 266.4,368.2\n",
       "266.4,374.0 266.6,379.7 267.0,385.1 267.7,390.4 268.7,395.5 269.8,400.4 271.2,405.1 272.8,409.5 274.5,413.7 276.5,417.7 278.6,421.4 280.9,424.9 283.4,428.1 286.0,431.0 288.7,433.6 291.6,436.0\n",
       "294.5,438.0 297.6,439.8 300.7,441.2 303.9,442.4 307.1,443.2 310.4,443.8 313.6,444.0 316.9,443.9 320.2,443.5 323.4,442.8 326.6,441.8 329.8,440.5 332.9,438.9 335.9,437.0 338.8,434.8 341.5,432.3\n",
       "344.2,429.6 346.8,426.5 349.1,423.2 351.4,419.6 353.4,415.8 355.3,411.7 357.0,407.3 358.4,402.8 359.7,398.0 360.7,393.0 361.5,387.8 362.1,382.4 362.4,376.9 362.5,371.1 362.3,365.3 361.9,359.3\n",
       "361.2,353.1 360.2,346.8 359.0,340.5 357.5,334.0 355.7,327.5 353.6,320.9 351.3,314.2 348.7,307.5 345.8,300.8 342.6,294.1 339.2,287.4 335.6,280.7 331.7,274.1 327.5,267.4 323.1,260.9 318.5,254.4\n",
       "315.3,250.1 320.3,256.4 325.6,262.6 331.1,268.7 336.7,274.7 342.5,280.5 348.5,286.2 354.6,291.7 360.8,297.0 367.2,302.2 373.7,307.1 380.2,311.9 386.8,316.5 393.5,320.8 400.2,325.0 407.0,328.9\n",
       "413.8,332.6 420.5,336.0 427.3,339.2 434.0,342.2 440.6,344.9 447.2,347.4 453.7,349.7 460.0,351.7 466.3,353.4 472.4,354.9 478.4,356.1 484.2,357.1 489.8,357.9 495.2,358.4 500.4,358.7 505.3,358.7\n",
       "510.0,358.5 514.5,358.1 518.7,357.4 522.6,356.6 526.2,355.5 529.5,354.3 532.5,352.8 535.1,351.2 537.4,349.4 539.4,347.4 541.0,345.3 542.2,343.0 543.1,340.5 543.6,338.0 543.8,335.3 543.5,332.5\n",
       "542.9,329.7 541.8,326.7 540.4,323.6 538.6,320.5 536.4,317.4 533.8,314.2 530.8,310.9 527.5,307.7 523.7,304.4 519.6,301.2 515.2,297.9 510.3,294.7 505.1,291.6 499.6,288.4 493.7,285.4 487.5,282.4\n",
       "480.9,279.4 474.1,276.6 466.9,273.9 459.5,271.2 451.8,268.7 443.9,266.3 435.7,264.0 427.3,261.9 418.6,259.9 409.8,258.1 400.8,256.4 391.6,254.9 382.3,253.5 372.8,252.4 363.3,251.4 353.6,250.5\n",
       "343.9,249.9 334.1,249.4 324.3,249.1 314.5,249.0 '/>\n",
       "\t</g>\n",
       "\t<path stroke='rgb(255,   0,   0)'  d='M314.5,249.0 L324.3,249.0 L334.1,248.7 L343.9,248.2 L353.6,247.6 L363.3,246.7 L372.8,245.7 L382.3,244.6\n",
       "\t\tL391.6,243.2 L400.8,241.7 L409.8,240.0 L418.6,238.2 L427.3,236.2 L435.7,234.1 L443.9,231.8 L451.8,229.4\n",
       "\t\tL459.5,226.9 L466.9,224.2 L474.1,221.5 L480.9,218.7 L487.5,215.7 L493.7,212.7 L499.6,209.7 L505.1,206.5\n",
       "\t\tL510.3,203.4 L515.2,200.2 L519.6,196.9 L523.7,193.7 L527.5,190.4 L530.8,187.2 L533.8,183.9 L536.4,180.7\n",
       "\t\tL538.6,177.6 L540.4,174.5 L541.8,171.4 L542.9,168.4 L543.5,165.6 L543.8,162.8 L543.6,160.1 L543.1,157.6\n",
       "\t\tL542.2,155.1 L541.0,152.8 L539.4,150.7 L537.4,148.7 L535.1,146.9 L532.5,145.3 L529.5,143.8 L526.2,142.6\n",
       "\t\tL522.6,141.5 L518.7,140.7 L514.5,140.0 L510.0,139.6 L505.3,139.4 L500.4,139.4 L495.2,139.7 L489.8,140.2\n",
       "\t\tL484.2,141.0 L478.4,142.0 L472.4,143.2 L466.3,144.7 L460.0,146.4 L453.7,148.4 L447.2,150.7 L440.6,153.2\n",
       "\t\tL434.0,155.9 L427.3,158.9 L420.5,162.1 L413.8,165.5 L407.0,169.2 L400.2,173.1 L393.5,177.3 L386.8,181.6\n",
       "\t\tL380.2,186.2 L373.7,191.0 L367.2,195.9 L360.8,201.1 L354.6,206.4 L348.5,211.9 L342.5,217.6 L336.7,223.4\n",
       "\t\tL331.1,229.4 L325.6,235.5 L320.3,241.7 L315.3,248.0 L318.5,243.7 L323.1,237.2 L327.5,230.7 L331.7,224.0\n",
       "\t\tL335.6,217.4 L339.2,210.7 L342.6,204.0 L345.8,197.3 L348.7,190.6 L351.3,183.9 L353.6,177.2 L355.7,170.6\n",
       "\t\tL357.5,164.1 L359.0,157.6 L360.2,151.3 L361.2,145.0 L361.9,138.8 L362.3,132.8 L362.5,127.0 L362.4,121.2\n",
       "\t\tL362.1,115.7 L361.5,110.3 L360.7,105.1 L359.7,100.1 L358.4,95.3 L357.0,90.8 L355.3,86.4 L353.4,82.3\n",
       "\t\tL351.4,78.5 L349.1,74.9 L346.8,71.6 L344.2,68.5 L341.5,65.8 L338.8,63.3 L335.9,61.1 L332.9,59.2\n",
       "\t\tL329.8,57.6 L326.6,56.3 L323.4,55.3 L320.2,54.6 L316.9,54.2 L313.6,54.1 L310.4,54.3 L307.1,54.9\n",
       "\t\tL303.9,55.7 L300.7,56.9 L297.6,58.3 L294.5,60.1 L291.6,62.1 L288.7,64.5 L286.0,67.1 L283.4,70.0\n",
       "\t\tL280.9,73.2 L278.6,76.7 L276.5,80.4 L274.5,84.4 L272.8,88.6 L271.2,93.0 L269.8,97.7 L268.7,102.6\n",
       "\t\tL267.7,107.7 L267.0,113.0 L266.6,118.4 L266.4,124.1 L266.4,129.9 L266.8,135.8 L267.3,141.9 L268.2,148.1\n",
       "\t\tL269.3,154.4 L270.7,160.9 L272.3,167.3 L274.2,173.9 L276.4,180.5 L278.9,187.2 L281.7,193.9 L284.7,200.6\n",
       "\t\tL287.9,207.3 L291.5,214.0 L295.3,220.7 L299.3,227.4 L303.6,233.9 L308.1,240.5 L312.8,246.9 L311.1,244.8\n",
       "\t\tL306.0,238.6 L300.6,232.4 L295.0,226.4 L289.3,220.5 L283.4,214.8 L277.4,209.2 L271.2,203.7 L264.9,198.5\n",
       "\t\tL258.5,193.4 L252.0,188.6 L245.4,183.9 L238.7,179.4 L232.0,175.2 L225.3,171.2 L218.5,167.3 L211.7,163.8\n",
       "\t\tL205.0,160.4 L198.3,157.3 L191.6,154.5 L185.0,151.9 L178.5,149.5 L172.0,147.4 L165.7,145.5 L159.5,143.9\n",
       "\t\tL153.5,142.6 L147.6,141.4 L141.9,140.6 L136.4,139.9 L131.1,139.5 L126.0,139.4 L121.2,139.5 L116.6,139.8\n",
       "\t\tL112.3,140.3 L108.2,141.1 L104.5,142.0 L101.0,143.2 L97.9,144.5 L95.1,146.1 L92.6,147.8 L90.5,149.7\n",
       "\t\tL88.7,151.8 L87.2,154.0 L86.2,156.3 L85.5,158.8 L85.2,161.4 L85.2,164.2 L85.7,167.0 L86.5,169.9\n",
       "\t\tL87.7,172.9 L89.3,176.0 L91.4,179.1 L93.7,182.3 L96.5,185.5 L99.7,188.8 L103.2,192.0 L107.2,195.3\n",
       "\t\tL111.5,198.5 L116.1,201.8 L121.1,205.0 L126.5,208.1 L132.2,211.2 L138.3,214.3 L144.7,217.2 L151.4,220.1\n",
       "\t\tL158.4,222.9 L165.6,225.6 L173.2,228.2 L181.0,230.6 L189.1,233.0 L197.4,235.2 L205.9,237.2 L214.7,239.1\n",
       "\t\tL223.6,240.9 L232.7,242.5 L241.9,243.9 L251.3,245.2 L260.8,246.3 L270.4,247.2 L280.1,247.9 L289.9,248.5\n",
       "\t\tL299.7,248.8 L309.5,249.0 L309.5,249.1 L299.7,249.3 L289.9,249.6 L280.1,250.2 L270.4,250.9 L260.8,251.8\n",
       "\t\tL251.3,252.9 L241.9,254.2 L232.7,255.6 L223.6,257.2 L214.7,259.0 L205.9,260.9 L197.4,262.9 L189.1,265.1\n",
       "\t\tL181.0,267.5 L173.2,269.9 L165.6,272.5 L158.4,275.2 L151.4,278.0 L144.7,280.9 L138.3,283.8 L132.2,286.9\n",
       "\t\tL126.5,290.0 L121.1,293.1 L116.1,296.3 L111.5,299.6 L107.2,302.8 L103.2,306.1 L99.7,309.3 L96.5,312.6\n",
       "\t\tL93.7,315.8 L91.4,319.0 L89.3,322.1 L87.7,325.2 L86.5,328.2 L85.7,331.1 L85.2,333.9 L85.2,336.7\n",
       "\t\tL85.5,339.3 L86.2,341.8 L87.2,344.1 L88.7,346.3 L90.5,348.4 L92.6,350.3 L95.1,352.0 L97.9,353.6\n",
       "\t\tL101.0,354.9 L104.5,356.1 L108.2,357.0 L112.3,357.8 L116.6,358.3 L121.2,358.6 L126.0,358.7 L131.1,358.6\n",
       "\t\tL136.4,358.2 L141.9,357.5 L147.6,356.7 L153.5,355.5 L159.5,354.2 L165.7,352.6 L172.0,350.7 L178.5,348.6\n",
       "\t\tL185.0,346.2 L191.6,343.6 L198.3,340.8 L205.0,337.7 L211.7,334.3 L218.5,330.8 L225.3,326.9 L232.0,322.9\n",
       "\t\tL238.7,318.7 L245.4,314.2 L252.0,309.5 L258.5,304.7 L264.9,299.6 L271.2,294.4 L277.4,288.9 L283.4,283.3\n",
       "\t\tL289.3,277.6 L295.0,271.7 L300.6,265.7 L306.0,259.5 L311.1,253.3 L312.8,251.2 L308.1,257.6 L303.6,264.2\n",
       "\t\tL299.3,270.7 L295.3,277.4 L291.5,284.1 L287.9,290.8 L284.7,297.5 L281.7,304.2 L278.9,310.9 L276.4,317.6\n",
       "\t\tL274.2,324.2 L272.3,330.8 L270.7,337.2 L269.3,343.7 L268.2,350.0 L267.3,356.2 L266.8,362.3 L266.4,368.2\n",
       "\t\tL266.4,374.0 L266.6,379.7 L267.0,385.1 L267.7,390.4 L268.7,395.5 L269.8,400.4 L271.2,405.1 L272.8,409.5\n",
       "\t\tL274.5,413.7 L276.5,417.7 L278.6,421.4 L280.9,424.9 L283.4,428.1 L286.0,431.0 L288.7,433.6 L291.6,436.0\n",
       "\t\tL294.5,438.0 L297.6,439.8 L300.7,441.2 L303.9,442.4 L307.1,443.2 L310.4,443.8 L313.6,444.0 L316.9,443.9\n",
       "\t\tL320.2,443.5 L323.4,442.8 L326.6,441.8 L329.8,440.5 L332.9,438.9 L335.9,437.0 L338.8,434.8 L341.5,432.3\n",
       "\t\tL344.2,429.6 L346.8,426.5 L349.1,423.2 L351.4,419.6 L353.4,415.8 L355.3,411.7 L357.0,407.3 L358.4,402.8\n",
       "\t\tL359.7,398.0 L360.7,393.0 L361.5,387.8 L362.1,382.4 L362.4,376.9 L362.5,371.1 L362.3,365.3 L361.9,359.3\n",
       "\t\tL361.2,353.1 L360.2,346.8 L359.0,340.5 L357.5,334.0 L355.7,327.5 L353.6,320.9 L351.3,314.2 L348.7,307.5\n",
       "\t\tL345.8,300.8 L342.6,294.1 L339.2,287.4 L335.6,280.7 L331.7,274.1 L327.5,267.4 L323.1,260.9 L318.5,254.4\n",
       "\t\tL315.3,250.1 L320.3,256.4 L325.6,262.6 L331.1,268.7 L336.7,274.7 L342.5,280.5 L348.5,286.2 L354.6,291.7\n",
       "\t\tL360.8,297.0 L367.2,302.2 L373.7,307.1 L380.2,311.9 L386.8,316.5 L393.5,320.8 L400.2,325.0 L407.0,328.9\n",
       "\t\tL413.8,332.6 L420.5,336.0 L427.3,339.2 L434.0,342.2 L440.6,344.9 L447.2,347.4 L453.7,349.7 L460.0,351.7\n",
       "\t\tL466.3,353.4 L472.4,354.9 L478.4,356.1 L484.2,357.1 L489.8,357.9 L495.2,358.4 L500.4,358.7 L505.3,358.7\n",
       "\t\tL510.0,358.5 L514.5,358.1 L518.7,357.4 L522.6,356.6 L526.2,355.5 L529.5,354.3 L532.5,352.8 L535.1,351.2\n",
       "\t\tL537.4,349.4 L539.4,347.4 L541.0,345.3 L542.2,343.0 L543.1,340.5 L543.6,338.0 L543.8,335.3 L543.5,332.5\n",
       "\t\tL542.9,329.7 L541.8,326.7 L540.4,323.6 L538.6,320.5 L536.4,317.4 L533.8,314.2 L530.8,310.9 L527.5,307.7\n",
       "\t\tL523.7,304.4 L519.6,301.2 L515.2,297.9 L510.3,294.7 L505.1,291.6 L499.6,288.4 L493.7,285.4 L487.5,282.4\n",
       "\t\tL480.9,279.4 L474.1,276.6 L466.9,273.9 L459.5,271.2 L451.8,268.7 L443.9,266.3 L435.7,264.0 L427.3,261.9\n",
       "\t\tL418.6,259.9 L409.8,258.1 L400.8,256.4 L391.6,254.9 L382.3,253.5 L372.8,252.4 L363.3,251.4 L353.6,250.5\n",
       "\t\tL343.9,249.9 L334.1,249.4 L324.3,249.1 L314.5,249.0  '/></g>\n",
       "\t</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M314.5,249.0 L575.0,249.0  '/></g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"black\" stroke-width=\"2.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"2.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"black\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M53.9,54.1 L53.9,444.0 L575.0,444.0 L575.0,54.1 L53.9,54.1 Z  '/></g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "</g>\n",
       "</svg>\n",
       "\n"
      ],
      "text/plain": [
       "#<GnuplotRB::Plot:0x000000034c50d8 @datasets=Hamster::Vector[#<GnuplotRB::Dataset:0x000000034b7d48 @type=:math_function, @data=\"abs(sin(3*t))\", @options=Hamster::Hash[:with => \"filledcurves\", :lt => {:rgb=>\"red\"}]>], @options=Hamster::Hash[:samples => 500, :title => \"Plot in polar example\", :polar => true], @already_plotted=true, @cmd=\"plot \", @terminal=#<GnuplotRB::Terminal:0x000000034b7578 @cmd=\"gnuplot 2>&1\", @current_datablock=0, @err_array=[], @in=#<IO:fd 27>>>"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "Plot.new(\n",
    "  ['abs(sin(3*t))', with: 'filledcurves', lt: { rgb: 'red' }],\n",
    "  title: 'Plot in polar example',\n",
    "  polar: true,\n",
    "  samples: 500\n",
    ")"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#### Plot from a parametric function expression"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"utf-8\"  standalone=\"no\"?>\n",
       "<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n",
       " \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n",
       "<svg \n",
       " width=\"600\" height=\"480\"\n",
       " viewBox=\"0 0 600 480\"\n",
       " xmlns=\"http://www.w3.org/2000/svg\"\n",
       " xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n",
       ">\n",
       "\n",
       "<title>Gnuplot</title>\n",
       "<desc>Produced by GNUPLOT 5.0 patchlevel rc2 </desc>\n",
       "\n",
       "<g id=\"gnuplot_canvas\">\n",
       "\n",
       "<rect x=\"0\" y=\"0\" width=\"600\" height=\"480\" fill=\"none\"/>\n",
       "<defs>\n",
       "\n",
       "\t<circle id='gpDot' r='0.5' stroke-width='0.5'/>\n",
       "\t<path id='gpPt0' stroke-width='0.222' stroke='currentColor' d='M-1,0 h2 M0,-1 v2'/>\n",
       "\t<path id='gpPt1' stroke-width='0.222' stroke='currentColor' d='M-1,-1 L1,1 M1,-1 L-1,1'/>\n",
       "\t<path id='gpPt2' stroke-width='0.222' stroke='currentColor' d='M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1'/>\n",
       "\t<rect id='gpPt3' stroke-width='0.222' stroke='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
       "\t<rect id='gpPt4' stroke-width='0.222' stroke='currentColor' fill='currentColor' x='-1' y='-1' width='2' height='2'/>\n",
       "\t<circle id='gpPt5' stroke-width='0.222' stroke='currentColor' cx='0' cy='0' r='1'/>\n",
       "\t<use xlink:href='#gpPt5' id='gpPt6' fill='currentColor' stroke='none'/>\n",
       "\t<path id='gpPt7' stroke-width='0.222' stroke='currentColor' d='M0,-1.33 L-1.33,0.67 L1.33,0.67 z'/>\n",
       "\t<use xlink:href='#gpPt7' id='gpPt8' fill='currentColor' stroke='none'/>\n",
       "\t<use xlink:href='#gpPt7' id='gpPt9' stroke='currentColor' transform='rotate(180)'/>\n",
       "\t<use xlink:href='#gpPt9' id='gpPt10' fill='currentColor' stroke='none'/>\n",
       "\t<use xlink:href='#gpPt3' id='gpPt11' stroke='currentColor' transform='rotate(45)'/>\n",
       "\t<use xlink:href='#gpPt11' id='gpPt12' fill='currentColor' stroke='none'/>\n",
       "\t<path id='gpPt13' stroke-width='0.222' stroke='currentColor' d='M0,1.330 L1.265,0.411 L0.782,-1.067 L-0.782,-1.076 L-1.265,0.411 z'/>\n",
       "\t<use xlink:href='#gpPt13' id='gpPt14' fill='currentColor' stroke='none'/>\n",
       "\t<filter id='textbox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>\n",
       "\t  <feFlood flood-color='white' flood-opacity='1' result='bgnd'/>\n",
       "\t  <feComposite in='SourceGraphic' in2='bgnd' operator='atop'/>\n",
       "\t</filter>\n",
       "\t<filter id='greybox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>\n",
       "\t  <feFlood flood-color='lightgrey' flood-opacity='1' result='grey'/>\n",
       "\t  <feComposite in='SourceGraphic' in2='grey' operator='atop'/>\n",
       "\t</filter>\n",
       "</defs>\n",
       "<g fill=\"none\" color=\"white\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M37.3,444.0 L46.3,444.0 M575.0,444.0 L566.0,444.0  '/>\t<g transform=\"translate(29.0,448.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >-3</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M37.3,379.0 L46.3,379.0 M575.0,379.0 L566.0,379.0  '/>\t<g transform=\"translate(29.0,383.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >-2</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M37.3,314.0 L46.3,314.0 M575.0,314.0 L566.0,314.0  '/>\t<g transform=\"translate(29.0,318.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >-1</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M37.3,249.0 L46.3,249.0 M575.0,249.0 L566.0,249.0  '/>\t<g transform=\"translate(29.0,253.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M37.3,184.1 L46.3,184.1 M575.0,184.1 L566.0,184.1  '/>\t<g transform=\"translate(29.0,188.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 1</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M37.3,119.1 L46.3,119.1 M575.0,119.1 L566.0,119.1  '/>\t<g transform=\"translate(29.0,123.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 2</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M37.3,54.1 L46.3,54.1 M575.0,54.1 L566.0,54.1  '/>\t<g transform=\"translate(29.0,58.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 3</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M37.3,444.0 L37.3,435.0 M37.3,54.1 L37.3,63.1  '/>\t<g transform=\"translate(37.3,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >-3</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M126.9,444.0 L126.9,435.0 M126.9,54.1 L126.9,63.1  '/>\t<g transform=\"translate(126.9,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >-2</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M216.5,444.0 L216.5,435.0 M216.5,54.1 L216.5,63.1  '/>\t<g transform=\"translate(216.5,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >-1</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M306.2,444.0 L306.2,435.0 M306.2,54.1 L306.2,63.1  '/>\t<g transform=\"translate(306.2,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 0</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M395.8,444.0 L395.8,435.0 M395.8,54.1 L395.8,63.1  '/>\t<g transform=\"translate(395.8,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 1</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M485.4,444.0 L485.4,435.0 M485.4,54.1 L485.4,63.1  '/>\t<g transform=\"translate(485.4,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 2</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M575.0,444.0 L575.0,435.0 M575.0,54.1 L575.0,63.1  '/>\t<g transform=\"translate(575.0,466.5)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" > 3</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M37.3,54.1 L37.3,444.0 L575.0,444.0 L575.0,54.1 L37.3,54.1 Z  '/></g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<g transform=\"translate(306.1,31.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"middle\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >Parametric plot example</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "\t<g id=\"gnuplot_plot_1\" ><title>Parametric curve</title>\n",
       "<g fill=\"none\" color=\"white\" stroke=\"black\" stroke-width=\"2.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"2.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<g transform=\"translate(507.9,76.6)\" stroke=\"none\" fill=\"black\" font-family=\"Arial\" font-size=\"12.00\"  text-anchor=\"end\">\n",
       "\t\t<text><tspan font-family=\"Arial\" >Parametric curve</tspan></text>\n",
       "\t</g>\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"2.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='rgb(148,   0, 211)'  d='M516.2,72.1 L558.4,72.1 M281.6,202.0 L302.1,213.1 L326.2,219.0 L351.7,219.3 L376.2,213.7 L397.4,202.9\n",
       "\t\tL413.2,187.7 L422.1,169.5 L423.3,149.9 L416.5,130.7 L402.1,113.6 L381.4,99.9 L356.1,91.1 L328.3,87.8\n",
       "\t\tL300.4,90.3 L274.8,98.4 L253.7,111.4 L238.7,128.0 L231.2,146.9 L231.7,166.2 L240.1,184.2 L255.4,199.4\n",
       "\t\tL276.1,210.3 L300.4,216.0 L325.9,215.9 L350.1,210.2 L370.9,199.1 L386.2,183.9 L394.6,165.8 L395.1,146.4\n",
       "\t\tL387.6,127.4 L372.7,110.7 L351.6,97.6 L326.0,89.4 L298.1,86.7 L270.3,89.9 L244.9,98.6 L224.2,112.1\n",
       "\t\tL209.8,129.2 L202.9,148.3 L204.0,167.8 L212.9,185.9 L228.7,200.9 L249.8,211.7 L274.3,217.2 L299.8,216.9\n",
       "\t\tL323.9,210.9 L344.3,199.7 L359.2,184.4 L367.0,166.3 L366.9,147.1 L358.8,128.5 L343.4,112.1 L321.9,99.6\n",
       "\t\tL296.1,92.0 L268.1,90.0 L240.5,93.8 L215.5,103.1 L195.2,117.1 L181.4,134.6 L175.2,154.0 L177.0,173.6\n",
       "\t\tL186.5,191.8 L202.9,206.7 L224.4,217.3 L249.1,222.6 L274.6,222.0 L298.6,215.8 L318.7,204.4 L333.2,189.0\n",
       "\t\tL340.5,171.0 L339.9,152.0 L331.3,133.7 L315.5,117.8 L293.6,105.8 L267.7,98.8 L239.8,97.4 L212.3,101.9\n",
       "\t\tL187.7,111.8 L168.0,126.3 L154.9,144.2 L149.4,163.8 L151.9,183.6 L162.1,201.7 L179.0,216.6 L201.0,226.9\n",
       "\t\tL226.0,231.9 L251.6,231.1 L275.5,224.6 L295.4,213.1 L309.4,197.7 L316.3,179.7 L315.2,160.8 L306.2,142.8\n",
       "\t\tL290.0,127.3 L267.9,115.9 L241.9,109.4 L214.1,108.7 L186.9,113.8 L162.8,124.2 L143.7,139.2 L131.3,157.5\n",
       "\t\tL126.6,177.4 L129.9,197.2 L140.8,215.3 L158.4,230.0 L180.8,240.2 L206.1,244.9 L231.8,243.8 L255.7,237.0\n",
       "\t\tL275.4,225.3 L289.1,209.8 L295.5,191.8 L294.0,173.1 L284.6,155.4 L268.1,140.3 L245.8,129.3 L219.8,123.5\n",
       "\t\tL192.1,123.3 L165.3,129.0 L141.7,140.0 L123.3,155.4 L111.6,174.0 L107.7,194.1 L111.9,214.0 L123.6,232.0\n",
       "\t\tL141.8,246.5 L164.7,256.4 L190.4,260.8 L216.3,259.4 L240.1,252.4 L259.6,240.4 L273.0,224.8 L279.1,206.8\n",
       "\t\tL277.2,188.2 L267.4,170.8 L250.6,156.1 L228.3,145.6 L202.2,140.3 L174.8,140.7 L148.4,146.9 L125.4,158.4\n",
       "\t\tL107.6,174.2 L96.8,193.1 L93.8,213.3 L98.8,233.2 L111.3,251.1 L130.1,265.4 L153.6,275.0 L179.6,279.1\n",
       "\t\tL205.7,277.3 L229.5,270.0 L248.9,257.8 L262.0,241.9 L267.7,223.9 L265.5,205.5 L255.4,188.3 L238.4,174.0\n",
       "\t\tL215.9,163.9 L189.9,159.1 L162.8,160.0 L136.8,166.7 L114.4,178.7 L97.4,194.8 L87.4,213.9 L85.3,234.3\n",
       "\t\tL91.1,254.1 L104.4,271.9 L124.0,285.9 L148.0,295.2 L174.4,298.8 L200.6,296.7 L224.5,289.0 L243.7,276.5\n",
       "\t\tL256.6,260.5 L262.0,242.4 L259.4,224.1 L249.0,207.1 L231.7,193.1 L209.2,183.4 L183.3,179.1 L156.5,180.5\n",
       "\t\tL131.0,187.6 L109.2,200.0 L93.0,216.5 L83.8,235.7 L82.6,256.1 L89.3,275.9 L103.5,293.4 L123.7,307.2\n",
       "\t\tL148.3,316.0 L175.0,319.2 L201.4,316.6 L225.2,308.5 L244.3,295.8 L256.9,279.5 L262.0,261.4 L259.1,243.1\n",
       "\t\tL248.4,226.2 L231.0,212.5 L208.4,203.3 L182.6,199.3 L156.1,201.2 L131.1,208.7 L109.9,221.4 L94.5,238.2\n",
       "\t\tL86.2,257.5 L85.9,277.9 L93.5,297.6 L108.4,314.8 L129.4,328.2 L154.5,336.6 L181.5,339.3 L208.1,336.3\n",
       "\t\tL231.9,327.8 L250.8,314.6 L263.2,298.2 L267.9,279.9 L264.6,261.6 L253.7,244.9 L236.1,231.4 L213.4,222.5\n",
       "\t\tL187.8,219.0 L161.5,221.2 L137.0,229.1 L116.5,242.1 L101.9,259.0 L94.5,278.5 L95.0,298.8 L103.5,318.3\n",
       "\t\tL119.2,335.2 L140.8,348.2 L166.4,356.1 L193.8,358.3 L220.5,354.7 L244.2,345.7 L262.9,332.2 L275.0,315.5\n",
       "\t\tL279.4,297.1 L275.7,278.7 L264.5,262.2 L246.7,248.9 L224.0,240.3 L198.5,237.1 L172.5,239.7 L148.5,248.0\n",
       "\t\tL128.6,261.2 L114.7,278.3 L108.2,297.8 L109.6,318.0 L118.9,337.2 L135.4,353.8 L157.6,366.3 L183.6,373.6\n",
       "\t\tL211.3,375.3 L238.1,371.2 L261.7,361.7 L280.2,347.8 L291.9,330.7 L295.9,312.1 L291.9,293.7 L280.3,277.2\n",
       "\t\tL262.3,264.2 L239.5,255.8 L214.1,253.0 L188.4,255.9 L164.9,264.4 L145.6,277.8 L132.5,295.0 L126.7,314.5\n",
       "\t\tL129.0,334.6 L139.1,353.5 L156.2,369.7 L179.0,381.6 L205.5,388.5 L233.3,389.5 L260.2,384.8 L283.7,374.8\n",
       "\t\tL301.9,360.4 L313.2,343.1 L316.8,324.3 L312.4,305.8 L300.4,289.4 L282.2,276.5 L259.3,268.4 L233.9,265.8\n",
       "\t\tL208.5,269.0 L185.4,277.8 L166.7,291.4 L154.3,308.7 L149.3,328.1 L152.3,348.0 L163.2,366.6 L181.0,382.3\n",
       "\t\tL204.3,393.7 L231.1,399.9 L259.1,400.4 L285.9,395.1 L309.3,384.5 L327.1,369.7 L338.0,352.0 L341.1,333.0\n",
       "\t\tL336.2,314.4 L323.9,298.1 L305.3,285.3 L282.3,277.4 L257.0,275.1 L231.8,278.6 L209.1,287.6 L190.9,301.3\n",
       "\t\tL179.2,318.6 L174.9,337.9 L178.6,357.6 L190.2,375.8 L208.6,391.1 L232.4,402.0 L259.4,407.6 L287.5,407.4\n",
       "\t\tL314.3,401.4 L337.3,390.3 L354.8,375.0 L365.2,356.9 L367.8,337.7 L362.4,319.1 L349.6,302.8 L330.7,290.2\n",
       "\t\tL307.5,282.5 L282.2,280.4 L257.2,284.1 L234.8,293.3 L217.1,307.2 L206.0,324.5 L202.4,343.7 L206.8,363.1\n",
       "\t\tL219.0,381.0 L237.9,395.7 L262.0,406.1 L289.3,411.0 L317.5,410.2 L344.0,403.6 L366.8,391.9 L383.8,376.2\n",
       "\t\tL393.6,357.7 L395.6,338.3 L389.6,319.6 L376.3,303.3 L357.1,290.8 L333.6,283.4 L308.3,281.5 L283.4,285.5\n",
       "\t\tL261.3,294.8 L244.1,308.8 L233.5,326.1 L230.5,345.2 L235.6,364.4 L248.3,381.9 L267.7,396.1 L292.1,405.8\n",
       "\t\tL319.6,410.1 L347.6,408.6 L374.0,401.5 L396.3,389.2 L412.8,373.0 L422.0,354.2 L423.4,334.6 L416.8,315.8\n",
       "\t\tL402.9,299.5 L383.2,287.2 L359.5,280.0 L334.1,278.4 L309.3,282.6 L287.4,292.1 L270.7,306.2 L260.6,323.5\n",
       "\t\tL258.1,342.5 L263.7,361.4 L276.9,378.5 L296.7,392.2 L321.4,401.3 L348.9,405.0 L376.8,402.8 L402.9,395.0\n",
       "\t\tL424.7,382.3 L440.6,365.6 L449.2,346.5 L449.8,326.7 L442.5,307.8 L428.1,291.6 L407.9,279.5 L383.9,272.5\n",
       "\t\tL358.3,271.1 L333.5,275.5 L311.9,285.3 L295.5,299.5 L285.9,316.8 L283.9,335.7 L290.0,354.3 L303.7,371.0\n",
       "\t\tL323.8,384.2 L348.6,392.8 L376.1,395.8 L403.9,393.0 L429.5,384.6 L450.9,371.3 L466.1,354.2 L473.9,334.9\n",
       "\t\tL473.8,314.9 L465.7,296.0 L450.7,279.9 L430.0,267.9 L405.6,261.1 L379.8,260.1 L355.1,264.8 L333.7,274.8\n",
       "\t\tL317.5,289.1 L308.3,306.4 L306.8,325.1 L313.3,343.5 L327.4,359.8 L347.7,372.5 L372.7,380.5 L400.1,383.0\n",
       "\t\tL427.6,379.6 L452.8,370.6 L473.6,356.8 L488.1,339.4 L495.1,319.7 L494.2,299.6 L485.4,280.7 L469.6,264.8\n",
       "\t\tL448.4,253.0 L423.6,246.5 L397.6,245.8 L372.9,250.7 L351.6,261.0 L335.7,275.4 L326.9,292.8 L325.8,311.4\n",
       "\t\tL332.7,329.5 L347.1,345.5 L367.6,357.8 L392.7,365.2 L419.9,367.1 L447.1,363.1 L471.9,353.6 L491.9,339.4\n",
       "\t\tL505.7,321.6 L511.9,301.7 L510.1,281.5 L500.5,262.7 L484.0,246.9 L462.2,235.4 L437.0,229.2 L410.8,228.8\n",
       "\t\tL386.0,234.1 L364.8,244.6 L349.2,259.2 L340.7,276.6 L340.0,295.1 L347.3,313.1 L361.9,328.7 L382.7,340.5\n",
       "\t\tL407.7,347.5 L434.8,348.8 L461.6,344.3 L485.8,334.4 L505.2,319.7 L518.2,301.6 L523.5,281.5 L520.8,261.3\n",
       "\t\tL510.4,242.6 L493.2,227.0 L470.8,215.8 L445.2,210.0 L418.7,209.9 L393.9,215.6 L372.8,226.4 L357.4,241.2\n",
       "\t\tL349.2,258.7 L348.9,277.1 L356.5,294.9 L371.4,310.2 L392.2,321.7 L417.2,328.2 L444.1,329.0 L470.6,324.0\n",
       "\t\tL494.2,313.6 L512.9,298.6 L525.0,280.2 L529.4,260.0 L525.9,239.8 L514.6,221.2 L496.6,205.9 L473.6,195.1\n",
       "\t\tL447.6,189.6 L420.9,190.0 L396.0,196.1 L375.0,207.2 L359.9,222.2 L352.0,239.8 L352.0,258.3 L359.9,275.9\n",
       "\t\tL375.0,290.9 L396.0,302.0 L420.9,308.1 L447.6,308.5 L473.6,303.0 L496.6,292.2 L514.6,276.9 L525.9,258.3\n",
       "\t\tL529.4,238.1 L525.0,217.9 L512.9,199.5 L494.2,184.5 L470.6,174.1 L444.1,169.1 L417.2,169.9 L392.2,176.4\n",
       "\t\tL371.4,187.9 L356.5,203.2 L348.9,221.0 L349.2,239.4 L357.4,256.9 L372.8,271.7 L393.9,282.5 L418.7,288.2\n",
       "\t\tL445.2,288.1 L470.8,282.3 L493.2,271.1 L510.4,255.5 L520.8,236.8 L523.5,216.6 L518.2,196.5 L505.2,178.4\n",
       "\t\tL485.8,163.7 L461.6,153.8 L434.8,149.3 L407.7,150.6 L382.7,157.6 L361.9,169.4 L347.3,185.0 L340.0,203.0\n",
       "\t\tL340.7,221.5 L349.2,238.9 L364.8,253.5 L386.0,264.0 L410.8,269.3 L437.0,268.9 L462.2,262.7 L484.0,251.2\n",
       "\t\tL500.5,235.4 L510.1,216.6 L511.9,196.4 L505.7,176.5 L491.9,158.7 L471.9,144.5 L447.1,135.0 L419.9,131.0\n",
       "\t\tL392.7,132.9 L367.6,140.3 L347.1,152.6 L332.7,168.6 L325.8,186.7 L326.9,205.3 L335.7,222.7 L351.6,237.1\n",
       "\t\tL372.9,247.4 L397.6,252.3 L423.6,251.6 L448.4,245.1 L469.6,233.3 L485.4,217.4 L494.2,198.5 L495.1,178.4\n",
       "\t\tL488.1,158.7 L473.6,141.3 L452.8,127.5 L427.6,118.5 L400.1,115.1 L372.7,117.6 L347.7,125.6 L327.4,138.3\n",
       "\t\tL313.3,154.6 L306.8,173.0 L308.3,191.7 L317.5,209.0 L333.7,223.3 L355.1,233.3 L379.8,238.0 L405.6,237.0\n",
       "\t\tL430.0,230.2 L450.7,218.2 L465.7,202.1 L473.8,183.2 L473.9,163.2 L466.1,143.9 L450.9,126.8 L429.5,113.5\n",
       "\t\tL403.9,105.1 L376.1,102.3 L348.6,105.3 L323.8,113.9 L303.7,127.1 L290.0,143.8 L283.9,162.4 L285.9,181.3\n",
       "\t\tL295.5,198.6 L311.9,212.8 L333.5,222.6 L358.3,227.0 L383.9,225.6 L407.9,218.6 L428.1,206.5 L442.5,190.3\n",
       "\t\tL449.8,171.4 L449.2,151.6 L440.6,132.5 L424.7,115.8 L402.9,103.1 L376.8,95.3 L348.9,93.1 L321.4,96.8\n",
       "\t\tL296.7,105.9 L276.9,119.6 L263.7,136.7 L258.1,155.6 L260.6,174.6 L270.7,191.9 L287.4,206.0 L309.3,215.5\n",
       "\t\tL334.1,219.7 L359.5,218.1 L383.2,210.9 L402.9,198.6 L416.8,182.3 L423.4,163.5 L422.0,143.9 L412.8,125.1\n",
       "\t\tL396.3,108.9 L374.0,96.6 L347.6,89.5 L319.6,88.0 L292.1,92.3 L267.7,102.0 L248.3,116.2 L235.6,133.7\n",
       "\t\tL230.5,152.9 L233.5,172.0 L244.1,189.3 L261.3,203.3 L283.4,212.6 L308.3,216.6 L333.6,214.7 L357.1,207.3\n",
       "\t\tL376.3,194.8 L389.6,178.5 L395.6,159.8 L393.6,140.4 L383.8,121.9 L366.8,106.2 L344.0,94.5 L317.5,87.9\n",
       "\t\tL289.3,87.1 L262.0,92.0 L237.9,102.4 L219.0,117.1 L206.8,135.0 L202.4,154.4 L206.0,173.6 L217.1,190.9\n",
       "\t\tL234.8,204.8 L257.2,214.0 L282.2,217.7 L307.5,215.6 L330.7,207.9 L349.6,195.3 L362.4,179.0 L367.8,160.4\n",
       "\t\tL365.2,141.2 L354.8,123.1 L337.3,107.8 L314.3,96.7 L287.5,90.7 L259.4,90.5 L232.4,96.1 L208.6,107.0\n",
       "\t\tL190.2,122.3 L178.6,140.5 L174.9,160.2 L179.2,179.5 L190.9,196.8 L209.1,210.5 L231.8,219.5 L257.0,223.0\n",
       "\t\tL282.3,220.7 L305.3,212.8 L323.9,200.0 L336.2,183.7 L341.1,165.1 L338.0,146.1 L327.1,128.4 L309.3,113.6\n",
       "\t\tL285.9,103.0 L259.1,97.7 L231.1,98.2 L204.3,104.4 L181.0,115.8 L163.2,131.5 L152.3,150.1 L149.3,170.0\n",
       "\t\tL154.3,189.4 L166.7,206.7 L185.4,220.3 L208.5,229.1 L233.9,232.3 L259.3,229.7 L282.2,221.6 L300.4,208.7\n",
       "\t\tL312.4,192.3 L316.8,173.8 L313.2,155.0 L301.9,137.7 L283.7,123.3 L260.2,113.3 L233.3,108.6 L205.5,109.6\n",
       "\t\tL179.0,116.5 L156.2,128.4 L139.1,144.6 L129.0,163.5 L126.7,183.6 L132.5,203.1 L145.6,220.3 L164.9,233.7\n",
       "\t\tL188.4,242.2 L214.1,245.1 L239.5,242.3 L262.3,233.9 L280.3,220.9 L291.9,204.4 L295.9,186.0 L291.9,167.4\n",
       "\t\tL280.2,150.3 L261.7,136.4 L238.1,126.9 L211.3,122.8 L183.6,124.5 L157.6,131.8 L135.4,144.3 L118.9,160.9\n",
       "\t\tL109.6,180.1 L108.2,200.3 L114.7,219.8 L128.6,236.9 L148.5,250.1 L172.5,258.4 L198.5,261.0 L224.0,257.8\n",
       "\t\tL246.7,249.2 L264.5,235.9 L275.7,219.4 L279.4,201.0 L275.0,182.6 L262.9,165.9 L244.2,152.4 L220.5,143.4\n",
       "\t\tL193.8,139.8 L166.4,142.0 L140.8,149.9 L119.2,162.9 L103.5,179.8 L95.0,199.3 L94.5,219.6 L101.9,239.1\n",
       "\t\tL116.5,256.0 L137.0,269.0 L161.5,276.9 L187.8,279.1 L213.4,275.6 L236.1,266.7 L253.7,253.2 L264.6,236.5\n",
       "\t\tL267.9,218.2 L263.2,199.9 L250.8,183.5 L231.9,170.3 L208.1,161.8 L181.5,158.8 L154.5,161.5 L129.4,169.9\n",
       "\t\tL108.4,183.3 L93.5,200.5 L85.9,220.2 L86.2,240.6 L94.5,259.9 L109.9,276.7 L131.1,289.4 L156.1,296.9\n",
       "\t\tL182.6,298.8 L208.4,294.8 L231.0,285.6 L248.4,271.9 L259.1,255.0 L262.0,236.7 L256.9,218.6 L244.3,202.3\n",
       "\t\tL225.2,189.6 L201.4,181.5 L175.0,178.9 L148.3,182.1 L123.7,190.9 L103.5,204.7 L89.3,222.2 L82.6,242.0\n",
       "\t\tL83.8,262.4 L93.0,281.6 L109.2,298.1 L131.0,310.5 L156.5,317.6 L183.3,319.0 L209.2,314.7 L231.7,305.0\n",
       "\t\tL249.0,291.0 L259.4,274.0 L262.0,255.7 L256.6,237.6 L243.7,221.6 L224.5,209.1 L200.6,201.4 L174.4,199.3\n",
       "\t\tL148.0,202.9 L124.0,212.2 L104.4,226.2 L91.1,244.0 L85.3,263.8 L87.4,284.2 L97.4,303.3 L114.4,319.4\n",
       "\t\tL136.8,331.4 L162.8,338.1 L189.9,339.0 L215.9,334.2 L238.4,324.1 L255.4,309.8 L265.5,292.6 L267.7,274.2\n",
       "\t\tL262.0,256.2 L248.9,240.3 L229.5,228.1 L205.7,220.8 L179.6,219.0 L153.6,223.1 L130.1,232.7 L111.3,247.0\n",
       "\t\tL98.8,264.9 L93.8,284.8 L96.8,305.0 L107.6,323.9 L125.4,339.7 L148.4,351.2 L174.8,357.4 L202.2,357.8\n",
       "\t\tL228.3,352.5 L250.6,342.0 L267.4,327.3 L277.2,309.9 L279.1,291.3 L273.0,273.3 L259.6,257.7 L240.1,245.7\n",
       "\t\tL216.3,238.7 L190.4,237.3 L164.7,241.7 L141.8,251.6 L123.6,266.1 L111.9,284.1 L107.7,304.0 L111.6,324.1\n",
       "\t\tL123.3,342.7 L141.7,358.1 L165.3,369.1 L192.1,374.8 L219.8,374.6 L245.8,368.8 L268.1,357.8 L284.6,342.7\n",
       "\t\tL294.0,325.0 L295.5,306.3 L289.1,288.3 L275.4,272.8 L255.7,261.1 L231.8,254.3 L206.1,253.2 L180.8,257.9\n",
       "\t\tL158.4,268.1 L140.8,282.8 L129.9,300.9 L126.6,320.7 L131.3,340.6 L143.7,358.9 L162.8,373.9 L186.9,384.3\n",
       "\t\tL214.1,389.4 L241.9,388.7 L267.9,382.2 L290.0,370.8 L306.2,355.3 L315.2,337.3 L316.3,318.4 L309.4,300.4\n",
       "\t\tL295.4,285.0 L275.5,273.5 L251.6,267.0 L226.0,266.2 L201.0,271.2 L179.0,281.5 L162.1,296.4 L151.9,314.5\n",
       "\t\tL149.4,334.3 L154.9,353.9 L168.0,371.8 L187.7,386.3 L212.3,396.2 L239.8,400.7 L267.7,399.3 L293.6,392.3\n",
       "\t\tL315.5,380.3 L331.3,364.4 L339.9,346.1 L340.5,327.1 L333.2,309.1 L318.7,293.7 L298.6,282.3 L274.6,276.1\n",
       "\t\tL249.1,275.5 L224.4,280.8 L202.9,291.4 L186.5,306.3 L177.0,324.5 L175.2,344.1 L181.4,363.5 L195.2,381.0\n",
       "\t\tL215.5,395.0 L240.5,404.3 L268.1,408.1 L296.1,406.1 L321.9,398.5 L343.4,386.0 L358.8,369.6 L366.9,351.0\n",
       "\t\tL367.0,331.8 L359.2,313.7 L344.3,298.4 L323.9,287.2 L299.8,281.2 L274.3,280.9 L249.8,286.4 L228.7,297.2\n",
       "\t\tL212.9,312.2 L204.0,330.3 L202.9,349.8 L209.8,368.9 L224.2,386.0 L244.9,399.5 L270.3,408.2 L298.1,411.4\n",
       "\t\tL326.0,408.7 L351.6,400.5 L372.7,387.4 L387.6,370.7 L395.1,351.7 L394.6,332.3 L386.2,314.2 L370.9,299.0\n",
       "\t\tL350.1,287.9 L325.9,282.2 L300.4,282.1 L276.1,287.8 L255.4,298.7 L240.1,313.9 L231.7,331.9 L231.2,351.2\n",
       "\t\tL238.7,370.1 L253.7,386.7 L274.8,399.7 L300.4,407.8 L328.3,410.3 L356.1,407.0 L381.4,398.2 L402.1,384.5\n",
       "\t\tL416.5,367.4 L423.3,348.2 L422.1,328.6 L413.2,310.4 L397.4,295.2 L376.2,284.4 L351.7,278.8 L326.2,279.1\n",
       "\t\tL302.1,285.0 L281.6,296.1  '/></g>\n",
       "\t</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"2.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"black\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "\t<path stroke='black'  d='M37.3,54.1 L37.3,444.0 L575.0,444.0 L575.0,54.1 L37.3,54.1 Z  '/></g>\n",
       "<g fill=\"none\" color=\"black\" stroke=\"currentColor\" stroke-width=\"1.00\" stroke-linecap=\"butt\" stroke-linejoin=\"miter\">\n",
       "</g>\n",
       "</g>\n",
       "</svg>\n",
       "\n"
      ],
      "text/plain": [
       "#<GnuplotRB::Plot:0x0000000348bf18 @datasets=Hamster::Vector[#<GnuplotRB::Dataset:0x0000000348bc70 @type=:math_function, @data=\"1.5*cos(t) - cos(30*t), 1.5*sin(t) - sin(30*t)\", @options=Hamster::Hash[:lw => 2, :title => \"Parametric curve\"]>], @options=Hamster::Hash[:samples => 1000, :title => \"Parametric plot example\", :xrange => -3..3, :yrange => -3..3, :parametric => true], @already_plotted=true, @cmd=\"plot \", @terminal=#<GnuplotRB::Terminal:0x0000000348b748 @cmd=\"gnuplot 2>&1\", @current_datablock=0, @err_array=[], @in=#<IO:fd 31>>>"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "Plot.new(\n",
    "  ['1.5*cos(t) - cos(30*t), 1.5*sin(t) - sin(30*t)', title: 'Parametric curve', lw: 2],\n",
    "  title: 'Parametric plot example',\n",
    "  parametric: true,\n",
    "  samples: 1000,\n",
    "  xrange: -3..3,\n",
    "  yrange: -3..3\n",
    ")"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Ruby 2.1.2",
   "language": "ruby",
   "name": "ruby"
  },
  "language_info": {
   "file_extension": "rb",
   "mimetype": "application/x-ruby",
   "name": "ruby",
   "version": "2.1.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}