func (plot Plot) Do() { // special initialization for timeformat, // may need a better place to put the code c.Timefmt(DefaultTimeFormat) Doers(plot).Do() }
func (s Axis) Do() { if s.Label.IsTime() { if old := c.Gtimefmt(); old != s.Label.TimeFormat { defer c.Timefmt(old) s.Label.Do() } } if s.Position&TOP != 0 { topAxis(&s) } if s.Position&LEFT != 0 { leftAxis(&s) } if s.Position&RIGHT != 0 { rightAxis(&s) } if s.Position&BOTTOM != 0 { bottomAxis(&s) } }
func (s TickLabel) Do() { if s.IsTime() { c.Timefmt(s.TimeFormat) } }
func TimeFormat(format string) { c.Timefmt(format) }