Gnuplot HTML canvas 缩放到静态页面
Gnuplot HTML canvas to static page with zoom
我的目标是获得一个交互式 gnuplot,您可以在其中放大到 http://gnuplot.info/demo_canvas_5.2/
时那样的时间范围
gnuplot> set terminal canvas
Terminal type is now 'canvas'
Options are ' rounded size 600,400 enhanced fsize 10 lw 1 fontscale 1 standalone'
gnuplot> set output 'output.html'
gnuplot> plot [0:25] sin(x)
gnuplot>
[hendry@t480s c]$ grep .js output.html
<!--[if IE]><script type="text/javascript" src="excanvas.js"></script><![endif]-->
<script src="/usr/share/gnuplot/5.4/js/canvastext.js"></script>
<script src="/usr/share/gnuplot/5.4/js/gnuplot_common.js"></script>
<script src="/usr/share/gnuplot/5.4/js/gnuplot_dashedlines.js"></script>
// short forms of commands provided by gnuplot_common.js
<link type="text/css" href="/usr/share/gnuplot/5.4/js/gnuplot_mouse.css" rel="stylesheet">
在我的本地 gnuplot 5.4 patchlevel 0
它引用了本地 js,所以我需要重写它并且它没有缩放按钮(没有 table id="gnuplot_mousebox"
)。我是否缺少获得更封装/Web 就绪版本的 canvas 的技巧,例如演示 http://gnuplot.info/demo_canvas_5.2/?
不确定“它引用本地 js”是什么意思。如果您的意思是
我的目标是获得一个交互式 gnuplot,您可以在其中放大到 http://gnuplot.info/demo_canvas_5.2/
时那样的时间范围gnuplot> set terminal canvas
Terminal type is now 'canvas'
Options are ' rounded size 600,400 enhanced fsize 10 lw 1 fontscale 1 standalone'
gnuplot> set output 'output.html'
gnuplot> plot [0:25] sin(x)
gnuplot>
[hendry@t480s c]$ grep .js output.html
<!--[if IE]><script type="text/javascript" src="excanvas.js"></script><![endif]-->
<script src="/usr/share/gnuplot/5.4/js/canvastext.js"></script>
<script src="/usr/share/gnuplot/5.4/js/gnuplot_common.js"></script>
<script src="/usr/share/gnuplot/5.4/js/gnuplot_dashedlines.js"></script>
// short forms of commands provided by gnuplot_common.js
<link type="text/css" href="/usr/share/gnuplot/5.4/js/gnuplot_mouse.css" rel="stylesheet">
在我的本地 gnuplot 5.4 patchlevel 0
它引用了本地 js,所以我需要重写它并且它没有缩放按钮(没有 table id="gnuplot_mousebox"
)。我是否缺少获得更封装/Web 就绪版本的 canvas 的技巧,例如演示 http://gnuplot.info/demo_canvas_5.2/?
不确定“它引用本地 js”是什么意思。如果您的意思是