Package lib :: Package plotting :: Module text
[hide private]
[frames] | no frames]

Module text

source code

Module for data plotting in plain text format.

Functions [hide private]
 
correlation_matrix(matrix=None, labels=None, file=None, dir=None, force=False)
Gnuplot plotting function for representing correlation matrices.
source code
Variables [hide private]
  __package__ = 'lib.plotting'

Imports: open_write_file


Function Details [hide private]

correlation_matrix(matrix=None, labels=None, file=None, dir=None, force=False)

source code 

Gnuplot plotting function for representing correlation matrices.

Parameters:
  • matrix (numpy rank-2 array.) - The correlation matrix. This must be a square matrix.
  • labels (list of str) - The labels for each element of the matrix. The same label is assumed for each [i, i] pair in the matrix.
  • file (str) - The name of the file to create.
  • dir (str or None) - The directory where the PDB file will be placed. If set to None, then the file will be placed in the current directory.