Quantcast
Channel: WP快站
Viewing all articles
Browse latest Browse all 233

Is it possible to plot a series of matrices in this format using gnuplot

$
0
0

My code currently creates an output that comes out as so (using example numbers)

0.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 2.0 0.0 0.0 0.0 0.0 0.0 2.0 0.0 0.0 0.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 3.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 3.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 2.0 0.0 0.0 0.0 3.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 2.0 0.0 0.0 0.0 3.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 2.0 0.0 0.0 0.0 3.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 2.0 0.0 0.0 0.0

was hoping for a solution on how to plot this data either as a 3D splot or as a gif that cycles through each matrix (actual code contains a few hundred matrices). I'm able to alter the output format if necessary. So far I've tried

do for [i=1:7] {plot "data.txt" matrix with image}

As well as attempting other solutions I've found on the site but none seem to be trying to do the same thing as me.

If anyone who has gnuplot experience could help me that would be a huge help (I'm using mac if that makes a difference)


Viewing all articles
Browse latest Browse all 233

Trending Articles