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:47:44 +0200 Organization: solani.org Lines: 43 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 1435006067 30495 eJwNyMEBwCAIA8CVUAjWcSDA/iPYex7Ul/OYww2DkZC69fEmKaFyduxJ623/qE4XZjWlNZrIejKMEmc= (22 Jun 2015 20:47:47 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 22 Jun 2015 20:47:47 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 X-User-ID: eJwFwYEBwDAEBMCViPd0nFD2HyF3blR2gE74+s7OJzGSlr+X1jRQV8OEsecoVmjgXRVBaj8dwxCQ In-Reply-To: Cancel-Lock: sha1:+UZmpiKQdi00KEVr2Cs2Pe3012E= X-NNTP-Posting-Host: eJwFwYEBwCAIA7CXYKV1nKMI/59gQshVK0QFhzOfwGmEMs9V7L6GW+YZUNcx6zKldv9YQ38c1REF Xref: csiph.com comp.graphics.apps.gnuplot:2950 Am 22.06.2015 um 19:08 schrieb Jörg Buchholz: > On 22.06.2015 15:19, Karl Ratzsch wrote: >> gnuplot has all the onboard tools to do this in two lines: >> >> set format y "%.b %B" >> plot dataf using 1:2: w impulse,\ >> dataf using 1:2:(gprintf("%.b %B",$2) w labels >> >> ;-) > > Some questions to this. > At a simple plot the y-labels are 10ki, 20ki, 29ki ... > Why the step from 20 to 29? > If I use set format y "%.b %BB" I've get 10kiB, 20kiB .... > Is it possible to change the "i"? > > the simple data that I used are: > 1.0 10250 > 2.0 34520 > 3.0 60000 > 4.0 52360 > Gnuplot makes tics at 1e4, 2e4 3e4, not on 10*2^10, 20*2^10, etc. You'll have to set the xtics yourself. stats .... log2(x) = log(x)/log(2) ymax = 2**ceil(log2(stats_max_y)) set ytics ymax/8 or something similar. And 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. ;-) check "help format specifier" Karl