code: func NewPathFromYXData(data [][2]float64) *Path {
  	p := NewPathPreallocate(0, len(data))
  
  	for i := range data {
  		p.PointSet = append(p.PointSet, Point{data[i][1], data[i][0]})
  	}
  
  	return p
  }
docs: // NewPathFromYXData creates a path from a slice of [2]float64 values
  // representing [vertical, horizontal] type data, for example typical lat/lng data.