Example #1
0
 def set_legend_position(self, pos):
     jpos = LegendPosition.NONE
     try :
         if pos != None:
             jpos = LegendPosition.valueOf(pos.upper())
     except:
         print 'failed to parse ' + str(pos)
     self.pv.getPlot().setLegendPosition(jpos)
Example #2
0
File: gplot.py Project: nxi/gumtree
 def set_legend_position(self, pos):
     jpos = LegendPosition.NONE
     try:
         if pos != None:
             jpos = LegendPosition.valueOf(pos.upper())
     except:
         print 'failed to parse ' + str(pos)
     self.pv.getPlot().setLegendPosition(jpos)
Example #3
0
File: wplot.py Project: nxi/gumtree
 def set_legend_position(self, pos):
     if self.ndim == 1:
         jpos = LegendPosition.NONE
         try :
             if pos != None:
                 jpos = LegendPosition.valueOf(pos.upper())
         except:
             print 'failed to parse ' + str(pos)
         self.cache.setLegendPosition(jpos)
         self.update()