From: Hamed A. <s.h...@ya...> - 2014-06-22 18:22:22
|
I have a data file produced by the C programming language as: x .1 .3 .4 .56 .1 .2 .1 .3 .76 .3 .4 .2 .2 .43 .6 .7 .4 .3 .67 in which the first row (.1 .3 .4 .56) corresponds to the values of x-axis, first column is related to the y-axis (.1 .3 .5) and other values correspond to the z-axis for each x and y values. For example, the .76 is the weight of point (.56 , .1). I want to plot this 2D matrix file as a 2d picture. I tried this command plot "file" matrix using 1:2:3 every :::1::1 w image and plotted it. My problem is that Gnuplot use row and column numbers for x- and y-axis values not values on first row and column. When i use command plot "file" binary matrix w image gives the error "Read grid of zero width". Any help will be highly appreciated. Hamed Ahmadi |