Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!bs8g2000vbb.googlegroups.com!not-for-mail From: tkarcher Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Wrong label values on the Y-axis in a time series Date: Fri, 27 Jan 2012 07:57:01 -0800 (PST) Organization: http://groups.google.com Lines: 25 Message-ID: <20c633fd-2499-412e-aab0-aa4e1ba0a80b@bs8g2000vbb.googlegroups.com> References: <170b5442-3839-4f3f-8027-33c169575af3@hs8g2000vbb.googlegroups.com> NNTP-Posting-Host: 192.35.17.21 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1327680165 16465 127.0.0.1 (27 Jan 2012 16:02:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 27 Jan 2012 16:02:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: bs8g2000vbb.googlegroups.com; posting-host=192.35.17.21; posting-account=KZKntxAAAAAhZQaVef7mQRaYFyT73tzO User-Agent: G2/1.0 X-HTTP-Via: 1.1 MCHP937X X-Google-Web-Client: true X-Google-Header-Order: VCRUHALSNK X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1,gzip(gfe) Xref: x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:878 On 27 Jan., 11:08, Christoph Bersch wrote: > Hi Thomas, > > On 27.01.2012 10:14, tkarcher wrote: > > > Any idea why the following graphs show "2024" as the last label value > > on the Y-axis instead of "2025"? > >http://commons.wikimedia.org/wiki/File:Bielefeld_population.svg > >http://commons.wikimedia.org/wiki/File:Eberswalde_population.svg > > (Both generated on a Windows system with gnuplot 4.4 Patchlevel 4. The > > script is attached to the description of the files. Also discussed > > here:http://commons.wikimedia.org/wiki/Commons:Graphics_village_pump#Gnupl...) > > The xtics increment which you use (788400000) corresponds to 25 years > with 365 days, but one year has 365.25 days. I haven't looked into the > gnuplot sources how the time differences are handled but I guess this is > the problem. If you use 7885000000 the labels are correct. > > Christoph *facepalm* So obvious, and yet I didn't think of it. I changed the value to 7.889238e8 now (60*60*24*365.2425*25), and it worked just fine. Thanks!