Skip to content

Commit

Permalink
remove manual setting of clims
Browse files Browse the repository at this point in the history
  • Loading branch information
fhagemann committed Nov 6, 2020
1 parent f77d03b commit a5cabe5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/PotentialSimulation/plot_recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,14 @@ end
ylims --> (g.z[1],g.z[end])
gr_ext::Array{T,1} = midpoints(get_extended_ticks(g.r))
gz_ext::Array{T,1} = midpoints(get_extended_ticks(g.z))
if minimum(sp.data[:,idx,:]) == maximum(sp.data[:,idx,:]) clims --> (sp.data[1,idx,1], sp.data[1,idx,1]+1) end #remove with Plots v1.7.4
midpoints(gr_ext), midpoints(gz_ext), sp.data[:,idx,:]'
elseif cross_section == :r
xguide --> "φ / °"
yguide --> "z / m"
ylims --> (g.z[1],g.z[end])
if minimum(sp.data[idx,:,:]) == maximum(sp.data[idx,:,:]) clims --> (sp.data[idx,1,1], sp.data[idx,1,1]+1) end #remove with Plots v1.7.4
g.φ, g.z, sp.data[idx,:,:]'
elseif cross_section == :z
projection --> :polar
if minimum(sp.data[:,:,idx]) == maximum(sp.data[:,:,idx]) clims --> (sp.data[1,1,idx], sp.data[1,1,idx]+1) end #remove with Plots v1.7.4
g.φ, g.r, sp.data[:,:,idx]
end
end
Expand Down Expand Up @@ -275,7 +272,6 @@ end
ylims --> (g.z[1],g.z[end])
gy_ext = midpoints(get_extended_ticks(g.y))
gz_ext = midpoints(get_extended_ticks(g.z))
if minimum(sp.data[idx,:,:]) == maximum(sp.data[idx,:,:]) clims --> (sp.data[idx,1,1], sp.data[idx,1,1]+1) end #remove with Plots v1.7.4
midpoints(gy_ext), midpoints(gz_ext), sp.data[idx,:,:]'
elseif cross_section == :y
aspect_ratio --> 1
Expand All @@ -285,7 +281,6 @@ end
ylims --> (g.z[1],g.z[end])
gx_ext = midpoints(get_extended_ticks(g.x))
gz_ext = midpoints(get_extended_ticks(g.z))
if minimum(sp.data[:,idx,:]) == maximum(sp.data[:,idx,:]) clims --> (sp.data[1,idx,1], sp.data[1,idx,1]+1) end #remove with Plots v1.7.4
midpoints(gx_ext), midpoints(gz_ext), sp.data[:,idx,:]'
elseif cross_section == :z
aspect_ratio --> 1
Expand All @@ -295,7 +290,6 @@ end
ylims --> (g.y[1],g.y[end])
gx_ext = midpoints(get_extended_ticks(g.x))
gy_ext = midpoints(get_extended_ticks(g.y))
if minimum(sp.data[:,:,idx]) == maximum(sp.data[:,:,idx]) clims --> (sp.data[1,1,idx], sp.data[1,1,idx]+1) end #remove with Plots v1.7.4
midpoints(gx_ext), midpoints(gy_ext), sp.data[:,:,idx]'
end
end
Expand Down

0 comments on commit a5cabe5

Please sign in to comment.