Function: math[colplot] - plot column diagrams
Calling Sequence:
colplot(L1, options);
colplot(L2, options);
colplot(L3, options);
Parameters:
L1
- a list of realcons
L2
- a list of lists of two realcons
L3
- a list of equations of type name=realcons
options
- (optional) one or more plot/colplot options
Description:
The function plots a column diagram from a list of values.
In the first form, by passing a list of values L1 := [
, ...,
] of type realcons, the columns are plotted with
denoting the leftmost and
the rightmost column.
In the second form, by specifying a list of lists of two values, L2 := [[
,
], ..., [
,
]], where
are of type realcons, the respective column is plotted at x-position
with heigth
.
In the third form, by specifying a list of equations L3 := [
=
, ...,
=
], where
is of type name and
of type realcons, for each column with height
a label determined by
is put below the abscissa. Preferrably,
is put in backquotes, e.g. [`July 17, 98`=0, `July 18, 98`=-1].
Besides accepting all Maple
plot options
the following special colplot options are available:
base the lower end of the y-axis, default is
* 0 if all values in the list are nonnegative, or
* the minimum value in the list if it includes negative values
syntax: base=realcons, e.g. base=100
top the lower end of the y-axis, default is the greatest value in the list
syntax: top=realcons, e.g. top=1100
color the color with which all columns shall be filled, any valid Maple colors
are accepted
syntax: color=maplecolor, e.g. color=blue
width the width of each column, should be <= 1, default is 1
syntax: width=realcons, e.g. width=3/4
xlabelfont the font for the column labels (third form)
syntax: font=[fontname, attribute, size], e.g. font=[HELVETICA, BOLD, 9]
This function is part of the math package, and so can be used only after performing the command with(math) or with(math, colplot).
Examples:
> with(math, colplot):
> L1 := [278, 356, 373, 686, 790, 956, 686, 666, 1090, 1205, 1270]:
>
colplot(L1, top=1300, width=3/4, color=yellow,
axes=box, title=`UTSA Maple site visits 1998`);
>
L2 := [[1, 278], [2, 356], [3, 373], [4, 686], [5, 790], [6, 956], [7, 686], [8, 666], [9, 1090],
[10, 1205], [11, 1270]]:
>
colplot(L2, 3 .. 6, 0 .. 1000, width=3/4,
axes=box, color=yellow, title=`UTSA Maple site visits 1998`);
>
L3 := [`Jan98`=278, `Feb98`=356, `Mar98`=373, `Apr98`=686, `May98`=790, `Jun98`=956,
`Jul98`=686, `Aug98`=666, `Sep98`=1090, `Oct98`=1205, `Nov98`=1270]:
>
colplot(L3, 6 .. 11, top=1300, width=.75, xlabelfont=[HELVETICA, 8],
title=`UTSA Maple site visits 1998`);
See Also:
Version History:
Version 1.0 - December 12, 1998