The embeddable module

A panel for containing multiple graphs which can be embedded in a frame.

Classes

EmbeddableGraphManager

class src.gui.graphing.embeddable.EmbeddableGraphManager(parentFrame, graphPanels)[source]

A class to manage the graphs for an experiment.

Parameters :

parentFrame : wx.Window

The frame or panel which contains the panels for the individual graphs.

graphPanels : list of GraphPanel

A list containing all of the GraphPanel objects which this GraphManager will manage.

Methods

abort(timeout=10)[source]

Stop the thread for updating the graphs.

getGraphs()[source]

Return the figures for the graphs so that they can be saved.

saveGraphs(filename)[source]

Save the graphs to a file.

Resize all graphs to the appropriate size. Then arrange them into a grid and save that grid to the file specified by filename.

Parameters :

filename : str

A string pointing to which the graph images should be saved. Note that all graphs go to the same file. filename should be a complete path name, including an extension.

setGraphs(graphs)[source]

Set the graphs to manage.

Parameters :

graphs : list of Graph

A list of Graph objects which will send their data to this manager to be put into the appropriate panels.

start()[source]

Start the thread for updating the graphs.

GraphThread

class src.gui.graphing.embeddable.GraphThread(parentFrame, graphPanels)[source]

A thread to update the graphs at regular intervals.

Parameters :

parentFrame : wx.Window

The frame or panel which contains the panels for the individual graphs.

graphPanels : list of GraphPanel

A list containing all of the GraphPanel objects which this thread will manage.

Methods

abort()[source]

Signal that the thread should stop.

Table Of Contents

Previous topic

The basicframe module

Next topic

The sequencebuilder package

This Page