Skip to content

Commit b7aa96c

Browse files
committed
better comments in doc examples
1 parent 3966075 commit b7aa96c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

examples/plot_benchmark_custom.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -184,15 +184,6 @@ def benchmark_radius_clustering():
184184
fig.suptitle("Benchmark of Radius Clustering Solvers", fontsize=16)
185185

186186
axs['time'].set_yscale('log') # Use logarithmic scale for better visibility
187-
#for algo, algo_results in results.items():
188-
# Plot execution time
189-
# axs['time'].plot(
190-
# DATASETS.keys(),
191-
# algo_results["time"],
192-
# marker='o',
193-
# label=algo,
194-
# )
195-
# Plot number of clusters
196187

197188
algorithms = list(results.keys())
198189
dataset_names = list(DATASETS.keys())
@@ -205,7 +196,6 @@ def benchmark_radius_clustering():
205196
# Calculate position for each bar in the group to center them
206197
position = x_indices - (n_algos * bar_width / 2) + (i * bar_width) + bar_width / 2
207198
axs['time'].bar(position, times, bar_width, label=algo)
208-
# --- End of change ---
209199

210200
for i, (name, (dataset, _)) in enumerate(DATASETS.items()):
211201
axs[name].bar(
@@ -227,7 +217,7 @@ def benchmark_radius_clustering():
227217
axs['time'].set_title("Execution Time (log scale)")
228218
axs['time'].set_xlabel("Datasets")
229219
axs['time'].set_ylabel("Time (seconds)")
230-
axs['time'].set_xticks(x_indices) # Set tick positions to be at the center of the groups
220+
axs['time'].set_xticks(x_indices)
231221
axs['time'].set_xticklabels(dataset_names)
232222
axs['time'].legend(title="Algorithms")
233223
plt.tight_layout()

0 commit comments

Comments
 (0)