function grmh() { canvas = document.getElementById("grmh"); ctx = canvas.getContext("2d"); // Reinitialize mouse tracking and zoom for this particular plot if ((typeof(gnuplot.active_plot) == "undefined" || gnuplot.active_plot != grmh) && typeof(gnuplot.mouse_update) != "undefined") { gnuplot.active_plot_name = "grmh"; gnuplot.active_plot = grmh; canvas.onmousemove = gnuplot.mouse_update; canvas.onmouseup = gnuplot.zoom_in; canvas.onmousedown = gnuplot.saveclick; canvas.onkeypress = gnuplot.do_hotkey; if (canvas.attachEvent) {canvas.attachEvent('mouseover', grmh);} else if (canvas.addEventListener) {canvas.addEventListener('mouseover', grmh, false);} gnuplot.zoomed = false; gnuplot.zoom_axis_width = 0; gnuplot.zoom_in_progress = false; gnuplot.polar_mode = false; ctx.clearRect(0,0,500,350); } // Gnuplot version 4.6.3 // short forms of commands provided by gnuplot_common.js function DT (dt) {gnuplot.dashtype(dt);}; function DS (x,y) {gnuplot.dashstart(x,y);}; function DL (x,y) {gnuplot.dashstep(x,y);}; function M (x,y) {if (gnuplot.pattern.length > 0) DS(x,y); else gnuplot.M(x,y);}; function L (x,y) {if (gnuplot.pattern.length > 0) DL(x,y); else gnuplot.L(x,y);}; function Dot (x,y) {gnuplot.Dot(x/10.,y/10.);}; function Pt (N,x,y,w) {gnuplot.Pt(N,x/10.,y/10.,w/10.);}; function R (x,y,w,h) {gnuplot.R(x,y,w,h);}; function T (x,y,fontsize,justify,string) {gnuplot.T(x,y,fontsize,justify,string);}; function TR (x,y,angle,fontsize,justify,string) {gnuplot.TR(x,y,angle,fontsize,justify,string);}; function bp (x,y) {gnuplot.bp(x,y);}; function cfp () {gnuplot.cfp();}; function cfsp() {gnuplot.cfsp();}; ctx.lineCap = "butt"; ctx.lineJoin = "miter"; CanvasTextFunctions.enable(ctx); ctx.strokeStyle = "rgb(215,215,215)"; ctx.lineWidth = 1; ctx.lineWidth = 1; ctx.strokeStyle = "rgb(000,000,000)"; ctx.beginPath(); M(520,3300); L(620,3300); M(4759,3300); L(4659,3300); ctx.stroke(); ctx.closePath(); T(440,3350,10.0,"Right","-1.5"); ctx.beginPath(); M(520,2777); L(620,2777); M(4759,2777); L(4659,2777); ctx.stroke(); ctx.closePath(); T(440,2827,10.0,"Right","-1"); ctx.beginPath(); M(520,2254); L(620,2254); M(4759,2254); L(4659,2254); ctx.stroke(); ctx.closePath(); T(440,2304,10.0,"Right","-0.5"); ctx.beginPath(); M(520,1730); L(620,1730); M(4759,1730); L(4659,1730); ctx.stroke(); ctx.closePath(); T(440,1780,10.0,"Right"," 0"); ctx.beginPath(); M(520,1207); L(620,1207); M(4759,1207); L(4659,1207); ctx.stroke(); ctx.closePath(); T(440,1257,10.0,"Right"," 0.5"); ctx.beginPath(); M(520,684); L(620,684); M(4759,684); L(4659,684); ctx.stroke(); ctx.closePath(); T(440,734,10.0,"Right"," 1"); ctx.beginPath(); M(520,161); L(620,161); M(4759,161); L(4659,161); ctx.stroke(); ctx.closePath(); T(440,211,10.0,"Right"," 1.5"); ctx.beginPath(); M(520,3300); L(520,3200); M(520,161); L(520,261); ctx.stroke(); ctx.closePath(); T(520,3450,10.0,"Center","-10"); ctx.beginPath(); M(1580,3300); L(1580,3200); M(1580,161); L(1580,261); ctx.stroke(); ctx.closePath(); T(1580,3450,10.0,"Center","-5"); ctx.beginPath(); M(2640,3300); L(2640,3200); M(2640,161); L(2640,261); ctx.stroke(); ctx.closePath(); T(2640,3450,10.0,"Center"," 0"); ctx.beginPath(); M(3699,3300); L(3699,3200); M(3699,161); L(3699,261); ctx.stroke(); ctx.closePath(); T(3699,3450,10.0,"Center"," 5"); ctx.beginPath(); M(4759,3300); L(4759,3200); M(4759,161); L(4759,261); ctx.stroke(); ctx.closePath(); T(4759,3450,10.0,"Center"," 10"); ctx.beginPath(); M(520,161); L(520,3300); L(4759,3300); L(4759,161); L(520,161); ctx.closePath(); ctx.stroke(); ctx.beginPath(); M(600,636); L(600,261); L(2140,261); L(2140,636); L(600,636); ctx.closePath(); ctx.stroke(); if (typeof(gnuplot.hide_grmh_plot_1) == "undefined"|| !gnuplot.hide_grmh_plot_1) { ctx.strokeStyle = "rgb(255,000,000)"; ctx.strokeStyle = "rgb(000,000,000)"; T(1560,373,10.0,"Right","sin(x)"); ctx.strokeStyle = "rgb(255,000,000)"; ctx.beginPath(); M(1640,323); L(2060,323); M(520,1161); L(607,1557); L(693,1980); L(780,2363); L(866,2642); L(953,2771); L(1039,2729); L(1126,2523); L(1212,2187); L(1299,1776); L(1385,1357); L(1472,1000); L(1558,763); L(1645,684); L(1731,778); L(1818,1028); L(1904,1394); L(1991,1815); L(2077,2222); L(2164,2548); L(2250,2740); L(2337,2766); L(2423,2622); L(2510,2332); L(2596,1943); L(2683,1518); L(2769,1129); L(2856,839); L(2942,695); L(3029,721); L(3115,913); L(3202,1239); L(3288,1646); L(3375,2067); L(3461,2433); L(3548,2683); L(3634,2777); L(3721,2698); L(3807,2461); L(3894,2104); L(3980,1685); L(4067,1274); L(4153,938); L(4240,732); L(4326,690); L(4413,819); L(4499,1098); L(4586,1481); L(4672,1904); L(4759,2300); ctx.stroke(); ctx.closePath(); } // End grmh_plot_1 if (typeof(gnuplot.hide_grmh_plot_2) == "undefined"|| !gnuplot.hide_grmh_plot_2) { ctx.lineWidth = 1; ctx.strokeStyle = "rgb(000,171,000)"; ctx.strokeStyle = "rgb(000,000,000)"; T(1560,498,10.0,"Right","atan(x)"); ctx.strokeStyle = "rgb(000,171,000)"; ctx.beginPath(); M(1640,448); L(2060,448); M(520,3270); L(607,3265); L(693,3261); L(780,3255); L(866,3250); L(953,3243); L(1039,3236); L(1126,3229); L(1212,3220); L(1299,3210); L(1385,3199); L(1472,3186); L(1558,3172); L(1645,3154); L(1731,3134); L(1818,3110); L(1904,3080); L(1991,3044); L(2077,2997); L(2164,2936); L(2250,2852); L(2337,2735); L(2423,2563); L(2510,2305); L(2596,1941); L(2683,1520); L(2769,1156); L(2856,898); L(2942,726); L(3029,609); L(3115,525); L(3202,464); L(3288,417); L(3375,381); L(3461,351); L(3548,327); L(3634,307); L(3721,289); L(3807,275); L(3894,262); L(3980,251); L(4067,241); L(4153,232); L(4240,225); L(4326,218); L(4413,211); L(4499,206); L(4586,200); L(4672,196); L(4759,191); ctx.stroke(); ctx.closePath(); } // End grmh_plot_2 if (typeof(gnuplot.hide_grmh_plot_3) == "undefined"|| !gnuplot.hide_grmh_plot_3) { ctx.lineWidth = 1; ctx.strokeStyle = "rgb(000,000,225)"; ctx.strokeStyle = "rgb(000,000,000)"; T(1560,623,10.0,"Right","cos(atan(x))"); ctx.strokeStyle = "rgb(000,000,225)"; ctx.beginPath(); M(1640,573); L(2060,573); M(520,1626); L(607,1622); L(693,1617); L(780,1612); L(866,1606); L(953,1600); L(1039,1593); L(1126,1585); L(1212,1577); L(1299,1567); L(1385,1556); L(1472,1544); L(1558,1529); L(1645,1512); L(1731,1493); L(1818,1469); L(1904,1441); L(1991,1406); L(2077,1361); L(2164,1305); L(2250,1230); L(2337,1130); L(2423,998); L(2510,838); L(2596,705); L(2683,705); L(2769,838); L(2856,998); L(2942,1130); L(3029,1230); L(3115,1305); L(3202,1361); L(3288,1406); L(3375,1441); L(3461,1469); L(3548,1493); L(3634,1512); L(3721,1529); L(3807,1544); L(3894,1556); L(3980,1567); L(4067,1577); L(4153,1585); L(4240,1593); L(4326,1600); L(4413,1606); L(4499,1612); L(4586,1617); L(4672,1622); L(4759,1626); ctx.stroke(); ctx.closePath(); } // End grmh_plot_3 ctx.lineWidth = 1; ctx.strokeStyle = "rgb(000,000,000)"; ctx.beginPath(); M(520,161); L(520,3300); L(4759,3300); L(4759,161); L(520,161); ctx.closePath(); ctx.stroke(); // plot boundaries and axis scaling information for mousing gnuplot.plot_term_xmax = 500; gnuplot.plot_term_ymax = 350; gnuplot.plot_xmin = 52.0; gnuplot.plot_xmax = 475.9; gnuplot.plot_ybot = 330.0; gnuplot.plot_ytop = 16.1; gnuplot.plot_width = 423.9; gnuplot.plot_height = 313.9; gnuplot.plot_axis_xmin = -10; gnuplot.plot_axis_xmax = 10; gnuplot.plot_axis_ymin = -1.5; gnuplot.plot_axis_ymax = 1.5; gnuplot.plot_axis_x2min = "none" gnuplot.plot_axis_y2min = "none" gnuplot.plot_logaxis_x = 0; gnuplot.plot_logaxis_y = 0; gnuplot.plot_axis_width = gnuplot.plot_axis_xmax - gnuplot.plot_axis_xmin; gnuplot.plot_axis_height = gnuplot.plot_axis_ymax - gnuplot.plot_axis_ymin; gnuplot.plot_timeaxis_x = ""; }