Skip to content

Commit 0c6b490

Browse files
Update colorbar formatter.
1 parent fcb14ac commit 0c6b490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/render_efficiency_3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def load(filename):
8383
ax.yaxis.set_major_formatter(matplotlib.ticker.FormatStrFormatter('$2^{%d}$'))
8484
ax.zaxis.set_major_formatter(matplotlib.ticker.FuncFormatter(lambda x, _: '{:.0%}'.format(x)))
8585

86-
fig.colorbar(surf, shrink=0.5, aspect=5)
86+
fig.colorbar(surf, shrink=0.5, aspect=5, format=matplotlib.ticker.FuncFormatter(lambda x, _: '{:.0%}'.format(x)))
8787

8888
ax.set_xlabel("Task Granularity (ms)")
8989
ax.set_ylabel("Nodes")

0 commit comments

Comments
 (0)