Ubuntu - gnuplot 重新读取取消选择的文本

标签 ubuntu plot gnuplot

我正在我的 ubuntu 分区上运行一个模拟 - 一个流体动力学问题,在我运行它的同时,我希望能够看到它是如何进行的,所以我有脚本来使用 gnuplot 绘制数据。这些看起来像这样 -

set term x11 1 noraise
set logscale y
set title "Residuals"
set ylabel 'Residual'
set xlabel 'Iteration'
plot "< cat log.simpleFoam | grep 'Solving for Ux' | cut -d' ' -f9 | tr -d ','" title 'Ux' with lines,\
"< cat log.simpleFoam | grep 'Solving for Uy' | cut -d' ' -f9 | tr -d ','" title 'Uy' with lines,\
"< cat log.simpleFoam | grep 'Solving for epsilon' | cut -d' ' -f9 | tr -d ','" title 'epsilon' with lines,\
"< cat log.simpleFoam | grep 'Solving for k' | cut -d' ' -f9 | tr -d ','" title 'k' with lines,\
"< cat log.simpleFoam | grep 'Solving for p' | cut -d' ' -f9 | tr -d ','" title 'p' with lines
pause 1
reread

第一行是一个修复程序,我发现每次重新绘制图表时都会停止 x11 绘图窗口强制自身到前面,但是我仍然有一个问题让我的生活变得困难:每次重新阅读情节时我选择的任何文本在任何应用程序中都会自动取消选择,这使得运行这些非常困难,因为我想在它们运行时处理其他事情。

有谁知道发生这种情况的原因?或者有解决办法吗?

最佳答案

您可以使用不同的终端(pdf、eps 等)并在 evince 中保持输出打开,它会自动刷新。当我以前在 Ubuntu 中工作时,这对我有用。

set term pdfcairo
set output 'dynamics.pdf'
...

至于为什么会发生这种情况:我的想法是,如果您运行的是非常新版本的 Ubuntu,X 可能无法与 Mir 配合使用。否则我不是很清楚;它可能值得作为错误报告提交。

关于Ubuntu - gnuplot 重新读取取消选择的文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22463636/

相关文章:

用于检查文件是否正在创建的 Bash 脚本

ubuntu - 使用 qt creator 安装 qwt

java - 将绘图从 R 调用到 Java 应用程序中

python - Pandas 没有在 y 轴上显示 timedelta 所需的结果

math - gnuplot - 在椭球内绘制随机点

gcc - 如何在 Ubuntu 10.10 上安装 gcc-4.1

linux - Ubuntu/Darling - dyld : Failed to load native library: libSimpleWebKit. 所以

python - 如何在 Bokeh 中旋转字形?

colors - gnuplot - 用不同的颜色为一些抽动或 Axis 号着色

gnuplot - 如何使用文本文件中包含的 x、y、z 数据在 gnuplot 中绘制 3D 线图?