Example #1
0
func (h *IupPPlot) InsertPoints(index, sample_index int, x, y []float32) {
	count := len(x)
	if len(x) > len(y) {
		count = len(y)
	}
	C.IupPPlotInsertPoints(toNative(h), C.int(index), C.int(sample_index), (*C.float)(unsafe.Pointer(&x[0])), (*C.float)(unsafe.Pointer(&y[0])), C.int(count))
}
Example #2
0
File: pplot.go Project: DaviWei/iup
func InsertPoints(ih *iup.Ihandle, index, sample_index int, x, y []float64) {
	count := len(x)
	cX := float64ArrayToC(x)
	cY := float64ArrayToC(y)

	C.IupPPlotInsertPoints(ih.C(), C.int(index), C.int(sample_index), &cX[0], &cY[0],
		C.int(count))
}