Skip to content
Snippets Groups Projects
Commit 9702af55 authored by Didi Hou's avatar Didi Hou Committed by Administrator
Browse files

add unit for color bar of the plots

parent 71e79703
No related branches found
No related tags found
No related merge requests found
......@@ -97,4 +97,5 @@ def plot_firing_rate_over_areas(M, data_path):
ax.set_ylabel('Area', size=13)
ax.set_xlabel('Time (ms)', size=13)
pl.colorbar(im)
\ No newline at end of file
cbar = pl.colorbar(im)
cbar.set_label('spikes/s', fontsize=13)
\ No newline at end of file
......@@ -67,7 +67,8 @@ def plot_time_averaged_population_rates(M, data_path, area_list=None, **keywords
if masked_matrix.mask[i, j]:
ax.text(j + 0.5, i + 0.5, 'X', va='center', ha='center', color='black', fontsize=23)
plt.colorbar(im)
cbar = plt.colorbar(im)
cbar.set_label('spikes/s', fontsize=13)
if 'output' in keywords:
plt.savefig(os.path.join(M.output_dir, '{}_rates.{}'.format(M.simulation.label,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment