为什么密钥在最新的Gnuplot中失败?
该线程的代码在旧的Gnuplot(19.4.2015)中工作,但在最新的Ubuntu 15.10和OS X 10.11.2中失败。 资料 代码最初基于Christoph的答案 Ubuntu15.10 Gnuplot 4.6 patchlevel 6中的输出,其中两个键丢失了两倍的警告为什么密钥在最新的Gnuplot中失败?,plot,gnuplot,Plot,Gnuplot,该线程的代码在旧的Gnuplot(19.4.2015)中工作,但在最新的Ubuntu 15.10和OS X 10.11.2中失败。 资料 代码最初基于Christoph的答案 Ubuntu15.10 Gnuplot 4.6 patchlevel 6中的输出,其中两个键丢失了两倍的警告警告:无法找到或打开文件“model1\u range\u linear.dat”因此两个错误条丢失 输出是三个警告和绘图中没有数据,在带有Gnuplot 5.0补丁级别1的OS X 10.11.2中没有任何错误条
警告:无法找到或打开文件“model1\u range\u linear.dat”
因此两个错误条丢失
输出是三个警告和绘图中没有数据
,在带有Gnuplot 5.0补丁级别1的OS X 10.11.2中没有任何错误条。
我无法理解这两个系统之间的异构行为以及Gnuplot的版本4/2015
为什么键在最新的Gnuplot中失败?以下是我键入的内容:
08:26 ~ > cat test.txt
Model Decreasing-err Constant-err Increasing-err
2025 73-78 80-85 87-92
2035 63-68 80-85 97-107
2050 42-57 75-90 104.5-119.5
然后通过brew安装gnuplot——使用pdflib lite——使用-x11——使用cairo安装gnuplot
08:26 ~ > gnuplot
G N U P L O T
Version 5.0 patchlevel 1 last modified 2015-06-07
Copyright (C) 1986-1993, 1998, 2004, 2007-2015
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type set to 'x11'
gnuplot> show version long
G N U P L O T
Version 5.0 patchlevel 1 last modified 2015-06-07
Copyright (C) 1986-1993, 1998, 2004, 2007-2015
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Compile options:
-READLINE +LIBREADLINE +HISTORY
-BACKWARDS_COMPATIBILITY +BINARY_DATA
+GD_PNG +GD_JPEG +GD_TTF +GD_GIF +ANIMATION
-USE_CWDRC +X11 +X11_POLYGON +MULTIBYTE +X11_EXTERNAL +USE_MOUSE +HIDDEN3D_QUADTREE
+DATASTRINGS +HISTOGRAMS +OBJECTS +STRINGVARS +MACROS +THIN_SPLINES +IMAGE +USER_LINETYPES +STATS +EXTERNAL_FUNCTIONS
MAX_PARALLEL_AXES=7
GNUPLOT_DRIVER_DIR = "/usr/local/Cellar/gnuplot/5.0.1/libexec/gnuplot/5.0"
GNUPLOT_PS_DIR = "/usr/local/Cellar/gnuplot/5.0.1/share/gnuplot/5.0/PostScript"
HELPFILE = "/usr/local/Cellar/gnuplot/5.0.1/share/gnuplot/5.0/gnuplot.gih"
gnuplot> set grid; set offset 1,1,0,0;
gnuplot> set datafile separator " -";
gnuplot> set key autotitle columnhead;
gnuplot> plot for [i=2:6:2] "test.txt" using 1:(0.5*(column(i)+column(i+1))):(0.5*(column(i+1)-column(i))) with yerrorlines;
gnuplot>
希望有帮助 它只在qt终端上吗?我无法在我的osx(同一版本)上复制,因为我没有在x11上测试的qt终端,我得到了三行。@bibi难以置信问题/错误会出现在qt终端上。您能否将您的输出作为您的系统(gnuplot版本,os)的确切详细信息的答案发送。我的错误是我的系统完全遗漏了qt5。我认为通过使用qt安装gnuplot,可以自动安装依赖项。但是没有。并且没有明确的警告表明qt从系统中丢失。
08:26 ~ > cat test.txt
Model Decreasing-err Constant-err Increasing-err
2025 73-78 80-85 87-92
2035 63-68 80-85 97-107
2050 42-57 75-90 104.5-119.5
08:26 ~ > gnuplot
G N U P L O T
Version 5.0 patchlevel 1 last modified 2015-06-07
Copyright (C) 1986-1993, 1998, 2004, 2007-2015
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type set to 'x11'
gnuplot> show version long
G N U P L O T
Version 5.0 patchlevel 1 last modified 2015-06-07
Copyright (C) 1986-1993, 1998, 2004, 2007-2015
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Compile options:
-READLINE +LIBREADLINE +HISTORY
-BACKWARDS_COMPATIBILITY +BINARY_DATA
+GD_PNG +GD_JPEG +GD_TTF +GD_GIF +ANIMATION
-USE_CWDRC +X11 +X11_POLYGON +MULTIBYTE +X11_EXTERNAL +USE_MOUSE +HIDDEN3D_QUADTREE
+DATASTRINGS +HISTOGRAMS +OBJECTS +STRINGVARS +MACROS +THIN_SPLINES +IMAGE +USER_LINETYPES +STATS +EXTERNAL_FUNCTIONS
MAX_PARALLEL_AXES=7
GNUPLOT_DRIVER_DIR = "/usr/local/Cellar/gnuplot/5.0.1/libexec/gnuplot/5.0"
GNUPLOT_PS_DIR = "/usr/local/Cellar/gnuplot/5.0.1/share/gnuplot/5.0/PostScript"
HELPFILE = "/usr/local/Cellar/gnuplot/5.0.1/share/gnuplot/5.0/gnuplot.gih"
gnuplot> set grid; set offset 1,1,0,0;
gnuplot> set datafile separator " -";
gnuplot> set key autotitle columnhead;
gnuplot> plot for [i=2:6:2] "test.txt" using 1:(0.5*(column(i)+column(i+1))):(0.5*(column(i+1)-column(i))) with yerrorlines;
gnuplot>