Example #1
0
    def _showRadialAverages(self, paramName=None):
        xplotter = XmippPlotter(windowTitle="Resolution Radial Averages")
        a = xplotter.createSubPlot("Radial Averages", "Radius (pixel)",
                                   "Frequency (A)")
        legends = []

        list = [
            'RadialResolution', 'AzimuthalResolution', 'HighestResolution',
            'LowestResolution', 'MonoRes'
        ]
        labellist = [
            MDL_VOLUME_SCORE1, MDL_VOLUME_SCORE2, MDL_VOLUME_SCORE3,
            MDL_VOLUME_SCORE4, MDL_AVG
        ]

        for idx in range(5):
            fnDir = self.protocol._getExtraPath(OUTPUT_RADIAL_AVERAGES)
            lablmd = labellist[idx]
            if exists(fnDir):
                legends.append(list[idx])
                self._plotCurve(a, fnDir, lablmd)
                xplotter.showLegend(legends)
#         a.plot([self.minInv, self.maxInv],[self.resolutionThreshold.get(), self.resolutionThreshold.get()], color='black', linestyle='--')
        a.grid(True)
        views = []
        views.append(xplotter)
        return views
 def _showFSC(self, paramName=None):
     xplotter = XmippPlotter(windowTitle="FSC")
     a = xplotter.createSubPlot("FSC", "Frequency (1/A)", "FSC")
     legends = []
     for it in self._iterations:
         fnDir = self.protocol._getExtraPath("Iter%03d"%it)
         fnFSC = join(fnDir,"fsc.xmd")
         if exists(fnFSC):
             legends.append('Iter %d' % it)
             self._plotFSC(a, fnFSC)
             xplotter.showLegend(legends)
     a.plot([self.minInv, self.maxInv],[self.resolutionThreshold.get(), self.resolutionThreshold.get()], color='black', linestyle='--')
     a.grid(True)
     views = []
     views.append(xplotter)
     return views
 def _showFSC(self, paramName=None):
     xplotter = XmippPlotter(windowTitle="FSC")
     a = xplotter.createSubPlot("FSC", "Frequency (1/A)", "FSC")
     legends = []
     for it in self._iterations:
         fnDir = self.protocol._getExtraPath("Iter%03d"%it)
         fnFSC = join(fnDir,"fsc.xmd")
         if exists(fnFSC):
             legends.append('Iter %d' % it)
             self._plotFSC(a, fnFSC)
             xplotter.showLegend(legends)
     a.plot([self.minInv, self.maxInv],[self.resolutionThreshold.get(), self.resolutionThreshold.get()], color='black', linestyle='--')
     a.grid(True)
     views = []
     views.append(xplotter)
     return views