bugGNU Octave - Bugs: bug #31746, Incorrect result for stem plot

 
 

bug #31746: Incorrect result for stem plot

Submitter:  Ben Abbott <bpabbott>
Submitted:  Thu 02 Dec 2010 01:17:20 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Ben Abbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 05 Dec 2010 05:12:31 AM UTC, comment #3: 

Verified fix.  Closing bug.

Rik <rik5>
Group administrator
Fri 03 Dec 2010 11:29:31 PM UTC, comment #2: 

I've pushed the changeset.

Ben Abbott <bpabbott>
Group Member
Fri 03 Dec 2010 02:27:44 PM UTC, comment #1: 

The when two stem hggroups are created with a single command, they share a baseline.


octave:12>  x = (0:10)';
octave:13>  y = [sin(x), cos(x)];
octave:14>  h = stem (x, y);
octave:15>  set (h(2), "color", "g");
octave:16> get (h, "basevalue")
ans =
{
  [1,1] = 0
  [2,1] = 0
}
octave:17> set (h(1), "basevalue", -1)
octave:18> get (h, "basevalue")
ans =
{
  [1,1] = -1
  [2,1] = -1
}


This is not compatible with Matlab.

I've attached a changeset which gives each stem hggroup its own baseline.

(file #22116)

Ben Abbott <bpabbott>
Group Member
Thu 02 Dec 2010 01:17:20 PM UTC, original submission:  

The stem() plot function produces the incorrect result, as compared with Matlab. This is visible in the plots labeled stem_7_1.png at the link below.

http://octave.sourceforge.net/compare_plots/


Ben Abbott <bpabbott>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-12-05 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2010-12-03 bpabbott StatusPatch Submitted Ready For Test
    2010-12-03 bpabbott Attached File- Added changeset.patch, #22116
        StatusNone Patch Submitted
        Assigned toNone bpabbott

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code