gnuplotでSVG出力

gnuplot4.0でSVGに出力できるのを知って驚いた。でも、DeerParkで開こうとしてもXMLの中身が表示されるだけだったりする。

これはSVGの要素にネームスペースが割り当てられていなかったのが原因。というわけで、ファイルの頭の方にあるsvg要素に

xmlns="http://www.w3.org/2000/svg"

を追加してやれば、DeerParkでも画像として表示されるようになる。


Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt="">