簡體   English   中英

上載從gnuplot畫布生成的html文件

[英]uploading the html file produced from gnuplot canvas

我使用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>
...

盡管Google Chrome瀏覽器可以毫無問題地閱讀這些內容,但除非將行更改為,否則Firefox將不會加載:

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

希望可以解決您的問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM