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


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

Re: Major and minor ticks artifact

From Hermann Peifer <peifer@gmx.eu>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Major and minor ticks artifact
Date 2014-03-15 13:27 +0100
Organization albasani.net
Message-ID <53244732.8080404@gmx.eu> (permalink)
References <levp7j$tvo$1@speranza.aioe.org> <bnhe21F5utsU1@mid.dfncis.de> <lg01bh$dlr$1@speranza.aioe.org>

Show all headers | View raw


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


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


Thread

Major and minor ticks artifact Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-03-02 18:19 +0100
  Re: Major and minor ticks artifact Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2014-03-02 20:10 +0100
    Re: Major and minor ticks artifact Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-03-14 23:54 +0100
      Re: Major and minor ticks artifact sfeam <sfeam@users.sourceforge.net> - 2014-03-14 22:17 -0700
        Re: Major and minor ticks artifact Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-03-15 10:54 +0100
          Re: Major and minor ticks artifact Karl <mail.kfr@gmx.net> - 2014-03-18 18:38 +0100
            Re: Major and minor ticks artifact Hermann Peifer <peifer@gmx.eu> - 2014-03-20 07:10 +0100
      Re: Major and minor ticks artifact Hermann Peifer <peifer@gmx.eu> - 2014-03-15 13:27 +0100
        Re: Major and minor ticks artifact Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-03-15 23:02 +0100
          Re: Major and minor ticks artifact Hermann Peifer <peifer@gmx.eu> - 2014-03-16 01:54 +0100
            Re: Major and minor ticks artifact Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-03-21 05:52 +0100
          Re: Major and minor ticks artifact Dan Luecking <LookInSig@uark.edu> - 2014-03-20 12:24 -0500
            Re: Major and minor ticks artifact Janis Papanagnou <janis_papanagnou@hotmail.com> - 2014-03-21 05:54 +0100

csiph-web