mglib

Personal IDL library for M. Galloy

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

vis/googlechart/

mg_gc_venn.pro

includes main-level program

Routines

top mg_gc_venn

result = mg_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)

Parameters

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

Keywords

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

Examples

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

IDL> .run mg_gc_venn
This should produce:

Other attributes

Requires:

IDL 6.4

File attributes

Modification date: Wed May 14 15:07:15 2014
Lines: 32
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.