Skip to content

Commit

Permalink
set figure size
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Nov 19, 2024
1 parent 2f645bf commit 141deba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/plots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ else
time = ds["ocean_time"][:]
end

clf();
figure(figsize=(7,4))
pcolormesh(lon,lat,temp)
gca().set_aspect(1/cosd(mean(lat)))
colorbar();
Expand Down Expand Up @@ -102,7 +102,7 @@ v_r = cat(v[:,1:1], (v[:,2:end] .+ v[:,1:end-1])/2, v[:,end:end], dims=2);
## all sizes should be the same
size(u_r), size(v_r), size(mask_rho)

clf();
figure(figsize=(7,4))
pcolormesh(lon,lat,zeta)
colorbar();
## plot only a single arrow for r x r grid cells
Expand Down Expand Up @@ -180,7 +180,7 @@ savefig("temp_section1.png");
tempi = ROMS.model_interp3(lon,lat,z_r,temp,lon,lat,[-200])
mlon,mlat,mdata = GeoDatasets.landseamask(resolution='f', grid=1.25)

clf();
figure(figsize=(7,4))
pcolormesh(lon,lat,tempi[:,:,1])
colorbar();
ax = axis()
Expand Down

0 comments on commit 141deba

Please sign in to comment.