Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: John Edwards Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Feature request : replot multiplot Date: Wed, 08 Jan 2014 13:49:33 +0000 Lines: 60 Message-ID: References: Reply-To: johned0@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net bWWpIC269yM6rxEIiZZjIQSQzObCeMbkSKl+9A73gizxTsT2x1 Cancel-Lock: sha1:nV1te1kpb39jo4bj9vgd8Vl0xtA= User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: Xref: csiph.com comp.graphics.apps.gnuplot:2242 Thanks Michael, I don't think I can use this via pipes but I have looked at using intermediate files rather than pipes so this will definitely help. Cheers, John > Maybe this would be helpful? > > 1.dat: > 1 2 > 2 3 > 3 4 > 4 5 > > 2.dat: > 2 3 > 3 4 > 4 5 > 5 6 > > 3.dat: > 1 6 > 2 7 > 3 8 > 4 9 > > stats '1.dat' using 2 name 'A' > stats '2.dat' using 2 name 'B' > stats '3.dat' using 2 name 'C' > > min_val=(A_min min_val=(min_val max_val=(A_max>B_max ? A_max : B_max) > max_val=(max_val>C_max ? max_val : C_max) > > set size 1.,1. > set origin 0.,0. > > set multiplot > > set origin 0.0,0.0 > set size 0.3,0.5 > set yrange [min_val:max_val] > plot '1.dat' using 1:2 with linespoints > > > set origin 0.3,0.0 > set size 0.3,0.5 > set yrange [min_val:max_val] > plot '2.dat' using 1:2 with linespoints > > > set origin 0.6,0.0 > set size 0.3,0.5 > set yrange [min_val:max_val] > plot '3.dat' using 1:2 with linespoints > > unset multiplot > reset