Skip to content

Commit 749a7f2

Browse files
Update plot_rossbywave.jl
fixed coordinate arrays for v, w
1 parent 75cc0cb commit 749a7f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Project2/plot_rossbywave.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ anim = @animate for (i, iter) in enumerate(iterations)
5353
c_title = @sprintf("c, t = %s days", round(t/1day));
5454

5555
u_xy_plot = Plots.heatmap(xu/1e3, yu/1e3, u_xy'; color = :balance, xlabel = "x (km)", ylabel = "y (km)", aspect_ratio = :equal, title=u_title, fontsize=14);
56-
v_xy_plot = Plots.heatmap(xu/1e3, yu/1e3, v_xy'; color = :balance, xlabel = "x (km)", ylabel = "y (km)", aspect_ratio = :equal, title=v_title, fontsize=14);
57-
w_xy_plot = Plots.heatmap(xu/1e3, yu/1e3, w_xy'; color = :balance, xlabel = "x (km)", ylabel = "y (km)", aspect_ratio = :equal, title=w_title, fontsize=14);
56+
v_xy_plot = Plots.heatmap(xv/1e3, yv/1e3, v_xy'; color = :balance, xlabel = "x (km)", ylabel = "y (km)", aspect_ratio = :equal, title=v_title, fontsize=14);
57+
w_xy_plot = Plots.heatmap(xw/1e3, yw/1e3, w_xy'; color = :balance, xlabel = "x (km)", ylabel = "y (km)", aspect_ratio = :equal, title=w_title, fontsize=14);
5858
c_xy_plot = Plots.heatmap(xc/1e3, yc/1e3, c_xy'; color = :balance, xlabel = "x (km)", ylabel = "y (km)", aspect_ratio = :equal, title=c_title, fontsize=14);
5959

6060
plot(u_xy_plot, c_xy_plot, layout = (1, 2), size = (1300, 600))

0 commit comments

Comments
 (0)