Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Gudrun Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Plotting a range accorrding to given numbers Date: Fri, 03 Feb 2012 15:59:26 +0000 Organization: albasani.net Lines: 45 Message-ID: References: <9or4tsFmgjU2@mid.dfncis.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.albasani.net AeA+MdstL37kBdQ3DlyTFybWkJluxabkqzmWd1gMRsrqqUvQmqAGKMwJh1uM0hFsALC2KLKSk7OSTncbb+eLwg== NNTP-Posting-Date: Fri, 3 Feb 2012 15:59:26 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="5W37+NhhveQAGWQpoB94DgSBnnakVg/n9xgEKnYVmZoExjFWY0z/+ohWDo1cy5n20MEFHbbbcSSdZ1QznKAoILDy6mKV70tF4sBTDF/QDtuFF0+PU/biPEefuTeMfm4E"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <9or4tsFmgjU2@mid.dfncis.de> Cancel-Lock: sha1:yLn6aotqc+SdrBstmGNe+8zcPss= Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:903 Dear Hans-Bernhard, sorry for my mis-explanation. x is the second column in the example below, y the third. The first column is the index. I just want to plot x-column, y-column, and error-column with the help of the index-column. Let's say index_1=2 (second line) and index_2=4 (last line). Is there a command to plot x(index_1..index2) vs. y(index_1..index_2), meaning that the following is only plotted: x y 2 10 3 20 4 30 Is this now by any chance better explained? Sorry. Thank you for your help. G. Am 31.01.12 21:31, schrieb Hans-Bernhard Bröker: > On 31.01.2012 18:31, Gudrun wrote: >> Dear all >> >> Let's assume you have data given in such a form >> x y yerr >> 1 2 12 1 >> 2 10 10 1 >> 3 20 13 2 >> 4 30 14 1 >> >> The first column is basically the counter/index for all other columns. >> Can I tell gnuplot somehow to plot x(1:3), meaning plotting points 1 to >> 3 for columns x and also for y and yerr? I don't want to take care about >> the values, I would like to assign this by index. > > You're not being terribly clear, but it seems like you might be > searching for 'help every', particularly > > plot 'file' every ::0::2 >