def showCartesianShiftsPlot(inputSet, itemId):
    item = inputSet[itemId]
    if item.hasAttribute('_xmipp_OFMeanX'):
        meanX = [float(x) for x in item._xmipp_OFMeanX]
        meanY = [float(y) for y in item._xmipp_OFMeanY]
        plotter = createAlignmentPlot(meanX, meanY)
        plotter.show()
    else:
        print "These items do not have OF alignment set. "
Ejemplo n.º 2
0
def showCartesianShiftsPlot(inputSet, itemId):
    item = inputSet[itemId]
    if item.hasAttribute('_xmipp_OFMeanX'):
        meanX = [float(x) for x in item._xmipp_OFMeanX]
        meanY = [float(y) for y in item._xmipp_OFMeanY]
        plotter = createAlignmentPlot(meanX, meanY)
        plotter.show()
    else:
        print "These items do not have OF alignment set. "
Ejemplo n.º 3
0
 def _saveAlignmentPlots(self, movie):
     """ Compute alignment shifts plot and save to file as a png image. """
     meanX, meanY = self._loadMeanShifts(movie)
     plotter = createAlignmentPlot(meanX, meanY)
     plotter.savefig(self._getPlotCart(movie))
Ejemplo n.º 4
0
 def _saveAlignmentPlots(self, movie):
     """ Compute alignment shifts plot and save to file as a png image. """
     meanX, meanY = self._loadMeanShifts(movie)
     plotter = createAlignmentPlot(meanX, meanY)
     plotter.savefig(self._getPlotCart(movie))
     plotter.close()