Skip to content

Commit 910a1d9

Browse files
authored
Merge pull request #52 from SWxTREC/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 94a6085 + 5e79dd8 commit 910a1d9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ci:
33
autoupdate_schedule: 'quarterly'
44
repos:
55
- repo: https://github.com/astral-sh/ruff-pre-commit
6-
rev: 'v0.3.3'
6+
rev: 'v0.5.0'
77
hooks:
88
- id: ruff
99
args: [--fix]

examples/plot_surface_animation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@
7373
def update_surface(t):
7474
date_string = dates[t].astype("O").strftime("%H:%M")
7575
title.set_text(f"{date_string}")
76-
time_line.set_xdata(dates[t])
76+
time_line.set_xdata([dates[t]])
7777
mesh.set_array(output[t, :, :, i].T)
78-
sun.set_data(sun_loc[t], 0)
78+
sun.set_data([sun_loc[t]], [0])
7979

8080

8181
ani = FuncAnimation(fig, update_surface, frames=range(ndates), interval=25)

examples/plot_version_diff_surface.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
fig, axarr = plt.subplots(nrows=3, ncols=3, constrained_layout=True, figsize=(8, 6))
5050
xx, yy = np.meshgrid(lons, lats)
5151
norm = mpl.colors.Normalize(-50, 50)
52-
cmap = mpl.cm.get_cmap("RdBu_r")
52+
cmap = mpl.colormaps["RdBu_r"]
5353
for i, ax in enumerate(axarr.flatten()):
5454
mesh = ax.pcolormesh(xx, yy, diff[:, :, i].T, shading="auto", norm=norm, cmap=cmap)
5555
ax.set_title(f"{variables[i]}")

0 commit comments

Comments
 (0)