svg - 如何更改由 gnuplot 生成的 svg 标签?

标签 svg gnuplot

我真的很喜欢 gnuplot svg 输出,但是有什么方法可以定义 <title></title><desc></desc> gnuplot 生成的标签?

标题默认为 <title>Gnuplot</title>以及对 <desc>Produced by GNUPLOT 4.6 patchlevel 5</desc> 的描述(或分别使用的版本)。

有没有办法用 gnuplot 脚本代码更改这些,或者是编辑输出 svg 文件的唯一方法?

最佳答案

这很有趣,我刚刚在我的编辑器中安装了 SVG 终端驱动程序。使用 GnuPlot 4.6.4,您可以使用终端名称选项设置标题。所以当你设置终端时,还要设置 name 选项:

set term svg name "my title"

请注意,“我的标题”周围的引号很重要,否则您将收到未知变量错误。

从终端驱动代码看,好像不能更改描述,好像是硬编码的。
fprintf (gpoutfile, "<desc>Produced by GNUPLOT %s patchlevel %s </desc>\n\n",
         gnuplot_version, gnuplot_patchlevel);

关于svg - 如何更改由 gnuplot 生成的 svg 标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22256232/

相关文章:

带有溢出 SVG 背景的 HTML 按钮

c# - 将多路径 SVG 转换为几何图形再转换为 WPF

javascript - 如何避免IE中的滚动条?

Python 子进程 : how to pipe to gnuplot a command to plot a variable?

css - 当鼠标悬停在不同的元素上时在元素上设置 css 样式

javascript - 如何在我的 d3js 示例中添加 if 条件

time - x 轴上的 Gnuplot 日期和时间

gnuplot - 计算 gnuplot for linux 中多个文件的列之间的平均值

ruby - 此 gnuplot 代码的正确 Ruby gnuplot (rgplot) 语法是什么?

gnuplot - 如何改进 Gnuplot 中渐变和填充元素的渲染?