Skip to content

Commit 4761bb6

Browse files
committed
fix visualization error
1 parent 76767e6 commit 4761bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

niaarm/visualize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,6 @@ def _ribbon(x, z, width=0.5):
102102
colors = scalar_map.to_rgba(zz)
103103
ax.plot_surface(xx, yy, zz, rstride=1, cstride=1, facecolors=colors)
104104

105-
fig.colorbar(scalar_map, shrink=0.5, aspect=10)
105+
fig.colorbar(scalar_map, shrink=0.5, aspect=10, ax=ax)
106106

107107
return fig, ax

0 commit comments

Comments
 (0)