Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.albasani.net!.POSTED!not-for-mail From: Hermann Peifer Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Major and minor ticks artifact Date: Sat, 15 Mar 2014 13:27:30 +0100 Organization: albasani.net Lines: 31 Message-ID: <53244732.8080404@gmx.eu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net gUhNQWdZ3iaCZWJUcYMANjiJSi60HxEPXOwLiKdIccLGNTzkOyVbvXufPx2YsJTWjq2PNjWXy7AIWVk4xT6wV0CSas5ADFQ3XE/z85vZ8vgn9whNcdDsFP/G9i8ugG2B NNTP-Posting-Date: Sat, 15 Mar 2014 12:27:32 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="mkJqrrqWJ9zORf8UtYMTc4DRgFscwgSzKar9wHkjNVsa1jPjCcUgWA4XKahuRwuVwDOj+IMGWBmadxshQnk5IrwY6uPRts0C7N5k97syV2Lv0+kWHAbLMhfI36mwhS3N"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 To: Janis Papanagnou In-Reply-To: Cancel-Lock: sha1:GPF2be9DooLtCgXSAlzHUNaYe1E= Xref: csiph.com comp.graphics.apps.gnuplot:2348 On 2014-03-14 23:54, Janis Papanagnou wrote: > > As said, I used a workaround to adjust the png size so that the rounding > issues - as far as I suspect - eliminate each other. (Still can't believe, > though, that this is how such elementary problems are to be countered with > gnuplot.) > I just looked into the source code of axis.c [1], I never did that before. As an outspoken non-programmer, I looked more into the comments than into the actual code. I hope that I was looking into the right piece of code in the first place. Anyway, a programmer with initials "HBB" (no idea who this could be) seems to be well aware of FP issues, s/he uses floor() and ceil() to correct potential issues, but eventually states: "getting desperate...", etc. All these comments are 12 years old, as it looks like. So there seems to be no real cure for the issue. IIRC, I occasionally defined a png size of something like 600,800.1 or some such to make similar issues go away. This is not very elegant and it basically means that I was "chasing the devil with the help of Beelzebub", as we say in German. But there seems to be little else that one can do. Hermann [1] http://gnuplot.cvs.sourceforge.net/viewvc/gnuplot/gnuplot/src/axis.c?revision=1.130&view=markup