Spaces:
Running
Running
Commit
·
0856806
1
Parent(s):
5ab8a2a
Update matplotlib import
Browse files- pages/validate.py +2 -1
pages/validate.py
CHANGED
@@ -12,6 +12,7 @@ from pathlib import Path
|
|
12 |
import matplotlib.pyplot as plt
|
13 |
plt.rcParams['font.sans-serif'] = 'Arial'
|
14 |
import matplotlib.colors as mcolors
|
|
|
15 |
|
16 |
# Custom and other imports
|
17 |
import project_config
|
@@ -63,7 +64,7 @@ with st.spinner('Searching known relationships...'):
|
|
63 |
with st.spinner('Plotting known relationships...'):
|
64 |
|
65 |
# Define a color map for different relations
|
66 |
-
color_map =
|
67 |
|
68 |
# Group by relation and create separate plots
|
69 |
relations = edges_in_kg['Known Relation'].unique()
|
|
|
12 |
import matplotlib.pyplot as plt
|
13 |
plt.rcParams['font.sans-serif'] = 'Arial'
|
14 |
import matplotlib.colors as mcolors
|
15 |
+
import matplotlib.cm as cm
|
16 |
|
17 |
# Custom and other imports
|
18 |
import project_config
|
|
|
64 |
with st.spinner('Plotting known relationships...'):
|
65 |
|
66 |
# Define a color map for different relations
|
67 |
+
color_map = cm.get_cmap('tab10')
|
68 |
|
69 |
# Group by relation and create separate plots
|
70 |
relations = edges_in_kg['Known Relation'].unique()
|