pyworkflow.gui.matplotlib_image module

Several Image tools using Matplotlib.

class pyworkflow.gui.matplotlib_image.FigureFrame(parent, **kwargs)[source]

Bases: Tkinter.Frame

Create a Tk Frame that will contains a Matplotlib Figure. **kwargs arguments will be passed to Figure constructor. Valid options are:

figsize = (xdim, ydim) dpi = value frameon = (True|False)
getCanvas()[source]
getFigure()[source]
class pyworkflow.gui.matplotlib_image.ImagePreview(parent, dim, dpi=36, label=None, col=0)[source]

Bases: pyworkflow.gui.matplotlib_image.Preview

class pyworkflow.gui.matplotlib_image.ImageWindow(filename=None, dim=256, dpi=96, image=None, label=None)[source]

Bases: pyworkflow.gui.gui.Window

updateData(Z)[source]
updateImage(image)[source]
class pyworkflow.gui.matplotlib_image.MaskPreview(parent, dim, dpi=36, label=None, col=0, outerRadius=None, innerRadius=0)[source]

Bases: pyworkflow.gui.matplotlib_image.ImagePreview

updateMask(outerRadius, innerRadius=0)[source]
class pyworkflow.gui.matplotlib_image.Preview(parent, dim, dpi=36, label=None, col=0, row=0)[source]

Bases: Tkinter.Frame

clear()[source]
setWindowTitle(title)[source]

Set window title

updateData(Z)[source]
class pyworkflow.gui.matplotlib_image.PsdPreview(master, dim, lf, hf, dpi=72, label='PSD', Z=None)[source]

Bases: pyworkflow.gui.matplotlib_image.Preview

createRing()[source]
updateFreq(lf, hf)[source]
pyworkflow.gui.matplotlib_image.createBgImage(dim)[source]
pyworkflow.gui.matplotlib_image.getPngData(filename)[source]