小编Win*_*ith的帖子

gnuplot“ stats”命令意外的最小值和“超出范围”结果

我正在尝试开发直方图脚本。该情节本身似乎是正确的,但是我有一些问题或疑问:

  1. 我不明白为什么“统计”输出显示我的数据文件有“超出范围”的点。这意味着什么?
  2. “统计”最小值看起来也不正确。从数据文件中,最小值= -0.0312,但统计信息报告为0.0。

剧本:

# Gnuplot histogram from "Gnuplot In Action", 13.2.1 Jitter plots and histograms (p. 256)

# these functions put data points (x) into bins of specified width
bin(x,width)    = width*floor(x/width)

binwidth = 0.01
set boxwidth binwidth

# data file
data_file = "sorted.csv"
png_file    = "sorted.png"
datapoint_count = 14

# taking explanations from the data file
set style data linesp
set key autotitle columnheader

set datafile separator ","  # CSV format

# histogram
myTitle = "Histogram from …
Run Code Online (Sandbox Code Playgroud)

gnuplot histogram

5
推荐指数
1
解决办法
2721
查看次数

显示 gnuplot 默认线型

如何显示 gnuplot 的默认线条样式(对于给定的输出终端)?

我发现如果我定义自己的线条样式,我就可以显示它。但它不显示命令显示的默认样式的规范test

gnuplot> show style line

gnuplot> set style line 44 lt 2 lc rgb "green" lw 2
gnuplot> show style line
        linestyle 44,  linetype 2 linecolor rgb "green"  linewidth 2.000 pointtype 2 pointsize default pointinterval 0
Run Code Online (Sandbox Code Playgroud)

我想查看默认线条样式颜色的规范,以便我可以在包含我的绘图的网页中使用相应的颜色。

请注意,我不是在问“如何绘制特定的线条样式”,或“如何以图形方式显示线条样式的外观”(测试命令)。我问如何列出默认线条样式的(文本)描述。

gnuplot colors

5
推荐指数
1
解决办法
4804
查看次数

在Excel中计算范围内的所有单元格

范围内所有单元格(无论是否为空白)的最简单或首选的Excel公式是什么?

假设我有一列单元格,一些空白和一些非空白。我想要一个显示“ x / y”的公式,其中x =非空白单元格的数量,y =总单元格的数量。

我发现这可以工作,但是我想知道我是否真的需要对两个函数求和以获得“ y”?

=COUNTA($L$9:$L13) & "/" & COUNTA($L$9:$L13) + COUNTBLANK($L$9:$L13)
Run Code Online (Sandbox Code Playgroud)

显示4/5(对于我的数据,其中5个单元格中有4个非空白)

excel count range

4
推荐指数
1
解决办法
6017
查看次数

标签 统计

gnuplot ×2

colors ×1

count ×1

excel ×1

histogram ×1

range ×1