Skip to content

Commit

Permalink
Update join.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkohler committed Jan 26, 2024
1 parent 7d35349 commit 1bfb082
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/join.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@
last = wt.data.join([a, b], method="last", name="last")
min = wt.data.join([a, b], method="min", name="min")
max = wt.data.join([a, b], method="max", name="max")
sum = wt.data.join([a, b], method="sum", name="sum")
mean = wt.data.join([a, b], method="mean", name="mean")

# Plot the splits in columns
fig, gs = wt.artists.create_figure(nrows=4, cols=[1, 1])
for i, da in enumerate([a, b, first, last, min, max, sum, mean]):
for i, da in enumerate([a, b, first, last, min, max, mean]):
ax = plt.subplot(gs[i])
ax.pcolor(da, vmin=0, vmax=6)
wt.artists.corner_text(da.natural_name, ax=ax)
Expand Down

0 comments on commit 1bfb082

Please sign in to comment.