Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2903
| X-Received | by 10.140.234.150 with SMTP id f144mr14491909qhc.9.1431296421216; Sun, 10 May 2015 15:20:21 -0700 (PDT) |
|---|---|
| X-Received | by 10.140.100.136 with SMTP id s8mr83909qge.2.1431296421203; Sun, 10 May 2015 15:20:21 -0700 (PDT) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!j5no6542670qga.1!news-out.google.com!k20ni2087qgd.0!nntp.google.com!z60no6543674qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.graphics.apps.gnuplot |
| Date | Sun, 10 May 2015 15:20:21 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=93.49.174.36; posting-account=MaPgFAoAAAAOLWpEk8k2mgtEOnfn04t0 |
| NNTP-Posting-Host | 93.49.174.36 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <d70469ab-ccd5-4f79-9ff2-24dae78036a1@googlegroups.com> (permalink) |
| Subject | extracting data from .gnu file |
| From | foice <franceschini.roberto@gmail.com> |
| Injection-Date | Sun, 10 May 2015 22:20:21 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| Xref | csiph.com comp.graphics.apps.gnuplot:2903 |
Show key headers only | View raw
Hello I know very little on gnuplot and I am wondering how much data manipulation can be done, besides plotting.
I have histograms in a .gnu file that somebody gives me in the format
# comments
set title "sqrt(p^2(5)) distribution" font "Helvetica, 20"
set xlabel "sqrt(p^2(5))" font "Helvetica, 20"
set ylabel "d{/Symbol s}/dsqrt(p^2(5))" font "Helvetica, 20"
set xrange [ 0.00000: 40.00000]
plot "-" with histeps
4.50000 3986.18 1.27863
5.50000 3986.18 1.27863
6.50000 3986.18 1.27863
e
set title "m(5) distribution" font "Helvetica, 20"
set xlabel "m(5)" font "Helvetica, 20"
set ylabel "d{/Symbol s}/dm(5)" font "Helvetica, 20"
set xrange [ 0.00000: 40.00000]
plot "-" with histeps
4.50000 3986.18 1.27863
5.50000 3986.18 1.27863
6.50000 3986.18 1.27863
e
I would like to extract all the data from this file to combine, for instance, the m(5) histogram that I have in several files (combine means do a weighted average, in case it matters).
So I was wondering if there is a way to have gnuplot to load the entire .gnu file and then somehow store and handle this data in gnuplot. In a normal programming language I would fill an array with the 3 columns of each histogram and then I would perform the combination using these arrays. Can I do this operation in gnuplot instead? or gnuplot is just for plotting not for manipulating the data?
Thanks for your replies.
Roberto
Back to comp.graphics.apps.gnuplot | Previous | Next — Next in thread | Find similar | Unroll thread
extracting data from .gnu file foice <franceschini.roberto@gmail.com> - 2015-05-10 15:20 -0700 Re: extracting data from .gnu file Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2015-05-14 00:29 +0200
csiph-web