def optimize_xtick(self, sort="c"): if sort == "f": self.find_opt_f() adjusted_cycle = self.get_adjusted_cycle(self.f_opt) else: self.find_opt_c() adjusted_cycle = self.get_adjusted_cycle(self.c_opt) self.xtick = rescale_time(adjusted_cycle) self.xtick_back = rescale_to_normal(self.xtick)
def set_xtick(self,var): adjusted_cycle = self.get_adjusted_cycle(var) self.xtick = rescale_time(adjusted_cycle) self.xtick_back = rescale_to_normal(self.xtick)