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


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

plot matrix with image xtics start from 1

Started bylyh03259@gmail.com
First post2014-04-21 14:56 -0700
Last post2014-04-21 14:56 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

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

#2416 — plot matrix with image xtics start from 1

Fromlyh03259@gmail.com
Date2014-04-21 14:56 -0700
Subjectplot matrix with image xtics start from 1
Message-ID<1cd103ba-afaa-40cc-8a64-abaa4db8b1a5@googlegroups.com>
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

[toc] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web