plot - 带有 epslatex 的 Gnuplot:如何在生成输出时处理错误
问题描述
我有以下脚本,它生成一个 .eps 文件作为最终输出
set terminal epslatex color size 4.5in,4.5in standalone
set output 'profile.tex'
set xlabel "Time"
set ylabel "$d_g$"
set xrange [:500000]
set yrange [:40]
set size ratio 1.05
set key right bottom
pl 'file.txt' u 2:(17.75-$4) w l
unset out
set out
system('latex profile.tex && dvips profile.dvi && ps2pdf profile.ps')
system('mv profile.ps CON_GBD.eps')
unset terminal
set out
使用上述脚本时,出现以下错误
! Missing $ inserted.
<inserted text>
$
l.175 \gplfronttext
?
谁能指出为什么会出现这个错误?
解决方案
推荐阅读
- firebase - firebase 托管获取 ERR_TOO_MANY_REDIRECTS 以使用动态重定向
- hyperledger-composer - 改进了 Hyperledger Composer 框架的资产类型实体的审计跟踪可用性
- excel - 在 Excel 中,计算给定时间范围内的重叠和非重叠持续时间
- ssl - 引起:java.lang.ClassNotFoundException:org.springframework.xd.dirt.integration.rabbit.RabbitConnectionFactoryBean
- reactjs - 渲染前调用几个依赖函数
- javascript - 正则表达式匹配两个字符之间的字符不包含在Javascript中
- c# - c#最短路径算法选项
- python - 多次调用时的 multiprocessing.Pool 行为
- c++ - 为什么 CLang++ 不优化循环而 G++ 优化?
- c# - 执行 sqlCE 查询时出现 C# 异常