Skip to content

Commit 7e894c0

Browse files
committed
improve readability of large objects
1 parent b50c706 commit 7e894c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clography.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@
8686
colors = cm.rainbow(np.linspace(0, 1, len(stages)))
8787
for ts, info in data.iteritems():
8888
for stage in info.keys():
89-
ax.scatter(ts, stages[stage], s=info[stage]*scale, c=colors[stages[stage]], alpha=0.5)
89+
size=info[stage]*scale
90+
ax.scatter(ts, stages[stage], s=size, c=colors[stages[stage]], alpha=0.5)
91+
if size > 700:
92+
ax.scatter(ts, stages[stage], s=size*0.01, c='black', alpha=1, marker='_', lw=1)
9093

9194
plt.yticks(stages.values(), stages.keys())
9295

0 commit comments

Comments
 (0)