예제 #1
0
	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)
예제 #2
0
	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)