Skip to content

Commit

Permalink
fix: specify the axes for colorbar
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanideCN committed Jul 17, 2024
1 parent a6df711 commit 830aeab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinrad/visualize/rhi.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _plot(self):
plt.xticks(np.array([0, 0.2, 0.4, 0.6, 0.8, 1]) * cor_max, ticks)
plt.ylabel("Height (km)", **plot_kw) ## 修改于2019-01-22 By WU Fulang
sm = ScalarMappable(norm=norm, cmap=cmap)
plt.colorbar(sm)
plt.colorbar(sm, ax=plt.gca())

def __call__(self, fpath: str):
if os.path.isdir(fpath):
Expand Down

0 comments on commit 830aeab

Please sign in to comment.