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


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

iec80000 notation (was: Re: howto remove numbers after DOT)

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Karl-Friedrich Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject iec80000 notation (was: Re: howto remove numbers after DOT)
Date Thu, 18 Jun 2015 20:08:33 +0200
Organization solani.org
Lines 25
Message-ID <mlv1f2$3el$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>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
X-Trace solani.org 1434650914 3541 eJwNyMcBwDAIBLCVKOYw41DM/iMkesoUjPYDw7G1bTA/lald+ldC3D3Gfd4ORaKyGfdSFhTYDxqUERI= (18 Jun 2015 18:08:34 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Thu, 18 Jun 2015 18:08:34 +0000 (UTC)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
X-User-ID eJwNxsEBwCAIA8CVQEOQcUBh/xHae51tKq+DRtjYrLrr1LR6SkiGkytQJ0mZ/jM1Beh7SG3sDyCyEV4=
In-Reply-To <ddd22ccd-43fb-406a-a3cf-35f09ed3486e@googlegroups.com>
Cancel-Lock sha1:N4v1/lz3jLJmd1Ag619jakxr1DQ=
X-NNTP-Posting-Host eJwFwQkRADAIAzBLDMonh+OofwlL3OLFJsIDTmcKDUqhC0puxvVMaq7rdh8vNJGNWlV01wcTLRCC
Xref csiph.com comp.graphics.apps.gnuplot:2943

Show key headers only | View raw


Am 18.06.2015 um 11:12 schrieb Syed Jahanzaib:

> One thing more please. currently i am graphing downlods for the
> user account, but issue is the divide forumila. Is there any
> mehthod in which gnuplot cna auto measure the data like if its in
> KB , it should KB, if its in MB, it should show MB, if its in GB
> it should GB or vise versa.
> 
> at a  moment I am dividing the formula like //2014/2014 to get
> data in GB, but what if data is more and I want to auto show it
> in TB by auto calulating the values? sorry for bad english.
> 

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"

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next 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