AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[gnuplot](ubuntu)

Martin Hope
user1237300
Asked: 2019-12-22 18:54:33 +0800 CST

在 /usr/local/bin 中找不到 gnuplot

  • 0

我正在运行一个我发现的 bash 脚本,它负责使用 gnuplot 生成乳胶。

该脚本包括以下行:

gnuplot_cmd="/usr/local/bin/gnuplot";

和

if [ ! -e $gnuplot_cmd ];
then
  echo "# Error: gnuplot not found";

bash 脚本在我的计算机中引发错误。我已经gnuplot安装并且可以正常工作。但是,在/usr/local/bin/gnuplot.

关于如何解决此问题的任何建议?

谢谢!

software-installation bash latex gnuplot
  • 2 个回答
  • 1708 Views
Martin Hope
Juan David
Asked: 2019-03-14 19:55:53 +0800 CST

如何将 Makefile.am 转换为 Makefile.in?

  • 2

我正在尝试从 github 安装 gnuplot 5.3。我在跑

aclocal
autoheader
autoconf
automake

包位置内。

这给出了一个错误,因为automake正在寻找 Makefile.in 并且我有一堆 Makefile.am 文件,据说automake应该将 .am 文件更改为 .in 但这显然不会发生。由于同样的原因无法运行./configure,如何让.am文件更改为.in?

compiling gnuplot automake autoconf
  • 1 个回答
  • 1536 Views
Martin Hope
Barbaud Julien
Asked: 2019-01-03 19:45:52 +0800 CST

使用 gnuplot(Ubuntu for windows)“无法连接到任何 X 显示器”

  • 4

我已经安装了适用于 Windows 的 Ubuntu 扩展,但是当我想使用 gnuplot 时遇到了麻烦......我只是想绘制一个简单的数据文件,但出现以下错误:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-julien_barbaud'

qt.qpa.screen: QXcbConnection: Could not connect to display 

Could not connect to any X display.

Could not connect to existing gnuplot_qt. Starting a new one.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to
'/tmp/runtime-julien_barbaud'

qt.qpa.screen: QXcbConnection: Could not connect to display 

Could not connect to any X display.

你可能猜到了,我对这个问题不是很熟悉。我应该在我的环境中设置一些东西来解决这个问题吗?

编辑:在评论中提出建议后,我尝试使用set term postscript. 输出不同,但仍然没有情节......

设置术语后记后的绘图输出

在尝试之后set term png, plot 命令给了我这个:

在此处输入图像描述

environment-variables display qt gnuplot
  • 2 个回答
  • 51496 Views
Martin Hope
fa__
Asked: 2018-10-12 02:48:46 +0800 CST

使用 gnuplot 生成的裁剪 pdf

  • 1

我正在使用 gnuplot 生成一个图表,然后,我需要将其中的一部分裁剪为 pdf 或高质量图像,以便与 LaTeX 一起使用。

我尝试将图形生成为 pdf,然后对其进行裁剪,但无法使用可用于其他 pdf 的工具对其进行转换。我可以用 Evince 打开它,但不能用 Okular 或 Pdf-Shuffler 打开。我也尝试过使用 Krop 和 Briss,但没有成功。Pdfcrop 返回以下错误:

!!! Error: Cannot find PDF header of 'my_graph.pdf'

我可以截取 pdf 的屏幕截图,但无法将其另存为 pdf,如果另存为图像,则质量不够好。

我发现了一个旧的 pdf-shuffler 错误,它指的是仅包含图像的 pdf。我想知道我的问题是否相关,因为 pdf 仅包含图表。但是,这个问题已经解决了,只与导出有关,而我无法导入。

我正在使用 Ubuntu 17.10。

我可以使用任何工具将 gnuplot 生成的图形裁剪为 pdf(或高质量图像)吗?

这个 pdf 文件与其他相同格式的文件有何不同?

software-recommendation pdf gnuplot
  • 2 个回答
  • 279 Views
Martin Hope
zarathustra-f90
Asked: 2018-06-16 05:45:36 +0800 CST

Gnuplot - 在 2D 等高线图上绘制数据点

  • 1

我想将一些数据点(M_Coord_Plain.txt)绘制到 2D 轮廓投影(由Contours.txt上的数据制作)。

我在这些帖子中找到了类似的答案:How to mark some points on 2D heat map in gnuplot? ,将点叠加到 pm3d 地图上?,但不幸的是,这些似乎不适用于我的情况。

首先我设置选项:

set pm3d explicit   
unset surface     # Switch off the surface    
set view map      # Set a bird eye (xy plane) view    
set contour       # Plot contour lines    
set key outside    
set cntrparam cubicspline   # smooth out the lines    
unset colorbox

然后我用 splot 命令绘图:

splot 'Contours.txt' using 1:2:3 notitle with pm3d,\
'M_Coord_Plain.txt' with points nocontour using 1:2:(0) pt 7

结果图只是轮廓 2D 投影,但上面没有点,也没有错误。

我在 Ubuntu 16.04LTS 上使用 Gnuplot 5.0 补丁级别 3。

gnuplot
  • 1 个回答
  • 8490 Views
Martin Hope
Cyber_Star
Asked: 2017-12-17 05:18:20 +0800 CST

Gnuplot timefmt 不工作

  • 0

我正在使用 gnuplot 在图表上显示简单数据。

我的数据文件(output.csv)如下所示:

14:06,30.947
14:07,34.476

第一列是时间,第二列是数据。为了在图表中显示这一点,我在 gnuplot 中使用了这些命令:

set timefmt "%H:%M"
set xdata time
set datafile separator ','
plot "output2.csv" using 1:2 with lines

现在,当我这样做时,我的图表如下所示: 在此处输入图像描述

现在你可以看到我的 x 轴只需要几分钟而不是几小时。为什么会这样?

gnuplot
  • 1 个回答
  • 622 Views
Martin Hope
deepblue_86
Asked: 2016-08-10 05:14:35 +0800 CST

保存 gnuplot 图而不显示绘图

  • 0

我有一个数据文件(data.txt)。我可以使用 gnup 命令绘制数据。喜欢;

gnup -p data.txt -xl 'Hours' -yl 'Data (m)'

执行上述命令后,我需要保存绘图(例如 png 格式)而不绘制数据。那可能吗?

gnuplot
  • 1 个回答
  • 2543 Views
Martin Hope
jackaraz
Asked: 2014-05-22 12:39:09 +0800 CST

CalcHEP 进程时出现 Gnuplot 错误

  • 1

我不知道这是不是该问的地方,但是学校的服务器在 Calchep 批处理模式下执行过程时给出了以下错误。它显然是关于 gnuplot 的,但我不知道,因为我没有接触过程序的代码。

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ “gnuplot_instructions”,第 1 行:警告:弃用的颜色选项

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ “gnuplot_instructions”,第 1 行:警告:弃用的颜色选项`

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 x000000 xadd8e6 xadd8e6 x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option set term png transparent medium xffffff x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option

set term png transparent medium xffffff x000000 ^ "gnuplot_instructions", line 1: warning: deprecated color option$

gnuplot
  • 1 个回答
  • 417 Views
Martin Hope
skypemesm
Asked: 2010-10-31 05:29:08 +0800 CST

GNUPLOT 删除 xtick 标签之间的重叠

  • 4

在GnuPlot中,我将xtics设置为如下所示:

设置 xtics
(“AIM”0.00000、“gtalk”2.00000、“rtp-multicast-filetransfer”4.00000、“sipc_music”6.00000、“skype1”8.00000、“skype2”10.00000、“voip-extension”12.00000、“voip-extension002downata”14.00 , "ymessenger" 16.00000)

问题是,这些标签在图中相互重叠,那么我该如何消除/克服这种重叠?

我可以增加xticks之间的长度或写一些图例来显示:
rmf : rtp-multicast-filetransfer?

gnuplot
  • 1 个回答
  • 6395 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve