Skip to content

Commit db8baee

Browse files
committed
fix visualization
1 parent c2561f8 commit db8baee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

applications/ColossalChat/visualization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
yticks.append(y_val)
7575
yticklabels.append(f"{actor}:{func}")
7676
for start, end in intervals:
77-
if end - start < 6:
78-
end = start + 6 # Ensure minimum length of 100ms
77+
if end - start < 1:
78+
end = start + 1 # Ensure all lines are at least 3 units long
7979
ax.plot(
8080
[start, end],
8181
[y_val, y_val],
@@ -96,5 +96,5 @@
9696
ax.legend(unique.values(), unique.keys())
9797
plt.tight_layout()
9898
plt.grid(True)
99-
plt.savefig(args.visualization)
99+
plt.savefig(args.visualization, dpi=600) # Increase dpi for higher resolution
100100
print(f"Plot saved as {args.visualization}")

0 commit comments

Comments
 (0)