Package topo :: Package plotting :: Module plotfilesaver
[hide private]
[frames] | no frames]

Module plotfilesaver

source code

File saving routines for plots.

Typically called using save_plotgroup in commands/analysis.py, but these objects can also be instantiated explicitly, to save a series of plots.

$Id: plotfilesaver.py 11314 2010-07-27 17:18:52Z ceball $


Version: $Revision: 11314 $

Classes [hide private]
  PlotGroupSaver
Allows a PlotGroup to be saved as a set of bitmap files on disk.
  CFProjectionPlotGroupSaver
Allows a CFProjectionPlotGroup to be saved as a bitmap file, concatenating all the CF plots into a single image.
Functions [hide private]
 
make_contact_sheet(imgs, (marl, mart, marr, marb), padding)
Make a contact sheet (image grid) from a 2D array of PIL images:
source code
Variables [hide private]
  __package__ = 'topo.plotting'
Function Details [hide private]

make_contact_sheet(imgs, (marl, mart, marr, marb), padding)

source code 

Make a contact sheet (image grid) from a 2D array of PIL images:

imgs     2D array of images

marl     The left margin in pixels
mart     The top margin in pixels
marr     The right margin in pixels
marb     The bottom margin in pixels

padding  The padding between images in pixels

Returns a PIL image object.