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


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

Re: iec80000 notation

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: iec80000 notation
Date Mon, 22 Jun 2015 22:54:33 +0200
Organization solani.org
Lines 15
Message-ID <mm9smc$v9j$1@solani.org> (permalink)
References <c6107ef8-49d1-4a31-b753-f90988e4365c@googlegroups.com> <mltkiq$a8c$1@newsserver.rrzn.uni-hannover.de> <ddd22ccd-43fb-406a-a3cf-35f09ed3486e@googlegroups.com> <mlv1f2$3el$1@solani.org>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
X-Trace solani.org 1435006476 32051 eJwNyMEBADEEBMCWIliUg9B/CXfzHGUQ2gQK0dW9xZz2bP54seuiUx2Y9XSqQ1SG05SXtmDxASTkETs= (22 Jun 2015 20:54:36 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Mon, 22 Jun 2015 20:54:36 +0000 (UTC)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
X-User-ID eJwFwQERADEIAzBL5UahyOF55l/CEp6wmPRgOC+vna/Qmw5Q2k0iTVtgH26HQv+M2Cg1gQcGUxBH
In-Reply-To <mlv1f2$3el$1@solani.org>
Cancel-Lock sha1:Hgrx9KyNRvKtMi2Dcor6GuA0LxE=
X-NNTP-Posting-Host eJwNyMkBwCAIBMCWuHY15QhI/yWYeQ6cylpBMDCYTTlpf4QibLYUj4ZSOteyHEb1B7p5g/f2AwbTEJw=
Xref csiph.com comp.graphics.apps.gnuplot:2952

Show key headers only | View raw


Am 18.06.2015 um 20:08 schrieb Karl-Friedrich Ratzsch:
> 
> For axis labels, there is a provision for automatic ki, Mi, Ti
> notation, check "help format specifiers".
> 
> Otherwise you can build your own function returning the proper prefixes:
> 
> fstring(x) = sprintf("%.f ",\
> 		 x<2**10 ? (ps="",x) :\
> 		 x<2**20 ? (ps="Ki", x/2**10) : \
> 		 x<2**30 ? (ps="Mi", x/2**20) :\
> 		           (ps="Ti", x/2**30)).ps."Byte"
> 

or use gnuplots gprintf() function that knows the "%b %B" format

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


Thread

howto remove numbers after DOT Syed Jahanzaib <aacable79@gmail.com> - 2015-06-16 05:03 -0700
  Re: howto remove numbers after DOT Jörg Buchholz <bookwood4new@freenet.de> - 2015-06-18 07:22 +0200
    Re: howto remove numbers after DOT Syed Jahanzaib <aacable79@gmail.com> - 2015-06-18 02:12 -0700
      iec80000 notation (was: Re: howto remove numbers after DOT) Karl-Friedrich Ratzsch <mail.kfr@gmx.net> - 2015-06-18 20:08 +0200
        Re: iec80000 notation Karl Ratzsch <mail.kfr@gmx.net> - 2015-06-22 22:54 +0200

csiph-web