Skip to content

bar() function wrongly returns a Compound (while barh() returns a vector of Polylines).

Bug Description

bar() function returns a "Compound" but barh() returns a vector of "Polylines" (since Scilab 2025.0.0). Both of them should return a vector of "Polylines".

Steps to reproduce

Examples coming for Scilab documentation:

scf(0);
x=[1 2 5];
y=[1  -5 6;3 -2 7;4  -3 8];
h = bar(x,y);

gives:

--> h

 h = [Compound] with properties:

  parent: [Axes]
  children: [3x1 handle]
  visible = "on"
  user_data = []
  tag = ""

while

scf(1);
x=[1 2 5];
y=[1  -5 6;3 -2 7;4  -3 8];
h = barh(x,y);

gives:

--> h

 h = [3x1 handle]

  Polyline 
  Polyline 
  Polyline 

What is the expected correct behavior?

Both functions should return a vector of "Polylines".

Error log

No error.

Edited by Vincent COUVERT