#!/usr/bin/env python3

import numpy as np               # for numerics
import matplotlib.pyplot as plt  # for plotting

class globalData:      # variables are static when not declared with 'self'
 dimX = 2              # x-dimension
 dimY = 3              # y-dimension
 dimZ = 2              # y-dimension

print("*******************")
print("global data example")
print("*******************")

yxArray = np.ones( (globalData.dimY, globalData.dimX) )
zyArray = np.ones( (globalData.dimZ, globalData.dimY) )
print('yxArray :\n',yxArray)
print('zyArray :\n',zyArray)
print('zy * yx :\n',np.matmul(zyArray,yxArray))       # matrix multiplication

print("****************")
print("plotting example")
print("****************")

nPoints = 400
xPoints = range(nPoints)
yPoints = [np.sin(0.01*np.pi*x) for x in xPoints]

plt.plot(xPoints, yPoints)
plt.show()
