C++QED  2.100.2 (v2 Milestone 10 Development branch)
a framework for simulating open quantum dynamics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Modules Pages
Plotter Class Reference

This is a helper class which helps with plotting functions to a pdf file. More...

+ Inheritance diagram for Plotter:
+ Collaboration diagram for Plotter:

Public Member Functions

def start_pdf
 Initialize a new pdf file. More...
 
def close_pdf
 Saves the pdf file to disc after all plots are finished.
 
def finish_plot
 Adds the current plot to the pdf file.
 
def figureLegendRight
 Creates a new plot with figure legend right of the plot. More...
 
def plot
 Wraps matplotlibs plot function. More...
 
- Public Member Functions inherited from OutputManager
def __init__
 Arguments are passed through to OptionsManager.
 
def runmodes
 Return runmodes. More...
 
def output
 The name of the output file for a given runmode. More...
 
def clean
 Delete the trajectory file and state file for a given runmode. More...
 
- Public Member Functions inherited from OptionsManager
def __init__
 
def get_option
 Get configuration file keys in a safe way. More...
 

Additional Inherited Members

- Public Attributes inherited from OutputManager
 outputdir
 All output files end up here. More...
 
 expecteddir
 Where to look for pre-run simulations to compare test runs to. More...
 
- Public Attributes inherited from OptionsManager
 options
 optparse.Values: command line options
 
 cp
 ConfigParser: configuration file keys.
 
 test
 The name of the current test.
 

Detailed Description

This is a helper class which helps with plotting functions to a pdf file.

If the global variable plot is False, all functions are a no-op.

Definition at line 555 of file testdriver.py.

Member Function Documentation

def figureLegendRight (   self,
  ylabel,
  title,
  n 
)

Creates a new plot with figure legend right of the plot.

Parameters
ylabelThe label of the y axis.
titleThe title of the plot
nThe value number.

Definition at line 589 of file testdriver.py.

def plot (   self,
  time,
  data,
  kwargs 
)

Wraps matplotlibs plot function.

Parameters
timeAn array of time values.
dataAn array of data values.
**kwargsThese are passed to matplotlib.plot.

Definition at line 612 of file testdriver.py.

def start_pdf (   self)

Initialize a new pdf file.

The file is read from the configuration key pdf.

Definition at line 564 of file testdriver.py.


The documentation for this class was generated from the following file: