<--previous | contents | next-->

Graph Options

Below is a complete list of all options that can be set on Graph objects. Not all options are explained, but the names are fairly self-explanatory. In time, the descriptions in this table will become more complete.

See the Type Legend table at the bottom of this page for an explanation of the various data types.

Option Type Description
annotation_font STRING
annotation_font_size FONTSIZE
annotation_ptsize FLOAT
bar_width PERCENT
bg_color COLOR Background colour.
bg_image STRING Set a background image.
bg_transparent BOOL
border CUSTOM A list of one or more of the following: "NONE", "ALL", "X", "Y", "Y2", "TOP".
ext_color COLOR_A The colour of the primary graph.
ext_vol_color COLOR_A The colour of the secondary graph.
generate_img BOOL
grid CUSTOM One of "LABELS", "POINTS", "NONE".
grid_color COLOR
hard_graphheight INT
hard_graphwidth INT
hard_size BOOL
hard_xorig INT
hard_yorig INT
hlc_cap_width PERCENT The width of the HLC cap. See HLC Graph for more detail.
hlc_style INT The HLC style. This is option is a list, consisting of one or more of the following: "DIAMOND", "CLOSE_CONNECTED", "CONNECTING" and "I_CAP". See HLC Graph for more detail.
hold_img INT
interpolations BOOL
image_type INT One of the following: "GIF", "JPEG", "PNG", "WBMP".
jpeg_quality INT
line_color COLOR
plot_color COLOR The colour of the primary plot.
requested_yinterval FLOAT
requested_ymax FLOAT
requested_ymin FLOAT
set_color COLOR_A
stack_type CUSTOM One of "DEPTH", "SUM", "BESIDE", "LAYER".
thumblabel STRING
threeD_angle UCHAR
threeD_depth FLOAT
thumbnail BOOL
thumbval FLOAT
ticks CUSTOM One of "LABELS", "POINTS", "NONE"
title STRING Title at the top of the graph.
title_color COLOR
title_font STRING
title_font_size FONTSIZE
title_ptsize FLOAT
vol_color COLOR
xaxis BOOL
xaxis_angle FLOAT
xaxis_font STRING
xaxis_font_size FONTSIZE
xaxis_ptsize FLOAT
xlabel_color COLOR
xlabel_spacing SHORT
xlabel_ctl BOOL_A
xtitle STRING Label on the X axis.
xtitle_color COLOR Colour of the label on the X axis.
xtitle_font STRING
xtitle_font_size FONTSIZE
xtitle_ptsize FLOAT
yaxis BOOL
yaxis2 BOOL
yaxis_font STRING
yaxis_font_size FONTSIZE
yaxis_ptsize FLOAT
ylabel_color COLOR
ylabel_density PERCENT
ylabel_fmt STRING
ylabel2_color COLOR
ylabel2_fmt STRING
ytitle STRING Title on the Y axis.
ytitle_color COLOR Colour of the title on the Y axis.
ytitle_font STRING
ytitle_font_size FONTSIZE
ytitle_ptsize FLOAT
ytitle2 STRING
ytitle2_color COLOR
yval_style BOOL
zeroshelf BOOL

Type Legend

Type* Description
BOOL True if the value passed evaluates to true (ie. "if a: print 1" prints 1).
BOOL_A An array of BOOL values.
COLOR Values can be specified as a descriptive name (i.e. "blue"), as an integer (i.e. 0xFF0000), or as an RGB object (i.e. RGB(0xFF, 0x00, 0x00)).
COLOR_A An array of COLOR values.
FLOAT A floating point value.
FONTSIZE One of "TINY", "SMALL", "MEDBOLD", "LARGE", "GIANT".
INT An integer.
PERCENT An integer x, such that 0 <= x <= 100.
STRING A string.
UCHAR An unsigned char. That is, a small positive integer.

* Note that types are NOT enforced by type check - that means that you don't have to pass a Python integer to an integer option: an object with an __int__ method will do. Same goes for string options and objects with a __str__ or __repr__ method, etc.


<--previous | contents | next--> (12/31/03)
PyGDChart User's Manual