import matplotlib.pyplot as plt
import numpy as np
from leniax.kernel_functions import triangle
x = np.linspace(0., 1., 100)
m = 0.5
s = 0.1
params = np.array([m, s])
y = triangle(params, x)
plt.plot(x, y)
plt.axhline(y=0, color='grey', linestyle='dotted')
plt.title(r'Triangle: m=%.2f, s=%.2f'%(m, s))
plt.show()