bugGNU Octave - Bugs: bug #32204, Can we get a release that doesn't...

 
 

bug #32204: Can we get a release that doesn't crash on scatter([1 2 3],[2 4 6], 'filled') ?

Submitted by:  None
Submitted on:  Fri 21 Jan 2011 02:46:43 PM UTC  
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Don Mathis Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  3.2.4
Operating System:  Mac OS

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)

Sat 22 Jan 2011 08:22:58 AM UTC, comment #8: 

I checked in the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/cd82f5933c73

With it,

scatter([1 2 3],[2 4 6],'filled')

works for me, so I'm closing this report.

John W. Eaton <jwe>
Project Administrator
Sat 22 Jan 2011 01:37:31 AM UTC, comment #7: 

As a last resort, one dirty, evil trick is to download the most recent version of the script that you're having a problem with and replace your local copy.  In this case, you might want to back up your local _scatter_.m and go here and download the latest:

http://hg.savannah.gnu.org/hgweb/octave/file/62b7ea59a6ff/scripts/plot/private

And just to be safe you might go one directory up and grab scatter.m too.

Of course this might end up causing more errors than it fixes, but it can't really hurt to try since you can just restore your backed up version(s).

Anonymous
Fri 21 Jan 2011 10:57:55 PM UTC, comment #6: 

scatter([1 2 3],[2 4 6],72,'b','filled')
Works OK in the latest TIP

Doug Stewart <dastew>
Fri 21 Jan 2011 10:30:02 PM UTC, comment #5: 

When I try your suggestion I get this error:

> scatter([1 2 3],[2 4 6],72,'b','filled')

error: invalid value for array property "cdata"
error: called from:
error:   /Applications/Octave.app/Contents/Resources/share/octave/3.2.3/m/plot/__scatter__.m at line 127, column 5
error:   /Applications/Octave.app/Contents/Resources/share/octave/3.2.3/m/plot/scatter.m at line 70, column 7

But again I assume that this is fixed in the most recent version(s). I'm really happy to hear that there will be a version 3.4 released soon!  At that point I'll try to find a Snow Leopard binary and a Windows binary.
Thanks,

-Don Mathis

Anonymous
Fri 21 Jan 2011 07:55:41 PM UTC, comment #4: 

Can you use any other valid color specifier?  For example:

scatter([1 2 3],[2 4 6],72,'b','filled')

I guess you might consider this a compatibility request for the scatter plotting function.  I have a pretty simple hack that allows you to call it like you did (and automatically makes the marker size 72), but it should probably be done correctly by someone more familiar with Octave plotting internals.

Also, note the stable 3.4.0 release is imminent.  I don't know much about MacPorts but hopefully they pick up on it quickly.

Anonymous
Fri 21 Jan 2011 06:38:16 PM UTC, comment #3: 

scatter([1 2 3],[2 4 6],72,[],'filled')

does not crash for me on the latest TIP

changeset:   11595:5ec6aa05638d
Doug Stewart

Anonymous
Fri 21 Jan 2011 06:31:52 PM UTC, comment #2: 

Thanks for your response.
The "stable" version does crash on your code with the same error as my simpler code (see below). It would be great if there were an updated stable version.

> scatter([1 2 3],[2 4 6],72,[],'filled')

error: invalid color specification: flat
error: invalid value for color property "markerfacecolor" (value = flat)
error: called from:
error:   /Applications/Octave.app/Contents/Resources/share/octave/3.2.3/m/plot/__scatter__.m at line 159, column 2
error:   /Applications/Octave.app/Contents/Resources/share/octave/3.2.3/m/plot/scatter.m at line 70, column 7

Anonymous
Fri 21 Jan 2011 06:08:28 PM UTC, comment #1: 

The development version does not crash, but that is not a valid call to scatter in Octave.  These produce very similar plots:

In Matlab 2008b:
scatter([1 2 3],[2 4 6],'filled')

In Octave 3.3.51+:
scatter([1 2 3],[2 4 6],72,[],'filled')

Octave requires the intermediate inputs, and by default the marker size is much smaller.  72 provides a similarly sized marker, and [] provides the default blue marker (alternatively you can use the other color specifiers that are valid in Matlab).

Anonymous
Fri 21 Jan 2011 02:46:43 PM UTC, original submission:  

This is a request. Could we please get a release that doesn't crash on this simple code:

scatter([1 2 3],[2 4 6], 'filled')

Looking at bug reports, it's probably true that this bug (and others like it involving color plotting) were fixed long ago, yet the latest stable release 3.2.4 still has things like this.  As I result, I'm probably not going to be able to use octave for my University course this semester.

I tried to compile the latest version, but compiling octave is nearly impossible -- even macports utterly fails to produce a usable installation on my brand new snow leopard machine, even though it first installed 10 hours of prerequisites.

So, if you released a new "stable" version, someone out there would compile it and then I could use it.

Thanks

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by dastew (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-22 jwe StatusNone => Fixed
        Open/ClosedOpen => Closed

    Back to the top


    Powered by Savane 3.5