Received: by 10.224.111.140 with SMTP id s12mr8860814qap.5.1352838987117; Tue, 13 Nov 2012 12:36:27 -0800 (PST) Received: by 10.52.71.38 with SMTP id r6mr4544619vdu.12.1352838987053; Tue, 13 Nov 2012 12:36:27 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!c7no26191407qap.0!news-out.google.com!gf5ni18188417qab.0!nntp.google.com!c7no26644058qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Tue, 13 Nov 2012 12:36:26 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=18.4.2.1; posting-account=F0on8QoAAABtp6cR1Oc3WsDXTav3kiN1 NNTP-Posting-Host: 18.4.2.1 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <41723be4-5840-4ecb-9a4c-91a710117d9f@googlegroups.com> Subject: Plotting frequency of word occurences From: hogiaus@gmail.com Injection-Date: Tue, 13 Nov 2012 20:36:27 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.graphics.apps.gnuplot:1486 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