API documentation for visualization library

Michael Galloy

single page | use frames     summary     class     fields     routine details     file attributes



includes main-level program

top vis_gc_venn

result = vis_gc_venn(sizes, ab, ac, bc, abc [, dimensions=lonarr] [, title=string or strarr] [, legend_labels=strarr] [, legend_position=string] [, color=lonarr] [, background=long] [, alpha_channel=float] [, url=string])

Create a Venn Diagram using the Google Charts API.

Return value

bytarr(3, xsize, ysize)


sizes in required type=fltarr(3)

relative sizes of A, B, and C

ab in required type=float

area of intersection of A and B

ac in required type=float

area of intersection of A and C

bc in required type=float

area of B and C

abc in required type=float

area of intersection of A, B, and C


dimensions in optional type=lonarr default=[200, 100]

size of output image

title in optional type=string or strarr

string or string array representing title

legend_labels in optional type=strarr

string array of labels for sets

legend_position in optional type=string

position of legend: t (top), b (bottom), r (right), or l (left)

color in optional type=lonarr

colors of the slices

background in optional type=long

background color of chart

alpha_channel in optional type=float

transparency of chart: 0.0 for completely transparent, 1.0 for completely opaque

url out optional type=string

URL used by Google Charts API


See the main-level program at the end of this file:

IDL> .run vis_gc_venn
This should produce:

Other attributes


IDL 6.4

File attributes

Modification date: Mon Nov 29 18:32:39 2010
Lines: 91
Docformat: rst rst