bugGNU Octave - Bugs: bug #46165, errorbar does not accept...

 
 

bug #46165: errorbar does not accept property/value pairs

Submitter:  José Luis García Pallero <jgpallero>
Submitted:  Fri 09 Oct 2015 02:04:03 PM UTC
   
 
Category:  Octave Function Severity:  2 - Minor
Priority:  3 - Low Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 15 Aug 2018 05:56:58 PM UTC, comment #7: 

Marking as confirmed.  As posted in comment #6, this should be an easy fix for anyone who can write an m-file in the Octave language.

Rik <rik5>
Group administrator
Thu 09 Mar 2017 07:38:50 PM UTC, comment #6: 

I changed the summary to reflect the remaining issue.

The file to modify is _errplot_.m in scripts/plot/draw/private.  There is a switch statement on the number of input arguments in varargin that will need to be modified.  Basically, one has to figure out where the numberic arguments end and the string arguments begin.  The numeric arguments can be passed to the original switch statement, and the remaining string arguments will need a new processing block.

Rik <rik5>
Group administrator
Thu 09 Mar 2017 04:05:28 AM UTC, comment #5: 

Sorry the url I submit in the previous post is redirection to web page for Japanese.

Original url is Rik already posted in comment #1
http://www.mathworks.com/help/matlab/ref/errorbar.html

Scroll down the page,
Yo can now find the section

Add Colored Markers to Each Data Point

The above example,
errorbar (..., "property_name", property_value)

is used.

Tatsuro MATSUOKA <tmacchant>
Thu 09 Mar 2017 03:24:39 AM UTC, comment #4: 

In the current MATLAB document, example using property/value pairs is described.

https://jp.mathworks.com/help/matlab/ref/errorbar.html?lang=en#bvc929w-1

Tatsuro MATSUOKA <tmacchant>
Fri 23 Oct 2015 04:37:34 AM UTC, comment #3: 

I pushed a patch on the development branch for the case when errorbar is called with just a single point (http://hg.savannah.gnu.org/hgweb/octave/rev/10704158315e).  It's not perfect because Octave doesn't set the xlimits for the plot to a sensible value.  Still, that can be quickly corrected with a call to xlim().

Rik <rik5>
Group administrator
Sat 10 Oct 2015 02:20:26 PM UTC, comment #2: 

No, in Matlab is not documented, but the syntax


errorbar (..., "property_name", property_value)


works

Anyway, I think the (PROPERTY,VALUE) options could be good in Octave errorbar

José Luis García Pallero <jgpallero>
Fri 09 Oct 2015 11:04:09 PM UTC, comment #1: 

Does Matlab really allow this syntax?


errorbar (..., "property_name", property_value)


There is no indication of it in the documentation (http://www.mathworks.com/help/matlab/ref/errorbar.html).  In general Octave doesn't try too hard to replicate undocumented features because there is no stability and they can change or disappear entirely every 6 months when Matlab releases a new version.



Rik <rik5>
Group administrator
Fri 09 Oct 2015 02:04:03 PM UTC, original submission:  

Hello:

If I use the errorbar() function with only one point, for example


errorbar(1,0,1.2,'.')


the vertical error bar does not contains the horizontal lines at the extremes that appears when the function is used with various poins


errorbar([1 2],[0 0],[1.2 1.2],'.')


It would be nice also for Matlab compatibility that options (PROPERTY,VALUE) could be used in errorbar() as in plot(). The code


errorbar([1 2],[0 0],[1.2 1.2],'.','markersize',20,'linewidth',2)


is valid in Matlab but produces an error in Octave

José Luis García Pallero <jgpallero>

 

(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 tmacchant (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jgpallero (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-08-15 rik5 StatusNone Confirmed
    2017-03-09 rik5 Summaryerrorbar does not accept property/value pairs (undocumented Matlab feature) errorbar does not accept property/value pairs
    2016-11-23 rik5 Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        Item GroupInaccurate Result Matlab Compatibility
        Release4.0.0 dev
    2015-10-23 rik5 SummarySpecial case of errorbar() and Matlab incompatibility errorbar does not accept property/value pairs (undocumented Matlab feature)

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code