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

 
 

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

Submitted by:  José Luis García Pallero <jgpallero>
Submitted on:  Fri 09 Oct 2015 02:04:03 PM UTC  
 
Category: Octave FunctionSeverity: 2 - Minor
Priority: 3 - LowItem Group: Matlab Compatibility
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

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)

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>
Project 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>
Project Administrator
Sat 10 Oct 2015 02:20:26 PM UTC, comment #2:

No, in Matlab is not documented, but the syntax

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?

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>
Project 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

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

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

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tmacchant (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jgpallero (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 09 Mar 2017 07:38:50 PM UTCrik5Summaryerrorbar does not accept property/value pairs (undocumented Matlab feature)=>errorbar does not accept property/value pairs
    Wed 23 Nov 2016 05:29:37 AM UTCrik5Severity3 - Normal=>2 - Minor
      Priority5 - Normal=>3 - Low
      Item GroupInaccurate Result=>Matlab Compatibility
      Release4.0.0=>dev
    Fri 23 Oct 2015 03:56:58 PM UTCrik5SummarySpecial case of errorbar() and Matlab incompatibility=>errorbar does not accept property/value pairs (undocumented Matlab feature)

    Back to the top


    Powered by Savane 3.1-cleanup1