Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: sfeam Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Question about sprintf Followup-To: comp.graphics.apps.gnuplot Date: Mon, 30 Apr 2012 20:19:40 -0700 Organization: gnuplot development team Lines: 28 Message-ID: References: Reply-To: sfeam@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Injection-Date: Tue, 1 May 2012 03:19:40 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="3mhAfh4CeAIeL3OKnPexDA"; logging-data="2813"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Vcsxe/pEpxTHKVKUpAzLc" User-Agent: KNode/4.4.9 Cancel-Lock: sha1:39wxqMAggGlOZHIKYOosbJGCCjY= Xref: csiph.com comp.graphics.apps.gnuplot:1066 Olaf Schultz wrote: > Moin moin, > > I'am currently using 4.4 pl0 and want to do something like > > plot "foo.dat" u 4:5, "" u 4:5:(sprintf("%8s:%5s",$6,$7)) w labels > > where $6 and $7 are string-data, no numerical data. But with %s, > known from fprint in awk, it does not work. The man-page for sprintf > didn't helped... $6 is shorthand for column(6), which returns a numeric value. The equivalent for string data is stringcolumn(6), for which the shorthand is strcol(6) Ethan > > Syntax missmatch? fprint does not work... upgrade (My sysadd at work > may do this:-) > > Any hints? > > Greetings, > > Olaf