mglib

Personal IDL library for M. Galloy

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

vis/tables/

mg_spotmatrix.pro


Create a spot matrix table.

Here's a good reference for making these types of tables:

http://i-ocean.blogspot.com/2008/10/using-spots-and-rings-in-tables.html

Examples

Run the main-level example program at the end of this file with:

IDL> .run mg_spotmatrix
This should produce:

Other file information

Todo:

* height/width ratio needs some work * there are several magic numbers: should these be calculated in some way or be set through keywords? * should normalize by row or column, not by the entire data matrix * might need to calculate area of annulus instead of radii

Routines

Routines from mg_spotmatrix.pro

mg_spotmatrix_makeglyph, val, x, y, _extra=_extra

Make a circle, filled in proportionally to its normalized value.

mg_spotmatrix, data, colTitles, rowTitles, color=color, title_color=title_color, _extra=_extra

Create spot matrix table.

Routine details

top mg_spotmatrix_makeglyph

mg_spotmatrix_makeglyph, val, x, y, _extra=_extra

Make a circle, filled in proportionally to its normalized value.

Parameters

val in required type=float

normalized value

x in required type=float

x value for center of glyph

y in required type=float

y value for center of glyph

Keywords

_extra

top mg_spotmatrix

mg_spotmatrix, data, colTitles, rowTitles, color=color, title_color=title_color, _extra=_extra

Create spot matrix table.

Parameters

data in required type=fltarr(n, m)

data to present in tabular format

colTitles in required type=strarr(n)

column headers

rowTitles in required type=strarr(m)

row headers

Keywords

color
title_color
_extra

File attributes

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