« Return to Thread: Exception in barchart

Re: Exception in barchart

by Christian Schneiker-2 :: Rate this Message:

Reply to Author | View in Thread

Jan,

Dietmar Seipel observed this some time ago. Obviously this should not
make a change, but we noticed that it helps.

> Christian,
>> is it possible to make some changes in barchart.pl as follows:
>>
>> Line 440ff
>>
>> get(T, width, W), get(T, height, H),
>> send(I, hot_spot, point(W+5, H/2)),
>> %send(I, hot_spot, point(T?width+5, T?height/2)),
>
> Except for errors, this is -as I think you know-, the same. Why is there
> an error though. Or more specifically, why does get(T, height, H) fail?

get(T, height, H) does not fail.
send(I, hot_spot, point(T?width+5, T?height/2)) fails.


> I surely have used this package with success.  Your fix might be a fix
> at the wrong place, but before deciding we must know why it fails.
>
> Cheers --- Jan
>
>> I'm getting the following exceptions when drawing barcharts and we don't
>> want to change them every time we install a new version of swi-prolog.
>>
>> ERROR: point ->initialise: Argument 2 (y): `[int]' expected, found
>> `@13807156?height/2'
>> ^  Exception: (20) send(@13707180/image,
>> hot_spot(point(@13807156/text?width+5, @13807156/text?height/2))) ? creep
>>    Exception: (19) Send-method on @13839200/bar_label:
>> bar_label->update_label ? creep
>> ERROR: point ->initialise: Argument 2 (y): `[int]' expected, found
>> `@13807156?height/2'
>> ^  Exception: (17) send(@13839200/bar_label, update_label) ? creep
>>    Exception: (16) Send-method on @13839200/bar_label:
>> bar_label->initialise(@13835130/bar_group)
>>

Christian


--
Dipl.-Inform. Christian Schneiker
Department of Computer Science
University of Wuerzburg
Am Hubland, 97074 Wuerzburg, Germany
Phone: +49 931 31 84942
Fax:   +49 931 888 4600
callto://ch_schneiker (skype)
mailto:schneiker@...
_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog

 « Return to Thread: Exception in barchart