Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Steven Du Newsgroups: comp.graphics.apps.gnuplot Subject: Plotting two files into one plot with different rows in two files Date: Sat, 14 Jul 2012 21:45:08 -0700 (PDT) Organization: http://groups.google.com Lines: 37 Message-ID: <40efd74d-2b76-4f00-b785-e3f6f46f5fec@googlegroups.com> NNTP-Posting-Host: 199.106.103.252 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1342327509 1099 127.0.0.1 (15 Jul 2012 04:45:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 15 Jul 2012 04:45:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=199.106.103.252; posting-account=JMIwhwoAAACSQXzfyY8Z3CJ-oi4zzxBG User-Agent: G2/1.0 X-Received-Bytes: 2354 Xref: csiph.com comp.graphics.apps.gnuplot:1271 Hello, I browsed all topics about plotting two files into one plot. None of them = mentioned with different rows problems. The scenario I met is as follows: File A is babies standard growth file, which show babies growth chart based= on history data, like 95%, 90%, 75%, 50%, 25%, 10%, and 5%. In this data = file there are only a 5 rows (born, 3 month, 6 month, 9 month and 12 month)= with 8 columns (month + 7 Y values). File B is what parents input. The times they input can be any dates in the= first year (365 possibilities) due to their various measuring time. I nee= d to plot this line also onto the standard's plot. =20 The current code is: plot "A.dat" using 1:2 title '95%' with lines 1, \ "" using 1:3 title '90%' with lines 2, \ "" using 1:4 title '75%' with lines 3, \ "" using 1:5 title '50%' with lines 4, \ "" using 1:6 title '25%' with lines 5, \ "" using 1:7 title '10%' with lines 6, \ "" using 1:8 title '5%' with lines 7, \ "B.dat" using 1:2 title 'your baby' with points 3 But this require rows of A is the same as rows of B. How to handle the problems like this. Do I have to use "least common denom= inator" method, expanding both File A and B into 365 rows and plot? I thin= k this is too clumsy. =20 Any elegant method? Thanks in advance. Steven.