To evaluate the visual stimuli we will import the following libraries:
from Stimuli_visual_pattern import *
import numpy as np
import matplotlib.pyplot as plt
Noisy bars
stimuli = noisy_alternating_bar(intensity =0.0075)
t = list(np.arange(0, 1500, 0.2))
X, Y = np.meshgrid(range(600), range(775))
intervals = np.linspace(1,max(t),10)
for i in intervals:
plt.figure()
a = evaluate_stimuli_pattern(t[int(i)], stimuli, 600, 775)
plt.title(i)
plt.contourf(X, Y, a, cmap = 'gist_gray', interpolation='nearest')