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


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

Plotting frequency of word occurences

Newsgroups comp.graphics.apps.gnuplot
Date 2012-11-13 12:36 -0800
Message-ID <41723be4-5840-4ecb-9a4c-91a710117d9f@googlegroups.com> (permalink)
Subject Plotting frequency of word occurences
From hogiaus@gmail.com

Show all headers | View raw


This seems like it should be dead simple, but extensive googleing has yielded no results. Say I have a datafile like so:

-----
neutron
neutron
e-
proton
[Li]8
neutron
[Si]28
[Li]8
e-
-----

And I want to make a histogram that will determine all unique strings, and display the counts of each one, e.g. 3 neutron, 2 e-, 1 proton, 2 [Li]8, 1 [Si]28.

I can't find any examples on the web that do something like this. GNUPLOT seems to have trouble with strings. Any help would be appreciated :D

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

Plotting frequency of word occurences hogiaus@gmail.com - 2012-11-13 12:36 -0800
  Re: Plotting frequency of word occurences Brendan Halpin <brendan.halpin@ul.ie> - 2012-11-13 21:11 +0000
    Re: Plotting frequency of word occurences Brendan Halpin <brendan.halpin@ul.ie> - 2012-11-13 21:17 +0000
      Re: Plotting frequency of word occurences hogiaus@gmail.com - 2012-11-13 16:20 -0800

csiph-web