pwem.viewers.plotter module¶
- class pwem.viewers.plotter.EmPlotter(x=1, y=1, mainTitle='', **kwargs)[source]¶
Bases:
pyworkflow.gui.plotter.Plotter
Class to create several plots.
- classmethod createFromFile(dbName, dbPreffix, plotType, columnsStr, colorsStr, linesStr, markersStr, xcolumn, ylabel, xlabel, title, bins, orderColumn, orderDirection)[source]¶
- plotAngularDistribution(title, rot, tilt, weight=[], max_p=40, min_p=5, color='blue')[source]¶
Create an special type of subplot, representing the angular distribution of weight projections.
- plotAngularDistributionFromMd(mdFile, title, **kwargs)[source]¶
Read the values of rot, tilt and weights from the metadata and plot the angular distribution. ANGLES are in DEGREES In the metadata:
rot: MDL_ANGLE_ROT tilt: MDL_ANGLE_TILT weight: MDL_WEIGHT
- plotAngularDistributionHistogram(title, rot, tilt)[source]¶
Create an special type of subplot, representing the angular distribution of weight projections.
- plotData(xValues, yValues, color='blue', **kwargs)[source]¶
Shortcut function to plot some values. Params:
xValues: list of values to show in x-axis yValues: list of values to show as values in y-axis color: color for the plot. **kwargs: keyword arguments that accepts:
marker, linestyle
- plotDataBar(xValues, yValues, width, color='blue', **kwargs)[source]¶
Shortcut function to plot some values. Params:
xValues: list of values to show in x-axis yValues: list of values to show as values in y-axis color: color for the plot. **kwargs: keyword arguments that accepts:
marker, linestyle