bugGNU Octave - Bugs: bug #52536, contourc docstring typo:...

 
 

bug #52536: contourc docstring typo: correspondence of dimensions and axes

Submitted by:  Antons Suspans <antox>
Submitted on:  Mon 27 Nov 2017 07:27:48 PM UTC  
 
Category: DocumentationSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Documentation
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.2.1Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 28 Nov 2017 01:16:33 AM UTC, comment #2:

use

and find the following functions have the same typo:
contourc
surfnorm
surface

while the following functions are correct:
waterfall
surfl
meshc
mesh
surfc
surf

Anonymous
Tue 28 Nov 2017 12:59:46 AM UTC, comment #1:

Yep, thanks for noticing that. It's pretty clear in the m-file as well. The code for a single input, i.e., Z is

so it is quite clear that x is using columns of z and y is using rows of z.

It turns out there were three other Octave plotting functions that had the same incorrect explanation. I fixed contourc and the others on the stable branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/3cdd2b6c78cb). It will be a part of the 4.2.2 bug fix release expected at the end of this year.

Marking as fixed and closing report.

Rik <rik5>
Project Administrator
Mon 27 Nov 2017 07:27:48 PM UTC, original submission:

Docs say that contourc(Z) uses X=1:rows(Z) and Y=1:columns(Z) but it is vice versa (contour behaves consistently with surfc, etc).

Diff:

Antons Suspans <antox>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by antox (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 28 Nov 2017 12:59:46 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1