help-octave
[Top][All Lists]
Advanced

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

Re: datetick, reason for explicitly undocumented behavior?


From: Jonathan Suever
Subject: Re: datetick, reason for explicitly undocumented behavior?
Date: Thu, 29 Dec 2016 14:04:47 -0600

It's worth noting that the OP was using the second example on the online documentation as a guide which also incorrectly transposes the first two inputs. I have submitted a bug report to the bug tracker

I'm more than happy to help fix this documentation error if someone can point me towards the best way to contribute changes towards the online documentation.

-Jonathan

On Thu, Dec 29, 2016 at 11:26 AM, Nicholas Jankowski <address@hidden> wrote:
this came up in a StackExchange query today [1]. A user had transposed inputs to the datetick command

datetick(29, 'x') versus datetick('x', 29)

While this obviously failed to produce the desired output, the command didn't error out as it it does in Matlab.  Instead, it instead followed an undocumented codepath that allows you to specify the starting date to use for the labels. While it's not overly odd that Octave code have options that extend beyond Matlab's, I find it odd that it's not only undocumented but explicitly undocumented [2]:

  ## Don't publish the existence of this variable for use with dateaxis
  if (length (varargin) > 0)
    startdate = varargin{1};
  else
    startdate = [];
  endif

What would be the reason for not documenting a known and deliberate extension from 'standard' m-code?

nickj

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave



reply via email to

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