当我从命令行启动gnuplot时,它会打印15行关于我通常不需要的信息。我怎么能压制他们?下面是一个例子:
myHost: ~ gnuplot
G N U P L O T
Version 4.4 patchlevel 0
last modified March 2010
System: Linux 2.6.34.10-0.6-desktop
Copyright (C) 1986-1993, 1998, 2004, 2007-2010
Thomas Williams, Colin Kelley a
我有一些gnuplot代码,可以使用tikz终端创建图形。但是,我想在生成的.tex文件中添加一些tikz代码。
作为MWE,请考虑以下gnuplot代码:
set term tikz standalone
set output "out.tex"
plot sin(x)
假设我想在生成的图上画一个圆,我可以使用\draw (2,2) circle [radius = 2cm]来完成。将此行添加到生成的.tex文件将生成以下代码:
\documentclass[10pt]{article}
\usepackage[T1]{fontenc}
\usepackage{textcom
我有几个为我绘制图形的gnuplot脚本。我需要在命令行上为每个gnuplot脚本设置相同的xrange值。我不想单独打开每一个。
gnuplot脚本中的代码(name:tlakD.gnuplot):
set xdata time
set timefmt "%m/%d/%Y %H:%M" # specify time string format
set xrange datum
set format x "%d/%m/%Y "
命令行尝试:gnuplot -e "datum='["1/1/19 12:00":"1/5
按照H kon H腺体的建议,用干净的新安装开始分离的主题。
对于那些对解决方案感兴趣的人,跳到最后。Gnuplot安装失败。问题描述的
现在删除了所有perl,并从干净安装开始。
使用草莓perl pdl版本,来自zip包草莓-5.32.1.1-64位-PDL,没有msi。
首先根据的说法。
我运行了cpan PDL::Graphics::Simple。看上去很成功。现在按照运行perldl
pdl> use PDL::Graphics::Simple
PDL::Graphics::Simple::register: PDL::Graphics::Simple::Prima is ou
我已经使用了很长一段时间,而我一直觉得的一个问题是它没有在文件名的选项卡完成时关闭"。例如:
gnuplot> p 'fo<Tab>
会给我:
gnuplot> p 'fort.10 <cursor here, see the missing '>
虽然我希望:
gnuplot> p 'fort.10' <cursor here>
我正在使用来自fedora的rpm,它提供:
show version long
G N U P L O T
Vers
我试图在Haskell中添加一个标题到用Gnuplot制作的情节中。当程序在它创建的独立窗口中生成一个图形时,我似乎无法让它响应标题函数。我是不是不正确地使用标题函数?
我用的是Stack
- only "-gnuplot" added to the "dependencies:" section of package.yaml
- resolver: lts-15.7 in an unmodified stack.yaml.
在运行Linux 19的计算机上,弹出窗口的代码和屏幕截图如下:
module Main where
import Graphic
我已经创建了一个使用Perl和gnuplot绘制图形的工具。这是工作正常,但我只是有一个问题的时间but。我有许多输入数据文件与日期和一些与时间。所以,我创建了两个不同的工具,只有下面的区别。
对于我使用的时间的输入文件
set timefmt "%H:%M:%S"
set format x "%H:%M"
对于我使用的带有日期的输入文件
set timefmt "%Y-%m-%d"
set format x "%Y-%m"
有没有办法将不同的timefmt设置为单一选项。
我正在VBA的范围内运行Gnuplot,它运行得非常好。我能够使用GNUPLOT和Word VBA生成一整本由大约100幅图组成的书。(用Excel图表,我可以得到大约四个)
有一个小问题-当在VBA下运行时,STDERR消失了,或者没有被创建。没有诊断。
考虑到以下小的GNUPLOT脚本,
set key bmargin left horizontal Right noreverse enhanced autotitle box lt black linewidth 1.000 dashtype solid
set samples 800, 800
set title "Simple
我正在编写一个脚本,一次绘制多个文件中的多个文件。我还想保存与数据文件对应的每个绘图的输出。我们如何将这两个参数都提供给GNUPlot。例如:示例GNUPlot脚本
set xlabel "a"
set ylabel "b"
set zlabel "c"
set term postscript
set output "??" #'??' implies variable i.e. take file name from commandline
splot "??" with points,
我有两个文件same_2和diff_2,并使用GNUPlot使用此命令绘制这些文件中的数据。
splot "./same_2" with points, "./diff_2" with points
我有3D图。我如何保存它,以便以后可以查看。我不想把它存储为图像,这就是我一直在搜索的。
感谢您的帮助。
我试图在Windows 10上将一个图形保存到bmp文件中,我可以使用交互式终端:使用GUI的windows或qt来实现。但我想不出怎么用命令来做。这样做只会导致一个空文件。
gnuplot> set terminal windows
Terminal type is now 'windows'
Options are '0 color solid butt enhanced standalone'
gnuplot> set output "file.bmp"
gnuplot> plot sin(x)
Closing fi
每当我开始数据操作会话时,我都必须手动打开两个终端--一个要在其中工作,另一个要运行gnuplot,这样我就可以快速加载一个绘图程序来查看结果。
这两个文件都是在同一个目录/home/pi/python中打开的,在该目录中,数据不断自动记录并可供分析。
为了最小化输入,我创建了一个名为pj的脚本,我已经将它放入/usr/sbin (在我的$PATH中),其中包含
#!/bin/bash
cd /home/pi/python
我通过键入
. pj (notice the space so when it exits it stays there)
然后,我必须单击以打开第二个终端窗口,
我从Kubuntu Saucy (13.10)存储库运行默认的Gnuplot和octave,当我尝试从octave进行绘图时,没有得到任何绘图,只有Gnuplot样板,然后我可以输入Gnuplot命令,或者使用control-D。这是我得到的输出:
naught101@naught101-chronos:~$ octave
GNU Octave, version 3.6.4
Copyright (C) 2013 John W. Eaton and others.
This is free software; see the source code for copying conditions.
我有一个模块存在于我的Rails应用程序中,名为lib/renderraphs.rb。看起来是这样的:
require 'gnuplot'
module RenderGraphs
def render_standard_curve_graph(standard_curve, params, term = nil, output = nil)
Gnuplot.open do |gp|
# do things
end
end
end
if __FILE__ == $0
include RenderGraphs
render_standar
我已经通过Homebrew安装了Octave和gnuplot,并下载了AquaTerm.dmg。当我尝试绘制时,我得到了以下信息:
octave:4> plot(x,y)
gnuplot> set terminal aqua enhanced title "Figure 1" font "*,6"
^
`line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list`
在bash终端中,set
我在使用gnuplot时遇到了一些问题,除了一行之外,所有的行都是虚线。也就是说,在设置
gnuplot> set terminal postscript eps color
gnuplot> set term postscript eps color linewidth 2
gnuplot> set output "local1.eps"
gnuplot> set pointsize 0.5
和调用
plot "YY_globalized.txt" using 1:2 title "Global approach"
例如,在bash命令行上,我可以使用复合键和一个特殊的~/.XCompose文件键入一个δ字符,但是如果我试图在Gnuplot中这样做,我得到的是
13:48 boffi@debian:~ $ δ
bash: δ: command not found
13:48 boffi@debian:~ $ gnuplot
G N U P L O T
Version 5.2 patchlevel 6 last modified 2019-01-01
Copyright (C) 1986-1993, 1998, 2004, 2007-2018
我想知道如何在每个X参数中添加一个参数。就像图片上一样,每个X参数都有一个附加参数。
我使用以下命令运行gnuplot
gnuplot -p -e "reset; set yrange [0:1]; set term png truecolor size 1024,1024; set grid ytics; set grid xtics; set key bottom right; set output 'Recall.png'; set key autotitle columnhead; plot for [i=2:3] 'Recall'
我用GnuPlot制作了一个脚本,如下所示。
#!/usr/bin/gnuplot
#file: myplot
set term svg;
set out 'figfile.svg';
plot './datafile.dat' with lp;
set term wxt 0;
set out;
所以,我可以创建一个图形文件
$./myplot
但是,我必须编辑脚本以手动替换“figfile.svg”和“datafile.dat”。我可以修改这个脚本并使用下面的格式创建一个图形文件吗?
$./myplot datafile.dat figfile.svg
谢谢大