We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2561f8 commit db8baeeCopy full SHA for db8baee
applications/ColossalChat/visualization.py
@@ -74,8 +74,8 @@
74
yticks.append(y_val)
75
yticklabels.append(f"{actor}:{func}")
76
for start, end in intervals:
77
- if end - start < 6:
78
- end = start + 6 # Ensure minimum length of 100ms
+ if end - start < 1:
+ end = start + 1 # Ensure all lines are at least 3 units long
79
ax.plot(
80
[start, end],
81
[y_val, y_val],
@@ -96,5 +96,5 @@
96
ax.legend(unique.values(), unique.keys())
97
plt.tight_layout()
98
plt.grid(True)
99
-plt.savefig(args.visualization)
+plt.savefig(args.visualization, dpi=600) # Increase dpi for higher resolution
100
print(f"Plot saved as {args.visualization}")
0 commit comments