Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1065

Question about sprintf

Path csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Olaf Schultz <o.schultz@enhydralutris.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Question about sprintf
Date Mon, 30 Apr 2012 22:10:17 +0200
Lines 18
Message-ID <a089taFbvkU1@mid.individual.net> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Trace individual.net h7tWgFgkuNeXjTIXQhtIOQ1McrecDBVQS9tb5ESDdZA705xJN/
Cancel-Lock sha1:80RXv1/1jtxLsKA4r4t2tD9+ZVo=
User-Agent Thunderbird 2.0.0.18 (X11/20081112)
Xref csiph.com comp.graphics.apps.gnuplot:1065

Show key headers only | View raw


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...

Syntax missmatch? fprint does not work... upgrade (My sysadd at work may
do this:-)

Any hints?

Greetings,

Olaf

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

Question about sprintf Olaf Schultz <o.schultz@enhydralutris.de> - 2012-04-30 22:10 +0200
  Re: Question about sprintf sfeam <sfeam@users.sourceforge.net> - 2012-04-30 20:19 -0700
    Re: Question about sprintf Olaf Schultz <o.schultz@enhydralutris.de> - 2012-05-20 21:28 +0200

csiph-web