{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Animation\n",
"\n",
"GnuplotRB is able to create gif animations with several plots given as frames.\n",
"This may be useful to show how function changes in time.\n",
"\n",
"#### Examples\n",
"##### Changing heatmap"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/html": [
""
],
"text/plain": [
"# [\"map\", {:interpolate=>[8, 8]}], :palette => \"grey\"], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:matrix => true]>], @cmd=\"splot \">, # [\"map\", {:interpolate=>[8, 8]}], :palette => \"grey\"], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:matrix => true]>], @cmd=\"splot \">, # [\"map\", {:interpolate=>[8, 8]}], :palette => \"grey\"], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:matrix => true]>], @cmd=\"splot \">, # [\"map\", {:interpolate=>[8, 8]}], :palette => \"grey\"], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:matrix => true]>], @cmd=\"splot \">, # [\"map\", {:interpolate=>[8, 8]}], :palette => \"grey\"], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:matrix => true]>], @cmd=\"splot \">, # [\"map\", {:interpolate=>[8, 8]}], :palette => \"grey\"], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:matrix => true]>], @cmd=\"splot \">], @options=Hamster::Hash[:animate => {:delay=>30}]>"
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"require 'gnuplotrb'\n",
"include GnuplotRB\n",
"include Math\n",
"\n",
"def generate_heatmaps(initial)\n",
" initial.map do\n",
" Splot.new(\n",
" [initial.shuffle, matrix: true],\n",
" pm3d: ['map', interpolate: [8, 8]],\n",
" palette: 'grey'\n",
" )\n",
" end\n",
"end\n",
"\n",
"initial_heatmap = [\n",
" [6, 5, 4, 3, 1, 0],\n",
" [3, 2, 2, 0, 0, 1],\n",
" [0, 0, 0, 0, 1, 0],\n",
" [0, 0, 0, 0, 2, 3],\n",
" [0, 0, 1, 2, 4, 3],\n",
" [0, 1, 2, 3, 4, 5],\n",
"]\n",
"\n",
"Animation.new(*generate_heatmaps(initial_heatmap), animate: { delay: 30 })"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Periodic function"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/html": [
""
],
"text/plain": [
"# \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">, # \"Moving sinx\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:yrange => -2..2, :xrange => -5..5, :samples => 1000]>"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"def periodic_plots\n",
" count = 100\n",
" timestep = 2 * PI / count\n",
" count.times.map do |i|\n",
" angle = i * timestep\n",
" Plot.new([\"sin(x * 30 - 10 * #{angle}) * exp(-abs(x + 2 * sin(#{angle})))\", title: 'Moving sinx'])\n",
" end\n",
"end\n",
"\n",
"Animation.new(*periodic_plots, xrange: -5..5, yrange: -2..2, samples: 1000)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Trajectory plots"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/html": [
""
],
"text/plain": [
"# 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Velocity (x)\", :with => \"lines\"]>, #, @options=Hamster::Hash[:title => \"Velocity (y)\", :with => \"lines\"]>], @cmd=\"plot \">], @options=Hamster::Hash[:layout => [2, 1]]>, # 1.0999999999999996..3.4591836734693877, :xrange => -10.0..-9.0], @datasets=Hamster::Vector[#, @options=Hamster::Hash[:title => \"Object's trajectory\", :with => \"lines\", :lw => 2]>, #, @options=Hamster::Hash[:pointtype => 7, :pointsize => 2, :title => \"Object\"]>], @cmd=\"plot \">, # 0..6.800000000000001, :xrange => 0..1], @datasets=Hamster::Vector[#