Commits

James Morrison committed 8e0eeb2

removed prints, and simplified legend labels

Comments (0)

Files changed (1)

 
         def get_labels():
             labels = np.copy(self._info['bins'])
-            print labels
-            labels = ["[%.1f : %0.1f[" %(labels[i], labels[i+1]) \
+            labels = ["%.1f : %0.1f" %(labels[i], labels[i+1]) \
                       for i in range(len(labels)-1)]
             return labels
 
         null = kwargs.pop('handles', None)
         handles = get_handles()
         labels = get_labels()
-        print handles
-        labels = [x[1:-1] for x in labels]
-        print labels
         self.legend_ = matplotlib.legend.Legend(self, handles, labels,
                                                 loc, **kwargs)
         return self.legend_
 
         bins, nbins, nsector, colors, angles, kwargs = self._init_plot(dir, var,
                                                                       **kwargs)
-        print bins
         null = kwargs.pop('facecolor', None)
         edgecolor = kwargs.pop('edgecolor', None)
         if edgecolor is not None: