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


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

Re: auto caluclation for data display

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Jörg Buchholz <bookwood4new@freenet.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: auto caluclation for data display
Date Mon, 22 Jun 2015 19:08:23 +0200
Organization A noiseless patient Spider
Lines 60
Message-ID <mm9fbn$stp$1@dont-email.me> (permalink)
References <94ad6511-e08e-4e88-87b3-df6b6f6ff876@googlegroups.com> <mlv6o7$6hf$1@dont-email.me> <mm8c4v$iqg$1@newsserver.rrzn.uni-hannover.de> <mm9208$q3t$2@solani.org>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding quoted-printable
Injection-Date Mon, 22 Jun 2015 17:07:03 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="f67cc23d54a59ad5c20402d38c23dd25"; logging-data="29625"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+oo8rXqfXzhce32jEQptbPEJ0erodOPKE="
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1
In-Reply-To <mm9208$q3t$2@solani.org>
Cancel-Lock sha1:W7oUAvzD/2RU0r72jI3dxwCDL2M=
Xref csiph.com comp.graphics.apps.gnuplot:2949

Show key headers only | View raw


On 22.06.2015 15:19, Karl Ratzsch wrote:
> Am 22.06.2015 um 09:06 schrieb Jörg Buchholz:
>> On 18.06.2015 21:40, Jörg Buchholz wrote:
>>> On 18.06.2015 14:01, Syed Jahanzaib wrote:
>> ...
>> if (STATS_max_y >= (1024*1024)) {
>>       set ylabel "Data Downloaded in GB"
>>       plot "data.txt" using 1:($2/1024/1024) with impulse title "Daily
>> Usage" lw 10,\
>>       "data.txt" using 1:($2/1024/1024):(sprintf("%.0f",$2/1024/1024))
>> with labels offset 0,1
>>       } else {
>>       if (STATS_max_y >= 1024) {
>>       set ylabel "Data Downloaded in MB"
>>       plot "data.txt" using 1:($2/1024) with impulse title "Daily Usage"
>> lw 10,\
>>       "data.txt" using 1:($2/1024):(sprintf("%.0f",$2/1024)) with labels
>> offset 0,1
>>       } else {
>>       set ylabel "Data Downloaded in KB"
>>       plot "data.txt" using 1:2 with impulse title "Daily Usage" lw 10,\
>>       "data.txt" using 1:2:(sprintf("%.0f",$2)) with labels offset 0,1
>>       }}
>>
>> The stats command must be done before you set the xdata to time format.
>>
>> Jörg
>>
>
> 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


Kind regards
Jörg

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


Thread

auto caluclation for data display Syed Jahanzaib <aacable79@gmail.com> - 2015-06-18 05:01 -0700
  Re: auto caluclation for data display Jörg Buchholz <bookwood4new@freenet.de> - 2015-06-18 21:40 +0200
    Re: auto caluclation for data display Jörg Buchholz <bookwood4new@freenet.de> - 2015-06-22 09:06 +0200
      Re: auto caluclation for data display Karl Ratzsch <mail.kfr@gmx.net> - 2015-06-22 15:19 +0200
        Re: auto caluclation for data display Jörg Buchholz <bookwood4new@freenet.de> - 2015-06-22 19:08 +0200
          Re: auto caluclation for data display Karl Ratzsch <mail.kfr@gmx.net> - 2015-06-22 22:47 +0200
            Re: auto caluclation for data display Karl Ratzsch <mail.kfr@gmx.net> - 2015-06-22 22:58 +0200
          Re: auto caluclation for data display Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2015-06-22 22:54 +0200
            Re: auto caluclation for data display Jörg Buchholz <bookwood4new@freenet.de> - 2015-06-23 08:53 +0200

csiph-web