上传gnuplot画布生成的html文件



我使用gnuplot画布制作了一个html文件:

gnuplot> set terminal canvas
Terminal type set to 'canvas'
Options are ' solid butt size 600,400 fsize 10 lw 1 fontscale 1 standalone'
gnuplot> set output 'output.html'  
gnuplot> plot [0:25] sin(x)

但当我在浏览器上打开output.html时,它并没有显示任何内容,只是一个空白页面。我看了output.html的内容,似乎还可以。

谢谢你的帮助!!

请检查output.html:gnuplot将自动生成以下行:

<script src="C:/yourpath/canvastext.js"></script>
<script src="C:/yourpath/gnuplot_common.js"></script>
...

虽然谷歌浏览器会毫无问题地阅读这些内容,但Firefox不会加载,除非你将行改为:

<script src="file://C:/yourpath/canvastext.js"></script>
<script src="file://C:/yourpath/gnuplot_common.js"></script>
...

希望这能解决你的问题。

最新更新