I'm trying to get two scales for contour (2d surface or map) and vector
field. Lets imaging that we have simple vector filed (x,y,1,0,1.0), where x
is from 0 to 10, y is from 0 to 10. Vector field data is stored in file.dat.
Here command list that i use in gnuplot:
#============Gnuplot .plt file====
set xr [0:10]
set yr [0:10]
set size square
unset grid
set multiplot #because i need two legends, one for contour, another for
vectors
set pm3d map
set palette color #this palette is for contour, it is _colored_
splot 'file.dat' u 1:2:($3*$3+$4*$4)**0.5 palette #contour of vector length
value
set palette grey #this palette is for vectors, it is _grey_
splot 'electro.dat' u 1:2:0:3:4:0:($3*$3+$4*$4)**0.5 with vectors palette
notitle #plot vector field, where the vectors is colored in dependence on
its length
unset multiplot
#========End of gnuplot .plt file============
By using of multiplot i can place two different colorboxes (or legends) in
different places (didnt pate that part of code due to big amount of text).
But the problem is that two colorboxes has the same palette (grey in this
case). Contour and vector filed are colored in grey palette also.
Why i suppose to do to make two different palettes, one of which is for
contour, the second is for vector field.
Thank you for any suggestions!
--
View this message in context: http://old.nabble.com/different-palettes-for-each-surface-tp30366735p30366735.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|