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

Module gnuplot

source code

Module for data plotting using gnuplot.

Functions [hide private]
 
correlation_matrix(matrix=None, labels=None, file=None, dir=None, force=False)
Gnuplot plotting function for representing correlation matrices.
source code
str
format_enhanced(text)
Convert and return the text to handle enhanced postscript.
source code
Variables [hide private]
  __package__ = 'lib.plotting'

Imports: chmod, S_IRWXU, S_IRGRP, S_IROTH, file_root, get_file_path, open_write_file, swap_extension, text


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.

format_enhanced(text)

source code 

Convert and return the text to handle enhanced postscript.

Parameters:
  • text (str) - The text to convert to enhanced mode.
Returns: str
The formatted text for enhanced postscript mode.