Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Plot data registered in a single line

Help
Vigon
2010-03-25
2013-02-10
  • Vigon
    Vigon
    2010-03-25

    Hi,

       First, I apologize for my bad English.

       I'm trying to plot data registered in a file containing a sigle line. I want to plot them with bars or lines. My goal is to dress the "z profile" of the average number of atoms in a Fe-Cr alloy. I have no "x" data: there are as much data as "planes" in wich I count the number of atoms.

    My file has this (very simple) structure:
            0.02893;        5.97747;        0.42848;        2.85002;        4.94494;       17.04826;        5.39021;        8.38648;        2.18411;        5.79149;       10.00440;        6.83442;        8.40168;        6.25277;        5.62618;        7.86282;        3.87975;        7.35249;       16.43794;        3.41394;        2.83736;        0.03879;        5.23210;        0.06159;       72.95147;        0.04293;        6.27210;        0.24517;        3.20277;        5.65378;       14.90201;        5.75297;        7.37128;        4.11732;        7.33129;        7.52086;        5.53833;       11.98534;        4.28303;        4.98547;        7.33755;        4.79736;        6.68404;       17.11678;        3.12105;        2.70644;        0.03746;        5.75337;        0.08626;       72.93694;

    If necessary, I could change the ";" in white spaces easily (with sed for example).
    The x data could be, for example, the column number (or better: no x explicit data)

    Thanks for help in advance.
    Vig

     
  • Edoardo Pasca
    Edoardo Pasca
    2010-03-25

    Hi Vig,

    the column number you access with 0

    plot "yourfile.dat" u 0:1

    Edo