def default_traits_view(self): base_view = Stats1DPlotParams.default_traits_view(self) return View(Item('variable_lim', label = "Variable\nLimits", editor = TupleEditor(editors = [TextEditor(auto_set = False, evaluate = float, format_func = lambda x: "" if x == None else str(x)), TextEditor(auto_set = False, evaluate = float, format_func = lambda x: "" if x == None else str(x))], labels = ["Min", "Max"], cols = 1)), Item('linestyle'), Item('marker'), Item('markersize', editor = TextEditor(auto_set = False), format_func = lambda x: "" if x == None else str(x)), Item('capsize', editor = TextEditor(auto_set = False), format_func = lambda x: "" if x == None else str(x)), Item('alpha'), Item('shade_error'), Item('shade_alpha'), base_view.content)
def default_traits_view(self): base_view = Stats1DPlotParams.default_traits_view(self) return View( Item('errwidth', editor=TextEditor(auto_set=False, format_func=lambda x: "" if x == None else str(x)), label="Error bar\nwidth"), Item('capsize', editor=TextEditor(auto_set=False, format_func=lambda x: "" if x == None else str(x)), label="Cap width"), base_view.content)