quick 'n dirty favorite

here's the old way

  cut and paste some numbers from a web page
  like the number of live births by year
  dump it in a file named moo
  run gnuplot
  and say

    plot '/tmp/moo' w l 3

  boom
  default graph to show friends

the thing is
in the new way [python import pylab plot show]
what's the best default graph
i wanna say what?
ipython -c 'readplotfile blah ... parse file ugh ...'
um

i need a one liner
ya know

find the baby boom

1910 2777000 30.1
1915 2965000 29.5
1920 2950000 27.7
1925 2909000 25.1
1930 2618000 21.3
1935 2377000 18.7
1940 2559000 19.4
1945 2858000 20.4
1950 3632000 24.1
1952 3913000 25.1
1953 3965000 25.1
1954 4078000 25.3
1955 4104000 25.0
1956 4218000 25.2
1957 4308000 25.3
1958 4255000 24.5
1959 4295000 24.3
1960 4257850 23.7
1961 4268326 23.3
1962 4167362 22.4
1963 4098020 21.7
1964 4027490 21.0
1965 3760358 19.4
1966 3606274 18.4
1967 3520959 17.8
1968 3501564 17.5
1969 3600206 17.8
1970 3731386 18.4
1971 3555970 17.2
1972 3258411 15.6
1973 3136965 14.9
1974 3159958 14.9
1975 3144198 14.8
1976 3167788 14.8
1977 3326632 15.4
1978 3333279 15.3
1979 3494398 15.9
1980 3612258 15.9
1982 3680537 15.9
1983 3638933 15.5
1984 3669141 15.5
1985 3760561 15.8
1986 3731000 15.5
1987 3829000 15.7
1988 3913000 15.9
1989 4021000 16.2
1990 4179000 16.7
1991 4111000 16.2
1992 4084000 16.0
1993 4039000 15.7
1994 3979000 15.3
1995 3892000 14.8
1996 3899000 14.7
1997 3882000 14.5
1998 3941553 14.6
1999 3959417 14.5
2000 4058814 14.7
2001 4025933 14.1
2002 4021726 13.9
2003 4089950 14.1
2004 4112052 14.0
2005 4138349 14.0

ok, this is how i do it
pro'ly could make this better

./plot file.dat

just does the first two columns

needs smarts

Tom Holroyd wrote:

plot (341 Bytes)

···

here's the old way

  cut and paste some numbers from a web page
  like the number of live births by year
  dump it in a file named moo
  run gnuplot
  and say

    plot '/tmp/moo' w l 3

  boom
  default graph to show friends

the thing is
in the new way [python import pylab plot show]
what's the best default graph
i wanna say what?
ipython -c 'readplotfile blah ... parse file ugh ...'
um

i need a one liner
ya know

find the baby boom

1910 2777000 30.1
1915 2965000 29.5
1920 2950000 27.7
1925 2909000 25.1
1930 2618000 21.3
1935 2377000 18.7
1940 2559000 19.4
1945 2858000 20.4
1950 3632000 24.1
1952 3913000 25.1
1953 3965000 25.1
1954 4078000 25.3
1955 4104000 25.0
1956 4218000 25.2
1957 4308000 25.3
1958 4255000 24.5
1959 4295000 24.3
1960 4257850 23.7
1961 4268326 23.3
1962 4167362 22.4
1963 4098020 21.7
1964 4027490 21.0
1965 3760358 19.4
1966 3606274 18.4
1967 3520959 17.8
1968 3501564 17.5
1969 3600206 17.8
1970 3731386 18.4
1971 3555970 17.2
1972 3258411 15.6
1973 3136965 14.9
1974 3159958 14.9
1975 3144198 14.8
1976 3167788 14.8
1977 3326632 15.4
1978 3333279 15.3
1979 3494398 15.9
1980 3612258 15.9
1982 3680537 15.9
1983 3638933 15.5
1984 3669141 15.5
1985 3760561 15.8
1986 3731000 15.5
1987 3829000 15.7
1988 3913000 15.9
1989 4021000 16.2
1990 4179000 16.7
1991 4111000 16.2
1992 4084000 16.0
1993 4039000 15.7
1994 3979000 15.3
1995 3892000 14.8
1996 3899000 14.7
1997 3882000 14.5
1998 3941553 14.6
1999 3959417 14.5
2000 4058814 14.7
2001 4025933 14.1
2002 4021726 13.9
2003 4089950 14.1
2004 4112052 14.0
2005 4138349 14.0

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

--
Dr. Tom
---
I would dance and be merry,
Life would be a ding-a-derry,
If I only had a brain.
        -- The Scarecrow

python -c "import pylab; pylab.plotfile('temp.dat', cols=(0,2),
delimiter=' '); pylab.show()"

JDH

···

On Mon, Feb 22, 2010 at 11:00 AM, Tom Holroyd (NIH/NIMH) [E] <holroydt@...549...> wrote:

ok, this is how i do it
pro'ly could make this better

sweet!

John Hunter wrote:

···

On Mon, Feb 22, 2010 at 11:00 AM, Tom Holroyd (NIH/NIMH) [E] > <holroydt@...549...> wrote:

ok, this is how i do it
pro'ly could make this better

python -c "import pylab; pylab.plotfile('temp.dat', cols=(0,2),
delimiter=' '); pylab.show()"

JDH

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

--
Dr. Tom
---
I would dance and be merry,
Life would be a ding-a-derry,
If I only had a brain.
        -- The Scarecrow