pyworkflow.gui.matplotlib_image module

Several Image tools using Matplotlib.

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

Bases: 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)

Construct a frame widget with the parent MASTER.

Valid resource names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, relief, takefocus, visual, width.

getCanvas()[source]
getFigure()[source]
class pyworkflow.gui.matplotlib_image.ImagePreview(parent, dim, dpi=36, label=None, col=0, listenersDict=None)[source]

Bases: Preview

Construct a frame widget with the parent MASTER.

Valid resource names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, relief, takefocus, visual, width.

class pyworkflow.gui.matplotlib_image.MaskPreview(parent, dim, dpi=36, label=None, col=0, listenersDict=None)[source]

Bases: ImagePreview

Construct a frame widget with the parent MASTER.

Valid resource names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, relief, takefocus, visual, width.

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

Bases: Frame

Construct a frame widget with the parent MASTER.

Valid resource names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, relief, takefocus, visual, width.

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

Set window title

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

Bases: Preview

Construct a frame widget with the parent MASTER.

Valid resource names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, relief, takefocus, visual, width.

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