从 gnuplot 中的 json 文件获取曲面图
Getting a surface graph from a json file in gnuplot
我不是开发人员,我正在为一个学校项目做这件事。我正在尝试将以下数据集放入 windows gnuplot 中的曲面图中。 qt 类型的终端,如果这很重要的话。
https://files.catbox.moe/nbc6l1.json
如您所见,这是一个庞大的数据集。直接从图像中拉入 csv 文件,我将其转换为 json.
When I type in "splot 'C:\Users\tyler\ESRP Data\sampleOutput.json'", this is what I get.
如您所见,只有一条线,而在 3 维 space 中应该有接近强度图表的东西。是不是数据有问题?我需要一个特定的命令来执行此操作吗?
如果您将图像数据示例附加到问题中,并且如果您提供 link 与您尝试创建的绘图相似的绘图,将会有所帮助。可以使用许多不同的样式来表示表面。我会尝试猜测一个可能的解决方案。
输入图像(在 GIMP 中涂鸦并保存为 png 图像):
Gnuplot 曲面图:
set border -1
unset tics
# surface represented by colored lines in 3D
# down-sample by 4x in each dimension to get an interpretable surface
set palette defined (0 "blue", 1 "white")
splot 'scribble.png' binary filetype=png every 4:4:4 using 1:2:3:3 with lines lc palette
我不是开发人员,我正在为一个学校项目做这件事。我正在尝试将以下数据集放入 windows gnuplot 中的曲面图中。 qt 类型的终端,如果这很重要的话。
https://files.catbox.moe/nbc6l1.json
如您所见,这是一个庞大的数据集。直接从图像中拉入 csv 文件,我将其转换为 json.
When I type in "splot 'C:\Users\tyler\ESRP Data\sampleOutput.json'", this is what I get.
如您所见,只有一条线,而在 3 维 space 中应该有接近强度图表的东西。是不是数据有问题?我需要一个特定的命令来执行此操作吗?
如果您将图像数据示例附加到问题中,并且如果您提供 link 与您尝试创建的绘图相似的绘图,将会有所帮助。可以使用许多不同的样式来表示表面。我会尝试猜测一个可能的解决方案。
输入图像(在 GIMP 中涂鸦并保存为 png 图像):
Gnuplot 曲面图:
set border -1
unset tics
# surface represented by colored lines in 3D
# down-sample by 4x in each dimension to get an interpretable surface
set palette defined (0 "blue", 1 "white")
splot 'scribble.png' binary filetype=png every 4:4:4 using 1:2:3:3 with lines lc palette