Skip to content
Snippets Groups Projects
Commit 3ecee478 authored by Alexandros Asonitis's avatar Alexandros Asonitis
Browse files

Added plots of documentation

parent 4b0c0a9f
No related branches found
No related tags found
No related merge requests found
hp4155/Documentation/Pulse.png

19.5 KiB

hp4155/Documentation/VAR1 Plot.png

7.9 KiB

import matplotlib.pyplot as plt
import numpy as np
x = np.arange(10)
y = x/10
plt.xticks([])
plt.yticks([])
plt.xlabel('time')
plt.ylabel('value')
plt.step(x,y,where='post')
plt.title('How VAR1 works')
plt.show()
\ No newline at end of file
hp4155/Documentation/VAR2 plot.png

10.7 KiB

import matplotlib.pyplot as plt
import numpy as np
x = np.arange(1,21)
y1 = np.array([1,2,3,4,5])
y1 = np.tile(y1,4)
y2 = np.array([10,12,14,16])
y2 = np.repeat(y2, 5)
plt.step(x,y1, where='post',label ='VAR1')
plt.step(x,y2,where = 'post',label = 'VAR2')
plt.xticks([])
plt.yticks([])
plt.xlabel('time')
plt.ylabel('value')
plt.legend()
plt.title("How VAR2 Works")
plt.show()
\ No newline at end of file
hp4155/Documentation/VARD Plot.png

10.1 KiB

import matplotlib.pyplot as plt
import numpy as np
x = np.arange(1,6)
y1 = x
y2 = 3*y1+1
plt.step(x,y1, where='post',label ='VAR1')
plt.step(x,y2,where = 'post',label = 'VARD')
plt.xticks([])
plt.yticks([])
plt.xlabel('time')
plt.ylabel('value')
plt.legend()
plt.title("How VARD Works")
plt.show()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment