octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46047] Large number of axes ticks for big log


From: Rik
Subject: [Octave-bug-tracker] [bug #46047] Large number of axes ticks for big logarithmic plots
Date: Fri, 25 Sep 2015 20:42:15 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0

Update of bug #46047 (project octave):

                  Status:                    None => Confirmed              
                 Summary: Strange labels in logarithmic plots => Large number
of axes ticks for big logarithmic plots

    _______________________________________________________

Follow-up Comment #2:

It is a regression.  I just checked with 3.8.2 and Octave sensibly comes up
with just 8 ticks/labels from 10^-50 to 10^300.  The problem seems to be the
solution for bug #39449 which always sets the tick separation on log plots to
one order of magnitude.

The issue is in graphics.cc with function
axes::properties::calc_ticks_and_lims.  The problem bit is


  if (is_logscale)
    {
      if (! (xisinf (hi) || xisinf (lo)))
        tick_sep = 1;  // Tick is every order of magnitude (bug #39449)
      else
        tick_sep = 0;
    }
  else
    tick_sep = calc_tick_sep (lo, hi);


I don't know right now how to fix this.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46047>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]