def plotComparisonWeightings(self, apertureRadiusIndex=0):
        """
        Plot histograms visualizing the relative weightings of the comparison
        stars used to produce the "mean comparison star", from which the
        light curve is calculated.

        Parameters
        ----------
        apertureRadiusIndex : int, optional (default=0)
            Index of the aperture radius list corresponding to the aperture radius
            from which to produce the plot.

        """
        plt.ion()
        weights = self.comparisonStarWeights[apertureRadiusIndex]
        weights = np.sort(weights,axis=1)
        width = 0.5
        indices = weights[0,:]
        coefficients = weights[1,:]
        fig = plt.figure(num=None, figsize=(10, 8), facecolor='w',edgecolor='k')
        fig.canvas.set_window_title('OSCAAR')
        ax = fig.add_subplot(111)
        ax.set_xlim([0,len(indices)+1])
        ax.set_xticks(indices+width/2)
        ax.set_xticklabels(["Star "+str(i) for i in range(len(indices))])
        ax.set_xlabel('Comparison Star')
        ax.set_ylabel('Normalized Weighting')
        ax.set_title('Comparison Star Weights into the Composite Comparison Star for aperture radius %s' \
                     % self.apertureRadii[apertureRadiusIndex])
        ax.axhline(xmin=0,xmax=1,y=1.0/len(indices),linestyle=':',color='k')
        ax.bar(indices,coefficients,width,color='w')
        plt.ioff()
        plt.show()
dataset/ETHPy150Open OSCAAR/OSCAAR/oscaar/dataBank.py/dataBank.plotComparisonWeightings/original