2import matplotlib.pyplot
as plt
3from mpl_toolkits.mplot3d
import Axes3D
8sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__),
'../core')))
14arr = np.concatenate([np.zeros(n // 2), np.ones(n // 2)])
16similarity_vals = np.linspace(0, 1, n)
18AVals, simVals = np.meshgrid(similarity_vals, b_vals)
22TNVals = np.multiply(AVals, simVals)
26fig = plt.figure(figsize=(10, 7))
27ax = fig.add_subplot(111, projection=
'3d')
32ax.scatter(AVals, simVals, TNVals, c=
'blue', marker=
'.')
38ax.set_title(
"product t-norm")
40ax.set_xlabel(
"similarity (x,y)")
41ax.set_zlabel(
"T(similarity (x,y), A(y))")