Skip to content

Commit 83304c7

Browse files
author
Jon Vegard Venås
committed
Fix depricated function from Makie
1 parent 71eecfb commit 83304c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils_GUI/topo_axis_utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function pixel_to_data(gui::GUI, pixel_size::Real)
1010
y_range::Float64 = vars[:ylimits][2] - vars[:ylimits][1]
1111

1212
# Get the widths of the axis
13-
plot_widths::Vec2{Int64} = pixelarea(get_ax(gui, :topo).scene)[].widths
13+
plot_widths::Vec2{Int64} = viewport(get_ax(gui, :topo).scene)[].widths
1414

1515
# Calculate the conversion factor
1616
x_factor::Float64 = x_range / plot_widths[1]
@@ -55,7 +55,7 @@ function new_global_delta_h(gui::GUI)
5555
vars = get_vars(gui)
5656
axes = get_axes(gui)
5757
xyWidths::Vec = axes[:topo].finallimits[].widths
58-
plot_widths::Vec2{Int64} = pixelarea(axes[:topo].scene)[].widths
58+
plot_widths::Vec2{Int64} = viewport(axes[:topo].scene)[].widths
5959
vars[:Δh] = maximum([
6060
maximum(Vector(0.5 * vars[:Δh_px] * xyWidths ./ plot_widths)),
6161
minimum([

0 commit comments

Comments
 (0)