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

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

[Octave-bug-tracker] [bug #40554] boxplot returns wrong handles


From: anonymous
Subject: [Octave-bug-tracker] [bug #40554] boxplot returns wrong handles
Date: Tue, 12 Nov 2013 14:17:38 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.43 Safari/537.31

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

                 Summary: boxplot returns wrong handles
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 12 Nov 2013 02:17:37 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

boxplot from the forge statistics package lists a wrong handle for the
outliers.

version: statistics *|   1.2.2

offending piece of code in boxplot.m

l315     no2 = nw(end) + [1:size(outliers2_y,2)];


this should be:

l315     no2 = no(end) + [1:size(outliers2_y,2)];


example:

[s,h]=boxplot(exp(randn(100,3)));
h.outliers, h.outliers2
ans = -3.3782
ans = -3.3782


Note that this line has been changed because of bug #38020

So, since apparently sometimes _outliers_ are missing but _outliers2_ do exist
_no_ should be initialized with _nm_.


  no=nm;
  if ~isempty (outliers_y)
    no = nm(end) + [1:size(outliers_y,2)];
    hs.outliers = h(no);
  end
  if ~isempty (outliers2_y)
    no2 = no(end) + [1:size(outliers2_y,2)];
    hs.outliers2 = h(no2);
  end







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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