# Create a Bezier curve with parameter t and a numpy array of inital points points1 of any dimension.
from Bezier import Bezier
import numpy as np
t_points = np.arange(0, 1, 0.01) #  Creates an iterable list from 0 to 1.
points1 = np.array([[0, 0], [0, 8], [5, 10], [9, 7], [4, 3]]) #  Creates an array of coordinates.
curve1 = Bezier.Curve(t_points, points1) #  Returns an array of coordinates.

# plot with matplotlib
import matplotlib.pyplot as plt
plt.figure()
plt.plot(
	curve1[:, 0],   # x-coordinates.
	curve1[:, 1]    # y-coordinates.
)
plt.plot(
	points1[:, 0],  # x-coordinates.
	points1[:, 1],  # y-coordinates.
	'ro:'           # Styling (red, circles, dotted).
)
plt.grid()
plt.show()
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence