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


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

arrows when using 'set view map' and splot with image

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!b2g2000vbo.googlegroups.com!not-for-mail
From Fudgeymoose <moosefudge@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject arrows when using 'set view map' and splot with image
Date Fri, 8 Jul 2011 10:34:42 -0700 (PDT)
Organization http://groups.google.com
Lines 77
Message-ID <8a50299f-bd82-4f97-99a9-1032b156c09f@b2g2000vbo.googlegroups.com> (permalink)
NNTP-Posting-Host 137.222.102.93
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1310146482 31620 127.0.0.1 (8 Jul 2011 17:34:42 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Fri, 8 Jul 2011 17:34:42 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info b2g2000vbo.googlegroups.com; posting-host=137.222.102.93; posting-account=nFw7VAoAAABFGltoDndM-dl568Yh6_3y
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-Header-Order UHALERCNK
X-HTTP-UserAgent Opera/9.80 (X11; Linux i686; U; en) Presto/2.8.131 Version/11.10,gzip(gfe)
Xref x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:427

Show key headers only | View raw


Hello,

I've been using splot with matrix and set view map to create heat
maps. However, with the 'set view map' option, any arrows i've added
are simply not displayed.

I found a way round this in using multiplot, but that only works if i
plot a dummy function f(x)=x+2 for example. When i do this an extra
grid is placed around the heatmap, the function is plotted and my
arrows miraculously appear.

Can anyone shed any light on getting arrows to appear on top of a view
map, without having to hack in a dummy function and separate plot? The
arrows display just fine when using a view with arbitrary rotation.

I've included some code below, im using gnuplot 4.4.

Thanks for any help, I did have a good old search which gave me the
idea of the multiplot and dummy function, but its far from a perfect
solution.

thanks for any help.
==========


#set term post eps
#set output 'simple.sat.plot.eps'
#
unset key
set tic scale 0
set palette rgbformula 30,31,32
set cbrange [0:1]
set cblabel "Relative buffer saturation"
set size square
set xrange [-0.5:7.5]
set yrange [-0.5:7.5]
set view map

set multiplot

set style line 1 lt 1 lw 2
set arrow from first 0, first 0, first 0.5 to first 5, first 5, first
0.5
show arrow



splot '-' matrix with image
0.373333830813286 0.479306388575373 0.567686811495518
0.661160185435652 0.656561605119069 0.561064109619708
0.466107623569356 0.358819853181229
0.467096364976168 0.601919650769073 0.691699236057347 0.77050938837949
0.776162004346731 0.696148572387997 0.579383808893076
0.475668566418238
0.579122631917692 0.668463812997286 0.825319242213661
0.919846651804453 0.929081123434104 0.831848666598263
0.706586323654239 0.567845383230573
0.692538733478224 0.787140765061983 0.887274151874411 1
0.999263107819452 0.930172470081245 0.795563722518119
0.685673510125272
0.705327077522923 0.803081888309532 0.905948305614372
0.973565158991484 0.973229360023133 0.891751471452424
0.763205760817857 0.696120589140634
0.595147704907329 0.680310054380777 0.804313151193485
0.845010120607796 0.885315324559031 0.823584280877181
0.663044390758066 0.559720913746304
0.452787597824769 0.574850522820338 0.664452880875316
0.790162955777141 0.777654444206069 0.670403984814424
0.576855988881323 0.478047142444057
0.34830747992202 0.428871249078885 0.568815469139142 0.671541970207169
0.663053718507187 0.560728310651357 0.471042002854291
0.370460884084062
e
e

#f(x) = x+1
#plot f(x)

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

arrows when using 'set view map' and splot with image Fudgeymoose <moosefudge@gmail.com> - 2011-07-08 10:34 -0700
  Re: arrows when using 'set view map' and splot with image Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2011-07-08 21:27 +0200
    Re: arrows when using 'set view map' and splot with image Fudgeymoose <moosefudge@gmail.com> - 2011-07-11 05:14 -0700

csiph-web