Gnuplot稀疏矩阵显示

Gnuplot稀疏矩阵显示,gnuplot,sparse-matrix,Gnuplot,Sparse Matrix,我有一个程序,可以生成Gnuplot脚本来显示雅可比矩阵的模式 对于稠密矩阵,我得到的代码正是我想要的: set terminal wxt persist set title 'The Answer' set palette defined(0 "white",1 "blue") set grid front set xrange [0:7] set yrange [0:7] reverse set size ratio -1 unset colorbox plot '-' using ($1+

我有一个程序,可以生成Gnuplot脚本来显示雅可比矩阵的模式

对于稠密矩阵,我得到的代码正是我想要的:

set terminal wxt persist
set title 'The Answer'
set palette defined(0 "white",1 "blue")
set grid front
set xrange [0:7]
set yrange [0:7] reverse
set size ratio -1
unset colorbox
plot '-' using ($1+0.5):($2+0.5):($3 == 0 ? 0 : 1) matrix with image notitle
1.00 0.00 0.00 0.00 1.00 1.00 0.00
1.00 0.00 1.00 0.00 0.00 0.00 1.00
1.00 0.00 1.00 0.00 0.00 0.00 1.00
1.00 1.00 1.00 0.00 0.00 1.00 0.00
0.00 0.00 1.00 0.00 1.00 0.00 0.00
0.00 0.00 1.00 0.00 1.00 0.00 0.00
0.00 0.00 1.00 0.00 1.00 1.00 1.00
e

由于我的代码的其余部分现在处理稀疏矩阵,因此我一直在尝试调整Gnuplot脚本的生成,以实现与Gnuplot的二进制数据格式相同的结果。但是,到目前为止,如果不使用外部文件,我还没有成功。我该怎么做?

如果你问gnuplot是否能处理稀疏矩阵,那么答案是否定的。哦,好的,谢谢你提供的信息!你知道有没有干净的解决办法吗?