xmipp3.viewers.plotter module

This module implement the classes to create plots on xmipp.

class xmipp3.viewers.plotter.XmippPlotter(x=1, y=1, mainTitle='', **kwargs)[source]

Bases: EmPlotter

Class to create several plots with Xmipp utilities

This Plotter class has some utilities to create a Matplotlib figure and add some plots to it. Params:

x, y: number of rows and columns of the grid for plots. mainTitle: figure main title. figsize: the size of the figure, if None, it will be guessed from x and y dpi: resolution, 100 by default. windowTitle: title for the whole windows.

plotMd(md, mdLabelX, mdLabelY, color='g', **args)[source]

plot metadata columns mdLabelX and mdLabelY if nbins is in args then and histogram over y data is made

plotMdAngularDistribution(title, md, color='blue')[source]

Create an special type of subplot, representing the angular distribution of weight projections. A metadata should be provided containing labels: MDL_ANGLE_ROT, MDL_ANGLE_TILT, MDL_WEIGHT

plotMdFile(mdFilename, mdLabelX, mdLabelY, color='g', **args)[source]

plot metadataFile columns mdLabelX and mdLabelY if nbins is in args then and histogram over y data is made

plotScatterMd(md, mdLabelX, mdLabelY, color='g', **args)[source]

scatterplot metadata columns mdLabelX and mdLabelY if nbins is in args then and histogram over y data is made