ayushnoori commited on
Commit
c27bf27
·
1 Parent(s): 0856806

Update cmap

Browse files
Files changed (1) hide show
  1. pages/validate.py +1 -2
pages/validate.py CHANGED
@@ -12,7 +12,6 @@ from pathlib import Path
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,7 +63,7 @@ with st.spinner('Searching known relationships...'):
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()
 
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
  with st.spinner('Plotting known relationships...'):
64
 
65
  # Define a color map for different relations
66
+ color_map = plt.get_cmap('tab10')
67
 
68
  # Group by relation and create separate plots
69
  relations = edges_in_kg['Known Relation'].unique()