Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Janis Papanagnou Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Major and minor ticks artifact Date: Fri, 21 Mar 2014 05:54:04 +0100 Organization: Aioe.org NNTP Server Lines: 24 Message-ID: References: <53244732.8080404@gmx.eu> NNTP-Posting-Host: 6vJrCn03lgyabPq2YdLSTw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.graphics.apps.gnuplot:2364 On 20.03.2014 18:24, Dan Luecking wrote: > On Sat, 15 Mar 2014 23:02:34 +0100, Janis Papanagnou > wrote: >> >> [*] I also didn't analyse the code in depth. Specifically I didn't find the >> loop in the code referenced by the link. > > I believe it is the for-loop beginning on line 1290: > for (mplace = ministart; mplace < miniend; mplace += ministep) { > ... > It indeed computes locations by cumulative addition. Thanks for the code reference and for the confirmation! > > I once had to do a similar thing in Metafont code (not with tics, but > the principle is the same) and ultimately settled on a counted loop, > with a calculation of location at each step. It is less efficient, > but more accurate. Exactly. Janis