Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Data for Beta Amplitude and HiBeta Amplitude for each site (CZ, O1, F3, F4, FZ)
- sites = ['CZ', 'O1', 'F3', 'F4', 'FZ']
- beta_amplitudes = [5.50, 7.90, 7.63, 6.85, 5.50]
- hibeta_amplitudes = [2.79, 7.90, 7.63, 6.85, 2.79]
- # Plot comparison of Beta and HiBeta levels across sites
- fig, ax = plt.subplots(figsize=(8, 6))
- index = np.arange(len(sites))
- bar_width = 0.35
- # Bar plots for Beta and HiBeta amplitudes
- bar1 = ax.bar(index, beta_amplitudes, bar_width, label='Beta Amplitude')
- bar2 = ax.bar(index + bar_width, hibeta_amplitudes, bar_width, label='HiBeta Amplitude')
- # Labels and title
- ax.set_xlabel('Sites', fontsize=12)
- ax.set_ylabel('Amplitude', fontsize=12)
- ax.set_title('Comparison of Beta and HiBeta Amplitudes Across Sites', fontsize=14)
- ax.set_xticks(index + bar_width / 2)
- ax.set_xticklabels(sites)
- ax.legend()
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement