Exemple #1
0
func (w *Window) DrawPlot(x Array, y Array, props *AFCell) error {
	aferr := C.af_draw_plot(w.window, (C.af_array)(x._array), (C.af_array)(y._array), (*C.af_cell)(props))
	if aferr != 0 {
		return ErrDrawPlot
	}

	return nil
}
Exemple #2
0
func (w *Window) DrawPlot(x Array, y Array, props *Cell) error {
	return af_call(C.af_draw_plot(w.window, (C.af_array)(x.arr),
		(C.af_array)(y.arr), (*C.af_cell)(props)))
}