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

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

[Octave-bug-tracker] [bug #56849] contour documentation wrong


From: Muhali
Subject: [Octave-bug-tracker] [bug #56849] contour documentation wrong
Date: Mon, 2 Sep 2019 11:40:54 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

URL:
  <https://savannah.gnu.org/bugs/?56849>

                 Summary: contour documentation wrong
                 Project: GNU Octave
            Submitted by: muhali
            Submitted on: Mon 02 Sep 2019 08:40:52 AM PDT
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Documentation
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The help text for the contour function


Example:

          x = 0:2;
          y = x;
          z = x' * y;
          contour (x, y, z, 2:3)


is misleading, because one is made to believe that one can simply replace x by
e.g. 0:0.5:2 to run the same example. But that throws the error

error: __contour__: size of X must match number of columns in Z
error: called from
    __contour__ at line 88 column 9
    contour at line 74 column 18

This is caused by the definition of z, and can be avoided by letting z = y' *
x. Moreover, a non-square matrix for z clarifies things, so I recommend a help
text such as


Example:

          x = 0:3;
          y = x;
          z = y' * x;
          contour (x, y, z, 2:3)






    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56849>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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