Problem for plot a matrix

Help
dabench
2011-07-17
2013-02-10
  • dabench
    dabench
    2011-07-17

    Hi every one,

    I have a matrix (that I calculate with a c++ code) and I want to plot it.
    So I read the documentation at section matrix but I did not find my answer.
    I want to plot a matrix for example between  for x axe and  for y axe.
    Here it's my configuration file :

    set yrange
    set xrange
    set ytics 0.210526
    set xtics 0.210526
    set term postscript
    set grid
    set palette defined (0 "red" , 1 "orange", 2 "yellow", 3 "white")
    set pm3d
    set pm3d map
    splot "matrice" matrix with dots notitle
    set output "imageEQ.ps"; replot;

    Here it's my matrix :

    1 1 1 1 1 0.999998 0.999985 0.999918 0.999708 0.999385 0.999415 1 1 1 1 1 1 1 1 1
    1 1 1 0.999999 0.99999 0.999908 0.999412 0.997586 0.994169 0.993537 0.999415 1 1 1 1 1 1 1 1 1
    1 1 0.999999 0.99998 0.999764 0.998191 0.991264 0.97551 0.968149 0.994153 1 1 1 1 1 1 1 1 1 1
    1 0.999999 0.99998 0.999679 0.99691 0.981955 0.940137 0.907678 0.973688 1 1 1 1 1 1 1 1 1 1 1
    1 0.99999 0.999755 0.996834 0.976728 0.906123 0.825512 0.929836 1 1 1 1 1 1 1 1 1 1 1 1
    0.999998 0.9999 0.998055 0.980809 0.902042 0.775104 0.877212 1 1 1 1 1 1 1 1 1 1 1 1 1
    0.999983 0.999337 0.990118 0.931973 0.799662 0.852655 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    0.999903 0.997095 0.96968 0.878135 0.877212 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    0.999627 0.992128 0.951531 0.929836 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    0.999093 0.988614 0.973688 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    0.9988 0.994153 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    0.999415 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
    1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

    it's a square matrix.

    My question is … I don't understand, why gnuplot does not plot the matrix between  but plot from (0,0) point ?