Barcharts in XPCE don't display ordenates and abscissas axis labels

Hello everyone. Just a simple question, I was studying the XPCE barcharts topic and then I tried to run a modified version of given example code. The result I got didn’t show any label in the axis but if I select the place where text should be shown, it is the length expected. In addition, I ran the same code in other computers and I got always the same. What am I doing wrong then?

Below, I attach the code used and an screen shot of the result:

:- use_module(library(pce)).
:- use_module(library('plot/barchart')).
:- use_module(library(autowin)).

barchart :- barchart(vertical).
barchart(HV) :-	new(W, picture),
		Classes=[[clase_1,100,50],[clase_2,90,30]],
		length(Classes, N),
		send(W, display, new(BC, bar_chart(HV, 0, 200, 100, N))),
		forall(member([Name, Created, Freed], Classes),
			send(BC, append,
			bar_group(Name,
			bar(created, Created, green),
			bar(freed, Freed, red)))),
		send(W, open).

image

1 Like

It works well under Windows…


Which system(s) are you using ?

1 Like

Didn’t know XPCE could do barcharts :+1:t2:

PS: works fine on MacOS as well

Hello.
I’m using Ubuntu 22.04.3 LTS and prolog version 9.0.4. I also tried in MX-Linux.

Just tried version 9.1.21 built from source on Ubuntu 22.04.3 LTS, and it’s working …
sorry, I don’t know what the problem could be.