示例#1
0
文件: impl.go 项目: h12w/go-plplot
func (plot Plot) Do() {
	// special initialization for timeformat,
	// may need a better place to put the code
	c.Timefmt(DefaultTimeFormat)

	Doers(plot).Do()
}
示例#2
0
文件: box.go 项目: h12w/go-plplot
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)
	}
}
示例#3
0
文件: box.go 项目: h12w/go-plplot
func (s TickLabel) Do() {
	if s.IsTime() {
		c.Timefmt(s.TimeFormat)
	}
}
示例#4
0
文件: impl.go 项目: h12w/go-plplot
func TimeFormat(format string) {
	c.Timefmt(format)
}