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 10540d2 commit 6752badCopy full SHA for 6752bad
pysteps/visualization/precipfields.py
@@ -191,13 +191,11 @@ def plot_precip_field(
191
cbar.ax.set_yticklabels(clevs_str)
192
193
if ptype == "intensity":
194
- cbar.ax.set_title(units, fontsize=10)
195
- cbar.set_label("Precipitation intensity")
+ cbar.set_label(f"Precipitation intensity [{units}]")
196
elif ptype == "depth":
197
198
- cbar.set_label("Precipitation depth")
+ cbar.set_label(f"Precipitation depth [{units}]")
199
else:
200
- cbar.set_label("P(R > %.1f %s)" % (probthr, units))
+ cbar.set_label(f"P(R > {probthr:.1f} {units})")
201
202
if geodata is None or axis == "off":
203
ax.xaxis.set_ticks([])
0 commit comments