Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

273 views
Skip to first unread message

Fudgeymoose

unread,
Jul 8, 2011, 1:34:42 PM7/8/11
to
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)

Hans-Bernhard Bröker

unread,
Jul 8, 2011, 3:27:46 PM7/8/11
to
On 08.07.2011 19:34, Fudgeymoose wrote:

> 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.

You've just discovered what the 'front' option to 'set arrow' is for.

Fudgeymoose

unread,
Jul 11, 2011, 8:14:52 AM7/11/11
to

Thank you very much!!!!!

should have really seen that myself though...

Much appreciated!

0 new messages