We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f72097 commit 8e22b26Copy full SHA for 8e22b26
braininventory/get.py
@@ -3,7 +3,25 @@
3
import json
4
from datetime import date
5
6
-
+import urllib.request
7
+import matplotlib.pyplot as plt
8
+
9
+def __get_general_modality_plot(df):
10
+ modality_counts = df['generalmodality'].value_counts()
11
12
+ plt.figure(figsize=(10,6))
13
+ color = plt.cm.tab20c.colors
14
15
+ ax = modality_counts.plot(kind='bar', color=color, edgecolor='black')
16
+ plt.xlabel("General Modality", fontsize=12)
17
+ plt.ylabel("Frequency", fontsize=12)
18
+ plt.title("Frequency of General Modality", fontsize=14)
19
+ plt.xticks(rotation=45, ha='right',fontsize=10)
20
+ plt.yticks(fontsize=10)
21
22
+ plt.tight_layout()
23
+ plt.show()
24
25
def today():
26
"""
27
Get today's snapshot of Brain Image Library.
0 commit comments