• Re: mapping z-values as point colors onto 2D plot

    From Alicreance Hiyadutuje@21:1/5 to Hallmarc on Tue Sep 20 05:18:12 2022
    On Wednesday, October 24, 2007 at 10:33:10 PM UTC+2, Hallmarc wrote:
    On Oct 24, 3:41 pm, Hans-Bernhard Bröker <HBBroe...@t-online.de>
    wrote:
    Hallmarc wrote:
    Unfortunately, there's something I'm not understanding about pm3d:

    gnuplot> splot "socks.dat" using 1:3:4 with pm3d
    Warning: Single isoline (scan) is not enough for a pm3d plot.
    Hint: Missing blank lines in the data file? See 'help pm3d' and
    FAQ.

    socks.dat is a file with several hundred thousand rows, four columns (column 2 is not used), and no breaks between rows.

    ... which means it doesn't describe any surface, so pm3d can't plot it
    as a coloured surface. Looks like what you really want is a plot of coloured points, i.e.:

    set view map
    splot 'data' u 1:2:(0.0):3 with points palette

    Either that, or you should insert the missing breaks into the data file.
    That did the trick, thanks! I guess the third coordinate of 0.0 just basically push everything up against a 2D plane...excellent.
    In my case, I was missing only "with points palette".

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)