Esempio n. 1
0
func (w *Window) DrawHist(x Array, minval, maxval float64, props AFCell) error {
	aferr := C.af_draw_hist(w.window, (C.af_array)(x._array), C.double(minval), C.double(maxval), (*C.af_cell)(&props))
	if aferr != 0 {
		return ErrDrawHist
	}
	return nil
}
Esempio n. 2
0
func (w *Window) DrawHist(x Array, minval, maxval float64, props Cell) error {
	return af_call(C.af_draw_hist(w.window, (C.af_array)(x.arr),
		C.double(minval), C.double(maxval), (*C.af_cell)(&props)))
}