bug # 675 plotting vector fields with palette colors
is again a problem in version 5.03 (compiled from source)
in short:
splot '' using 1:2:4:5:6:(sth) with vector lc palette
will not take the color form (sth) but is 0 always
in 2D it works!
(plot using 1:2:3:4:(sth) with vector lc palette)
Mayby you are mis-counting parameters. (sth) is not a color parameter per se. It is the z-component of the vector. The palette coloring will be taken from the mean z value of the vector. Nevertheless you should only get a palette color of 0 if the mean z for all vectors is 0. The command you show works as expected here, although it may not be the command you intended.
2 corrections:
1) color is taken from mean z if hidden3d is in effect, otherwise from the z value of the vector head
2) I did find a related bug in the code for the 7-column case, which is probably what you intended to show. In this case the color is again handled correctly in hidden3d mode, but the retrieval of color information from the vector head fails in the nohidden3d case. So there's an obvious work-around for 5.0.3 (turn on hidden3d) and a trivial fix for the cvs code.
Last edit: Ethan Merritt 2016-05-17
Sorry, posted the bug anonymously and couldn't correct the mistake. I ment of course the 7 column case. The hidden3d mode worked, thank you very much for the speedy help!
Just to clarify, to plot a 3D vectorfield is pretty straightforward (btw, gnuplot is awsome!), but I wanted the vectors to have uniform length and colors according to their magnitude.