如何解决gnuplot HTML canvas缩放到静态页面
我的目标是获得一个交互式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就绪的画布版本,如演示http://gnuplot.info/demo_canvas_5.2/?
解决方法
不确定“它引用本地js”是什么意思。如果您是说
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。