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

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

[Octave-patch-tracker] [patch #9985] [octave forge] (statistics) Add fun


From: Philip Nienhuis
Subject: [Octave-patch-tracker] [patch #9985] [octave forge] (statistics) Add function confusionchart
Date: Sat, 6 Mar 2021 09:37:25 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #15, patch #9985 (project octave):

Happens because  __plt_get_axis_arg__m  is fed the following args:

varargin =
{
  [1,1] =
   Columns 1 through 9:
     1.5000   1.5000   2.5000   3.5000   3.5000   4.5000   4.5000   5.5000  
5.5000
   Columns 10 and 11:
     6.5000   7.5000
  [1,2] =
   Columns 1 through 9:
     0.5000   2.5000   0.5000   3.5000   5.5000   1.5000   4.5000   3.5000  
5.5000
   Columns 10 and 11:
     2.5000   7.5000
  [1,3] =
1
1
1
1
1
1
3
1
1
1
2
  [1,4] = parent
  [1,5] = -71.118
}


where

debug> class (varargin{3})
ans = char


It's a bit of an obscure warning emitted by octave_char_matrix_str() in
ov-str-mat.cc, which is invoked by strcmpi(). Maybe the warning can be locally
silenced by adding:

warning ("off", "Octave:charmat-truncated", "local")

somewhere in ?confusionchart.m?  or ?ConfusionChartMatrix.m? but it's probably
better to find out why/if this char array is needed in the first place and if
a char matrix can be somehow circumvented (it seems to be cooked up in method
draw() on L.762-763 of ConfusionMatrixChart.m).


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?9985>

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




reply via email to

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