如何提高gnuplot的质量?它似乎是一个非常低分辨率的图像.
这是我正在使用的文件的内容:linkage.plot
set terminal pdf
set out 'linkage.pdf'
set title "Distribution of Scores"
set xlabel "Score Value"
set ylabel "Appearences"
set yrange [0:50000]
set xrange [0:70]
binwidth=.25
bin(x,width)=width*floor(x/width)
plot 'linkage.dat' using (bin($1,binwidth)):(1.0) title "Scores"\
smooth freq with boxes
Run Code Online (Sandbox Code Playgroud) 我有一个gnu.gp文件:
# grphist.conf
set terminal canvas
#Terminal type set to 'canvas'
#Options are ' solid butt size 600,400 fsize 10 lw 1 fontscale 1 standalone'
set output 'output.html'
set grid
set xtic rotate by 90
set style data histograms
set style fill solid 1.00 border -1
#$ cat grphist.conf | gnuplot
plot "c_time" using 2:xtic(1) title "time to number of UIDs"
Run Code Online (Sandbox Code Playgroud)
但是,我必须将它与perl脚本集成.
我使用直方图没有成功.一个简单的问题是使用以下数据:
age range - frequency - central band width - bin width - height (respectively)
1-4 - 30 - 2.5 - 3 - 10
5-6 - 20 - 5.5 - 1 - 20
7-17 - 30 - 12 - 10 - 3
Run Code Online (Sandbox Code Playgroud)
随着沿X轴的年龄,具有线性刻度,因此1-4的箱宽度将为3,高度为10,5-6的箱宽度为1,高度为20,而7-17为10且高度为3.
如何将这些数据放入Word /记事本文档.dat文件中?然后我如何使用它们来设置直方图gnuplot?
目前我在Gnulot堆叠填充曲线上工作.我有问题让我的图形堆叠.这是我的数据:
prog reli perf avail sec cons topo scale qos
2011 138 90.3 21.0 63.5 45.5 48.5 6.8 4.0 5.5
2012 191.3 77.8 90.8 30.8 29.0 22.1 2.0 1.0 1.0
2013 85.0 57.5 48.0 20.0 27.5 8.5 0 2.5 1.0
2014 2.0 0.5 1.0 2.0 1.0 1.5 0 0 0
Run Code Online (Sandbox Code Playgroud)
我画了t1.plt
set term pos eps font 20
set output 't1.eps'
set pointsize 0.8
set border 11
set xtics out
set tics front
set key below
set multiplot
a=0
plot for …Run Code Online (Sandbox Code Playgroud) 我想用gnuplot跟踪一些曲线.我最近更换了我的电脑,现在我有一台MacOSX 10.9.5在我的另一台电脑上,颜色出现在我的.eps图中,但我的Mac不再出现了,并出现错误信息:"·没有找到时间,使用Courier." 我认为这是另一个问题.我的gnuplot版本是5.0版补丁级别0.
这是我用gnuplot加载的trace.p
$ gnuplot
gnuplot>加载"trace.p"
set autoscale
unset logscale
unset label
set term postscript enhanced 'Times'
set output"E_Hxc_bath_exact_weak.eps"
set title "E^{bath,exact}_{Hxc}/U, E^{bath,weak}_{Hxc}/U functions of U/t with potential more or equal to second-order set to 0"
set xlabel "U/t"
set ylabel "E^{bath}_{Hxc}/U"
set xrange [0.7:10]
set yrange [-7:10]
set key left top
set style line 1 lt 1 lc rgb "red" lw 3
set style line 2 lt 2 lc rgb "red" lw 3
set style line 3 lt …Run Code Online (Sandbox Code Playgroud) 我想在我的gnuplot的图例中使用波浪号(〜)或近似符号(在latex\approx中).
我正在使用epscairo终端.
我尝试了设置: 设置编码iso_8859_1
要么
设置编码utf8
并使用不同的命令,例如\ 176,如此处所述(http://ayapin-film.sakura.ne.jp/Gnuplot/Docs/ps_guide.pdf),但似乎没有任何效果.
提前致谢!:)
我有一个包含3列的.dat文件,我想绘制.如何使用matplotlib/python绘制它们?我是python的新手,.dat文件是使用Fortran 90创建的.name.dat文件的一部分在下面
0.0 0.1 0.85
1.0 0.3 0.62
2.0 0.5 0.27
3.0 0.7 0.34
4.0 0.9 0.19
Run Code Online (Sandbox Code Playgroud)
下面是用3D绘制数据的python代码(不正确).
import numpy as np
import matplotlib.pyplot as plot
from mpl_toolkits.mplot3d import Axes3D
3Dplot.plot(*np.loadtxt("filename.dat",unpack=True), linewidth=2.0) #invalid syntax, why?
3Dplot.show()
Run Code Online (Sandbox Code Playgroud)
什么是GNUplot命令的等价物
splot 'filename.dat' using 1:2:3
Run Code Online (Sandbox Code Playgroud)
在python?这就是我想要做的.
但是,当我运行.py时,我收到"无效语法"错误消息,我不知道为什么,但它是以3D开头的行.如何绘制3D数据?如果我有一个只有两列的.dat文件,我能够这样做,但是当我转到3维时,我不知道该怎么做.谢谢!
请查看从Gnuplot创建的附图.我面临着两个问题.
1)密钥框左侧的空白空格(图例框).有没有办法删除多余的空白空间?我既不想丢失钥匙箱,也不想在使用的希腊字母上妥协.另请注意,最终输出格式必须为eps.
2)y轴和y标签之间也有太多空间.如何优化呢?请帮忙.
如何在R中绘制一般的sin曲线?根据这篇文章的答案,我试过:
x <- seq(0,pi,length.out=100)
y <- sin(x)
plot(x,y,type="l")
Run Code Online (Sandbox Code Playgroud)
实际上我真正想要的是这个图表,由gnuplot以下产生:
plot sin(x) linestyle 1
Run Code Online (Sandbox Code Playgroud)
此外,我想知道为什么gnuplot即使我没有为变量赋值也会产生图形x.它是否具有预先指定的值或其他内容?
我gnuplot用来绘制来自两个单独的csv文件(在此链接中找到:https://drive.google.com/open?id = 0B2Iv8dfU4fTUZGV6X1Bvb3c4TWs)的数据,这些文件具有不同的行数,从而生成以下图表.
这些数据似乎在两个csv文件中都没有共同的时间戳(第一列),但gnuplot似乎符合上图所示的绘图.
这是gnuplot我用来生成情节的脚本.
# ###### GNU Plot
set style data lines
set terminal postscript eps enhanced color "Times" 20
set output "output.eps"
set title "Actual vs. Estimated Comparison"
set style line 99 linetype 1 linecolor rgb "#999999" lw 2
#set border 1 back ls 11
set key right top
set key box linestyle 50
set key width -2
set xrange [0:10]
set key spacing 1.2
#set …Run Code Online (Sandbox Code Playgroud)