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 Newsgroups: comp.graphics.apps.gnuplot Subject: Re: auto caluclation for data display Date: Mon, 22 Jun 2015 22:58:47 +0200 Organization: solani.org Lines: 21 Message-ID: References: <94ad6511-e08e-4e88-87b3-df6b6f6ff876@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: solani.org 1435006730 452 eJwFwYEBwDAEBMCVovxjHCX2HyF3UArbjaBhsU34XlYw887P6qWWznxwsYBtHtcW2LmRMg8lfBDr (22 Jun 2015 20:58:50 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 22 Jun 2015 20:58:50 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 X-User-ID: eJwNyMEBwCAIA8CVsJAI4yDC/iPYex6Ui7WNoGEweUs5uJLWEwt6P2cdOq3DIzflfw9xOdroByYPESA= In-Reply-To: Cancel-Lock: sha1:hSVl2kXpFFROgjkeTy9QIL5j2j0= X-NNTP-Posting-Host: eJwFwQkBACAIA8BKPGNAHVT6R/AunMqTYBCxsewpJ+1iMl+1OGEcUSHroktMt56qKdJwPvTqD1s= Xref: csiph.com comp.graphics.apps.gnuplot:2953 Am 22.06.2015 um 22:47 schrieb Karl Ratzsch: > Am 22.06.2015 um 19:08 schrieb Jörg Buchholz: >> If I use set format y "%.b %BB" I've get 10kiB, 20kiB .... >> Is it possible to change the "i"? . > > ... you cannot get lost of the "i" for binary magitudes. You can use the > format string "%s %c" for kilogramms or computer salespeople's > gigabytes. Which are not gigabytes. ;-) Or, if you really want 1 kByte to be 1024 Bytes, build you own format function : 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"