【问题标题】:Spurious '-' text with epslatex and multiplot带有 epslatex 和多图的虚假“-”文本
【发布时间】:2022-01-04 04:11:41
【问题描述】:

以下 gnuplot sn-p 生成一个多图,显示通过标准输入移植的六个数据图,但使用的特殊文件名“-”也打印在输出上:

set term epslatex color
set output 'mwe.tex'
set multiplot layout 3,2 scale 1,1 columnsfirst
set xrange [-3.1415:3.1415]
set yrange[-1.0:1.0]
set cbrange [-1:1]
set size ratio -1.0
set palette rgb 33,13,10
unset colorbox
plot '-' with image
-3.1416 -1.00 0.00
-3.1089 -1.00 0.00
 (...)
e
(...)
unset multiplot

(在 unset multiplot 命令之前使用不同的输入重复六次'plot' 命令以及随后的直到并包括'e'。)

输出显示为here。特殊文件名“-”必须包含在绘图命令中以绘制内联数据,但它不应显示在结果图中。如何避免这种行为?

在 epslatex 中使用“独立”术语选项时问题仍然存在,但在使用其他终端时不会出现。

我使用 gnuplot 4.6 补丁 2。

【问题讨论】:

  • 欢迎来到 StackOverflow!您是否尝试过plot '-' with image notitle 或绘图命令set key noautotitle 之前的一行?
  • 多谢,解决了!

标签: gnuplot


【解决方案1】:

根据 StackOverflow 规则“cmets 中没有答案”,这里再次作为答案。还要检查help key 和那里的选项。

试试:

set key noautotitle

plot '-' with image notitle 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-29
    • 2013-08-04
    • 2018-09-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多