bugGNU Octave - Bugs: bug #32628, colorbar 'location' option...

 
 

bug #32628: colorbar 'location' option behavior different from M*lab

Submitter:  None
Submitted:  Mon 28 Feb 2011 08:23:42 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  bpabbott
Originator Name:  Alexander Mamonov Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.4.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 05 Mar 2011 04:34:18 PM UTC, comment #3: 

The fix was rather simple.

http://hg.savannah.gnu.org/hgweb/octave/rev/5454b687fd14

I'm closing this. If needed it can be reopened.

Ben Abbott <bpabbott>
Group Member
Wed 02 Mar 2011 01:27:31 PM UTC, comment #2: 

Alexander Mamonov emailed me with the response below.


There is an example of such usage at:
http://www.mathworks.com/help/techdoc/ref/colorbar.html
(see the last example).
I think the reason it works in Matlab is because it is a particular
case of the syntax
colorbar(...,'PropertyName',propertyvalue)


What needs to be done is to add the property-name / property-value syntax below.

colorbar (...,'PropertyName',propertyvalue)

My spare time is rather short now. If anyone is interested in working on a patch, please do.

Ben Abbott <bpabbott>
Group Member
Wed 02 Mar 2011 03:06:54 AM UTC, comment #1: 

I'm unable to find the form below in Matlab's documentation.


colorbar ('location', 'southoutside')


However, the syntax above does work. I'm not sure we should try to implement undocumented forms of Matlab's syntax, as it may be a bug.

... or am I wrong? Is this syntax documented some where?

Ben Abbott <bpabbott>
Group Member
Mon 28 Feb 2011 08:23:42 PM UTC, original submission:  

A legitimate expression in M*lab:

colorbar('location','southoutside')

gives the following error in Octave 3.2.3:

colorbar('location','southoutside')
error: set: invalid number of arguments
error: called from:
error:   /usr/share/octave/3.2.3/m/plot/colorbar.m at line 142, column 2

The same error persists in 3.4.0 both in Gnuplot and FLTK toolkits.

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 bpabbott (Posted a comment)
  • -email is unavailable- added by None (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-03-05 bpabbott StatusNone Fixed
        Assigned toNone bpabbott
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code