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)
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)
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()