Beispiel #1
0
func AddPoints(ih *iup.Ihandle, index int, x, y []float64) {
	count := len(x)
	cX := float64ArrayToC(x)
	cY := float64ArrayToC(y)

	C.IupPPlotAddPoints(ih.C(), C.int(index), &cX[0], &cY[0], C.int(count))
}
Beispiel #2
0
func (h *IupPPlot) InsertAddPoints(index int, x, y []float32) {
	count := len(x)
	if len(x) > len(y) {
		count = len(y)
	}
	C.IupPPlotAddPoints(toNative(h), C.int(index), (*C.float)(unsafe.Pointer(&x[0])), (*C.float)(unsafe.Pointer(&y[0])), C.int(count))
}