Author(s): Isabel Martín.
Version: 1.10#7 (2006/4/26, 19:22:13 CEST)
Version of last change: 1.9#170 (2003/12/4, 17:39:57 CET)
Most of the predicates exported by this module perform some checks to determine whether the arguments attain some conditions or not. In the second case an exception will be thrown. To catch the exceptions you can use the following metapredicates when invoking chartlib exported predicates:
Both metapredicates are defined in the chartlib_errhandle module that comes with this library. Some of the predicates have a Predicate argument which will be used in case of error to show which chartlib predicate causes the error.
test_format)test_format)
equalnumber(X, Y, Predicate)
Test whether the list X and the list Y contain the same number of elements.
not_empty(X, Y, Z, Predicate)
Tests whether at least one the lists X, Y or Z are empty.
not_empty(X, Y, Predicate)
Tests whether the lists X or Y are empty.
check_sublist(List, Number, Number, Predicate)
Tests if the number of elements in each sublist of List is Number1 or Number2.
valid_format(XVector, YVector, BarsAttributes, Predicate)
Tests the following restrictions:
XVector number of elements is the same as each YVector sublist number of elements.
YVector length is equal to BarsAttributes length.
vectors_format(XVector, YVectors, LinesAttributes, Predicate)
Tests the following conditions:
YVectors list and LinesAttributes list have the same number of elements.
XVector list and each YVectors element have the same number of elements.
LinesAttributes is composed of 5, 3 or 1 elements.
valid_vectors(XVector, YVectors, LinesAttributes, Predicate)
Tests the following conditions:
XVector list, YVectors list and LinesAttributes list have the same number of elements.
LinesAttributes is composed of 5, 3 or 1 element.
valid_attributes(BarsAttibuttes, Predicate)
Check if each BarsAttibuttes element is a list composed of one or four elements.
valid_table(ElementTable, Predicate)
All of the ElementTable sublists have the same number of elements and are not empty.
Go to the first, previous, next, last section, table of contents.