Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #939
| From | Martin Keiter <Martin.Keiter_NOSPAM@gmx.de> |
|---|---|
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: gaussians as plotting style |
| Date | 2012-02-13 10:34 +0000 |
| Message-ID | <slrnjjhpq1.ut9.Martin.Keiter_NOSPAM@egg38.theochem.uni-duesseldorf.de> (permalink) |
| References | <slrnjjab2i.f4h.Martin.Keiter_NOSPAM@egg38.theochem.uni-duesseldorf.de> <cb4d5686-b717-4504-aaeb-1577825e3aa3@k6g2000vbz.googlegroups.com> |
Hi Peter,
On 2012-02-10, Péter Juhász <peter.juhasz83@gmail.com> wrote:
> On Feb 10, 3:40 pm, Martin Keiter <Martin.Keiter_NOS...@gmx.de> wrote:
>>
>> I have tried
>>
>> filename = "1a"
>> lines = system(sprintf("wc --lines %s | sed 's/ .*//'", filename))
>> plot for [line=1:lines] (\
>> x0 = system(sprintf("awk '{if (NR==%d) print $%d;}' < %s " , line, 1, filename)),\
>> i = system(sprintf("awk '{if (NR==%d) print $%d;}' < %s " , line, 2, filename)),\
>> i* exp(-(x-x0)**2) )
>>
>> but this is incredibly slow for a data file with 5 lines:
>> And it looks incredibly ugly!
>
> Both the slowness and ugliness appears to be entirely credible.
:-)
Was my first try in using something more advanced than just a plain
plot.
> Bad jokes aside, your approach can be done more cleverly:
just perfect - thanks a lot! And I have also learned a lot!
--
Meine Mailadresse funktioniert!
Back to comp.graphics.apps.gnuplot | Previous | Next — Previous in thread | Find similar
gaussians as plotting style Martin Keiter <Martin.Keiter_NOSPAM@gmx.de> - 2012-02-10 14:40 +0000
Re: gaussians as plotting style sfeam <sfeam@users.sourceforge.net> - 2012-02-10 08:07 -0800
Re: gaussians as plotting style Péter Juhász <peter.juhasz83@gmail.com> - 2012-02-10 08:28 -0800
Re: gaussians as plotting style Martin Keiter <Martin.Keiter_NOSPAM@gmx.de> - 2012-02-13 10:34 +0000
csiph-web