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

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

[Octave-bug-tracker] [bug #52412] Manual axes ticks should be increasing


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #52412] Manual axes ticks should be increasing
Date: Wed, 15 Nov 2017 05:11:11 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0

URL:
  <http://savannah.gnu.org/bugs/?52412>

                 Summary: Manual axes ticks should be increasing
                 Project: GNU Octave
            Submitted by: mmuetzel
            Submitted on: Wed 15 Nov 2017 10:11:10 AM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

When setting manual axis ticks, Octave allows them in any order. Matlab throws
the following error if they are not ascending:

semilogy(0.1:0.1:7)
set(gca, 'ytick', [10 3 1 0.3 0.1], 'ylim', [0.02 17], 'yminorgrid', 'on')
Error using matlab.graphics.axis.Axes/set
While setting the 'YTick' property of 'Axes':
Value must be a vector of type single or double whose values increase


While that could be a nice extension to the Matlab syntax, it might lead to
unexpected behavior: e.g. the minor grid lines outside the major tick range
are not shown (see bug #52376). There might be also other side effects.

Should we follow Matlab here and force the manual ticks to being in ascending
order?




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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