bugGNU Octave - Bugs: bug #46968, bar() : argument problem

 
 

bug #46968: bar() : argument problem

Submitted by:  None
Submitted on:  Mon 25 Jan 2016 12:24:28 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Feature Request
Status: Wont FixAssigned to: None
Originator Name: nicmusOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.0
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 12 Feb 2016 12:13:38 PM UTC, comment #2:

The same as in comment #1 for Matlab 2015b. The documentation might be improved regarding x and y to be vectors of same length, but for "plot" the desired behavior of is explicitly mentioned.

https://www.gnu.org/software/octave/doc/interpreter/Two_002dDimensional-Plots.html

A workaround for you might be:

But for me this behavior is not very desirable.

So closing this item.

Kai Torben Ohlhus <siko1056>
Project Member
Tue 26 Jan 2016 01:04:52 PM UTC, comment #1:

In matlab, R2013a, if I run

h=bar(1,[2 1])

I get an error:
Error using bar
X must be same length as Y.

John Donoghue <lostbard>
Project Member
Mon 25 Jan 2016 12:24:28 PM UTC, original submission:

I expect the following command

to return two handles (one for the bar at [1,2] and one for the bar at [1, 1]). Instead I get invalid number of arguments error.

Compare with
this works right.

Anonymous

 

(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 siko1056 (Posted a comment)
  • -unavailable- added by lostbard (Posted a comment)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 12 Feb 2016 12:13:38 PM UTCsiko1056Item GroupIncorrect Result=>Feature Request
      StatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
      Operating SystemGNU/Linux=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1