Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3369

splot "xyz.txt" - parametric color plot

Newsgroups comp.graphics.apps.gnuplot
Date 2016-07-08 21:57 -0700
Message-ID <60d3a829-998d-4b1c-893b-6a02175f90ff@googlegroups.com> (permalink)
Subject splot "xyz.txt" - parametric color plot
From kdliss@gmail.com

Show all headers | View raw


Hi there,

I can plot 2D data on a color-map with parametric x,y,z values, i.e. the following works as needed:

reset;set pm3d map interpolate 1,1;set size ratio -1;splot "xyz.txt"  notitle 

where "xyz.txt" contains:

    1.000000000000000E+00    0.000000000000000E+00    0.000000000000000E+00
    1.000000000000000E+00    1.000000000000000E+00    1.000000000000000E+00
    1.000000000000000E+00    2.000000000000000E+00    2.000000000000000E+00

    2.000000000000000E+00    0.000000000000000E+00    0.000000000000000E+00
    2.000000000000000E+00    2.000000000000000E+00    4.000000000000000E+00
    2.000000000000000E+00    4.000000000000000E+00    8.000000000000000E+00

    3.000000000000000E+00    0.000000000000000E+00    0.000000000000000E+00
    3.000000000000000E+00    3.000000000000000E+00    9.000000000000000E+00
    3.000000000000000E+00    6.000000000000000E+00    1.800000000000000E+01

    4.000000000000000E+00    0.000000000000000E+00    0.000000000000000E+00
    4.000000000000000E+00    4.000000000000000E+00    1.600000000000000E+01
    4.000000000000000E+00    8.000000000000000E+00    3.200000000000000E+01

    5.000000000000000E+00    0.000000000000000E+00    0.000000000000000E+00
    5.000000000000000E+00    5.000000000000000E+00    2.500000000000000E+01
    5.000000000000000E+00    1.000000000000000E+01    5.000000000000000E+01

==========

MY PROBLEM:

I want to store the data in a binary file "xyz.bin" and reproduce the same figure.

MY QUESTIONS:

- how to arrange data in the binary file
- how to produce the plot (i guess, I need the right 'record' setting)

meanwhile I tried the following

* I made a datafile containing the float numbers:

1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 0 1 2 0 2 4 0 3 6 0 4 8 0 5 10 0 1 2 0 4 8 0 9 18 0 16 32 0 25 50

and I called something like 

 reset;set pm3d map interpolate 1,1;splot "xyz.bin" binary format="%double" record=.....

without success! who can help, please?

cheers, kdliss

Back to comp.graphics.apps.gnuplot | Previous | Next | Find similar


Thread

splot "xyz.txt" - parametric color plot kdliss@gmail.com - 2016-07-08 21:57 -0700

csiph-web