dictionary - How to plot a vector field with colormap in gnuplot? -
i have data in text file in following way
x y dx dy z 1 0 1 2 5 2 3 3 3 6 2 4 5 4 8 . . . . .
i'm using gnuplot , can plot vector field using columns x,y,dx,dy want plot color map using x,y , z on same graph. want vector field color map
have no idea how this. please help!
you can plot 'data' image
. can plotting styles in gnuplot doc.
then can combine vector plot , one. examples source code can find here: image « gnuplotting. way should able create graphs desired one:
#your plot script without plot... plot 'data' u 1:2:5 image, \ # not scaled yet '' u 1:2:3:4 vector ...#your vector field plot
note: thies works, if have data in form of
1 1 z1 1 2 z2 . . .. 1 n zn 2 1 z21 2 2 z22 . . ... 2 n z2n 3 1 ... . . ...
so need datapoints without 'hole' in it...
i'll continue tomorrow...
Comments
Post a Comment