Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2416

plot matrix with image xtics start from 1

Newsgroups comp.graphics.apps.gnuplot
Date 2014-04-21 14:56 -0700
Message-ID <1cd103ba-afaa-40cc-8a64-abaa4db8b1a5@googlegroups.com> (permalink)
Subject plot matrix with image xtics start from 1
From lyh03259@gmail.com

Show all headers | View raw


Dear all,

I have a question for plotting a matrix.
For example, there is a matrix stored in file mat.txt and it looks like this:
0 1 2 4
3 2 1 5
2 6 1 6
7 3 1 7
Using command
plot "mat.txt" matrix with image
gives me a 4x4 colored blocks with xtics begin with 0

Using command
splot "mat.txt" matrix using (1+$1):(1+$2):3
gives me a 3x3 colored blocks with xtics begin with 1

My question is: how can I get a 4x4 colored blocks (no interpolation) with xtics begin with 1?

Thanks

Back to comp.graphics.apps.gnuplot | Previous | Next | Find similar | Unroll thread


Thread

plot matrix with image xtics start from 1 lyh03259@gmail.com - 2014-04-21 14:56 -0700

csiph-web