plot¶
This module’s scope is related to plotting data graphically.
Example:
import tuna
raw = tuna.io.read ( "tuna/test/unit/unit_io/adhoc.ad3" )
tuna.tools.plot ( raw )
-
tuna.tools.plot.
log
(message)[source]¶ This function’s goal is to output the input message if its debug value is True, otherwise it does nothing. It is a poor substitute for writing proper support to the logging module.
Parameters:
- message : string
-
tuna.tools.plot.
plot
(data, cmap='Greys', title='', ipython=None)[source]¶ This function’s goal is to plot a numpy ndarray argument. Will plot a mosaic if data is 3D, a simple plot if 2D.
Parameters:
data : numpy.ndarray
- cmap : str : “Greys”
The colormap to be passed to matplotlib.
title : string
- ipython : object
A reference to the running ipython environment.
-
tuna.tools.plot.
plot_high_res
(high_res)[source]¶ This function’s goal is to plot the intermediary products of a tuna.pipelines.calibration_lamp_high_resolution object.
Parameters:
- high_res : object
A reference to a calibration_lamp_high_resolution object.