bugGNU Octave - Bugs: bug #33607, plot does not automatically...

 
 

bug #33607: plot does not automatically convert boolean values to numeric in 3.4.0

Submitted by:  L. Markowsky <lmarkov>
Submitted on:  Tue 21 Jun 2011 12:20:10 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: lmarkovOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Mon 05 Mar 2012 04:44:54 PM UTC, comment #8:

Thanks for the testing. I've modified _line_ so that it too can plot booleans. Everything seems to be fixed now so I'm closing this report.

Rik <rik5>
Project Administrator
Mon 05 Mar 2012 11:05:43 AM UTC, comment #7:

line ([false true], [false, true])

draws a line with two points, (0, 0) and (1, 1). XData are of type "double".

Tested under 2011A

Regards

Pascal

Pascal Dupuis <cdemills>
Project Member
Sun 04 Mar 2012 09:58:18 PM UTC, comment #6:

I've pushed a patch which fixed this problem for 2D plots (http://hg.savannah.gnu.org/hgweb/octave/rev/f22a9555aa69). 3D plots using plot3 are still a problem.

Can someone with access to Matlab report how it handles the following?

Rik <rik5>
Project Administrator
Sat 25 Feb 2012 10:47:41 PM UTC, comment #5:

Pascal,

I modified the changeset as suggested by Jordi. If it looks ok, I'll push it.

(file #25164)

Ben Abbott <bpabbott>
Project Member
Sat 25 Feb 2012 10:39:12 PM UTC, comment #4:

I ran through all the plot demos. All looked good.

Ben Abbott <bpabbott>
Project Member
Sat 25 Feb 2012 05:08:35 PM UTC, comment #3:

Pascal, for future reference, for functions that work columnwise, the preferred idiom is colfunction (foo(:)) instead of colfunction (colfunction (foo)).

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Sat 25 Feb 2012 04:55:56 PM UTC, comment #2:

Pascal, I run some tests on MacOS a soon as I finish looking at the patch for 31641.

I've changed the status to "patch submitted" and the release to "dev" since we'll apply it to the default branch.

Ben Abbott <bpabbott>
Project Member
Sat 25 Feb 2012 04:42:22 PM UTC, comment #1:

Solved in default with the attached patch.

Regards

Pascal

(file #25163)

Pascal Dupuis <cdemills>
Project Member
Tue 21 Jun 2011 12:20:10 PM UTC, original submission:

Hello,

plot automatically converts boolean values to numeric in Octave 3.2.4 but not in 3.4.0. For example, in 3.4.0:

+verbarim+

>>> y=[true true true true true]

y =

1 1 1 1 1

>>> plot(y)

warning: implicit conversion from matrix to sq_string
error: get: unknown line property 
error: called from:
error: /usr/share/octave/3.4.0/m/plot/private/__line__.m at line 65, column 5
error: /usr/share/octave/3.4.0/m/plot/line.m at line 38, column 5
error: /usr/share/octave/3.4.0/m/plot/private/__plt__.m at line 597, column 12
error: /usr/share/octave/3.4.0/m/plot/private/__plt__.m at line 238, column 14
error: /usr/share/octave/3.4.0/m/plot/private/__plt__.m at line 193, column 10
error: /usr/share/octave/3.4.0/m/plot/private/__plt__.m at line 104, column 17
error: /usr/share/octave/3.4.0/m/plot/plot.m at line 194, column 9
-verbatim-

Thank you,
lmarkov

L. Markowsky <lmarkov>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #25164:  changeset.patch added by bpabbott (1KiB - application/octet-stream)
file #25163:  plot.pat added by cdemills (778B - image/x-coreldrawpattern)

 

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 bpabbott (Posted a comment)
  • -unavailable- added by cdemills (Updated the item)
  • -unavailable- added by jordigh (Updated the item)
  • -unavailable- added by lmarkov (Submitted the item)
  • -unavailable- added by lmarkov
  •  

    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 10 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 05 Mar 2012 04:44:54 PM UTCrik5CategoryInterpreter=>Plotting
      StatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Sat 25 Feb 2012 10:47:41 PM UTCbpabbottAttached File-=>Added changeset.patch, #25164
    Sat 25 Feb 2012 04:55:56 PM UTCbpabbottStatusConfirmed=>Patch Submitted
      Release3.6.0=>dev
    Sat 25 Feb 2012 04:42:22 PM UTCcdemillsAttached File-=>Added plot.pat, #25163
    Fri 24 Feb 2012 06:13:28 PM UTCjordighStatusNone=>Confirmed
      Release3.4.0=>3.6.0
    Tue 21 Jun 2011 12:20:10 PM UTClmarkovCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1