Package Bio :: Package Graphics
[hide private]
[frames] | no frames]

Package Graphics

source code

Bio.Graphics offers several graphical outputs, all using ReportLab.
Submodules [hide private]

Functions [hide private]
 
_write(drawing, output_file, format, dpi=72)
Helper function to standardize output to files (PRIVATE).
source code
Variables [hide private]
  __package__ = 'Bio.Graphics'
Function Details [hide private]

_write(drawing, output_file, format, dpi=72)

source code 

Helper function to standardize output to files (PRIVATE).

Writes the provided drawing out to a file in a prescribed format.

  • drawing - suitable ReportLab drawing object.
  • output_file - a handle to write to, or a filename to write to.
  • format - String indicating output format, one of PS, PDF, SVG, or provided the ReportLab renderPM module is installed, one of the bitmap formats JPG, BMP, GIF, PNG, TIFF or TIFF. The format can be given in any case.
  • dpi - Resolution (dots per inch) for bitmap formats.

No return value.