Пример #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)
Пример #2
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)
Пример #3
0
 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()