hamedbabaeigiglou commited on
Commit
7d85268
·
verified ·
1 Parent(s): 1e9cf06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -14
app.py CHANGED
@@ -35,6 +35,10 @@ st.markdown(
35
  unsafe_allow_html=True
36
  )
37
 
 
 
 
 
38
  # Create a container at the top
39
  with st.container():
40
  st.markdown(
@@ -48,16 +52,13 @@ with st.container():
48
  }
49
  </style>
50
  <div class="logo-container">
51
- <img src="https://raw.githubusercontent.com/sciknoworg/OntoLearner/main/images/logo.png" width="220">
52
  </div>
53
  """,
54
  unsafe_allow_html=True
55
  )
 
56
 
57
-
58
- st.title("OntoLearner Benchmark – Ontology Metrics Dashboard")
59
-
60
- # st.markdown("---")
61
  # st.subheader("ℹ️ About OntoLearner")
62
  st.markdown(
63
  """
@@ -65,7 +66,7 @@ st.markdown(
65
  principles to generate OWL ontologies with high interpretability and consistency.
66
  """
67
  )
68
-
69
  # =====================
70
  # LOAD DATA
71
  # =====================
@@ -90,19 +91,22 @@ ax = sns.barplot(
90
  y="count",
91
  palette="viridis"
92
  )
 
 
 
93
  for i, row in domain_stats.iterrows():
94
  ax.text(
95
- i,
96
  row["count"] + 0.02 * domain_stats["count"].max(),
97
- f"{row['percentage']:.1f}%",
98
  ha="center",
99
- fontsize=10,
100
- fontweight="bold"
101
  )
102
- plt.title("Number and Percentage of Ontologies per Domain", fontsize=16)
103
- plt.xlabel("Domain", fontsize=14)
104
- plt.ylabel("Number of Ontologies", fontsize=14)
105
- plt.xticks(rotation=45, ha="right")
 
106
  plt.tight_layout()
107
  st.pyplot(fig)
108
 
 
35
  unsafe_allow_html=True
36
  )
37
 
38
+
39
+
40
+ st.title("OntoLearner Benchmark – Ontology Metrics Dashboard")
41
+
42
  # Create a container at the top
43
  with st.container():
44
  st.markdown(
 
52
  }
53
  </style>
54
  <div class="logo-container">
55
+ <img src="https://raw.githubusercontent.com/sciknoworg/OntoLearner/main/images/logo.png" width="300">
56
  </div>
57
  """,
58
  unsafe_allow_html=True
59
  )
60
+
61
 
 
 
 
 
62
  # st.subheader("ℹ️ About OntoLearner")
63
  st.markdown(
64
  """
 
66
  principles to generate OWL ontologies with high interpretability and consistency.
67
  """
68
  )
69
+ st.markdown("---")
70
  # =====================
71
  # LOAD DATA
72
  # =====================
 
91
  y="count",
92
  palette="viridis"
93
  )
94
+ ax.set_xlabel("")
95
+ ax.set_ylabel("")
96
+
97
  for i, row in domain_stats.iterrows():
98
  ax.text(
99
+ i,
100
  row["count"] + 0.02 * domain_stats["count"].max(),
101
+ f"{row['count']}\n({row['percentage']:.1f}%)",
102
  ha="center",
103
+ fontsize=9,
 
104
  )
105
+
106
+ plt.title("Number and Percentage of Ontologies per Domain", fontsize=14)
107
+ plt.xlabel("Domain", fontsize=12)
108
+ plt.ylabel("Number of Ontologies", fontsize=12)
109
+ plt.xticks(rotation=90, ha="right")
110
  plt.tight_layout()
111
  st.pyplot(fig)
112