如何在gnuplot boxplot中设置离群值之间的水平距离 [英] How to set the horizontal distance between outliers in gnuplot boxplot
本文介绍了如何在gnuplot boxplot中设置离群值之间的水平距离的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
因此,如果我已经在gnuplot中将一些数据绘制为箱线图(设置样式数据gnuplot),并且我的离群值具有相同的值,那么它们将在同一位置水平绘制为点。
So if i have plotted some data in gnuplot as a boxplot (set style data gnuplot), and I have outliers having the same value, then they are plotted as dots horizontally at the same place.
如何设置水平距离?
例如,我有数据文件data.dat
So for example I have the datafile data.dat
1
1
1
1
1
1
1
1
1
1
1
1
9
9
并使用
set style data boxplot
plot 'data.dat' using (1):1
set yrange [0:10]
如何然后将两点之间的距离设置为y = 9?
How can I set then the distance between the two points at y=9?
推荐答案
不,您不能更改该距离,重复的异常值取决于所选的点大小。但是,命令之间的点距离有所不同
No, you cannot change that distance, The position of duplicate outliers depends on the selected pointsize. There is, however, a difference in the point distance between the command
plot 'data.dat' using (1):1
和
plot 'data.dat' using (1):1 pointsize 1.
但是我
set style data boxplot
set yrange[0:10]
plot 'data.dat' using (1):1 title 'no explicit point size',\
'' using (2):1 pointsize 1 title 'point size 1'
这篇关于如何在gnuplot boxplot中设置离群值之间的水平距离的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文