From b4832a985a74b791fea7d4fadf7ade33d0896680 Mon Sep 17 00:00:00 2001 From: SimonDanisch <sdanisch@gmail.com> Date: Tue, 22 Jan 2019 18:25:50 +0100 Subject: [PATCH] fixes for julia 1.1 --- src/basic_recipes/axis.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/basic_recipes/axis.jl b/src/basic_recipes/axis.jl index bb8e5411d..5054afbf9 100644 --- a/src/basic_recipes/axis.jl +++ b/src/basic_recipes/axis.jl @@ -487,11 +487,11 @@ function draw_axis3d(textbuffer, linebuffer, limits, ranges, labels, args...) N = 3 start!(textbuffer); start!(linebuffer) - ranges_ticks = zip.(ranges, labels) + ranges_ticks = Pair.(ranges, labels) mini, maxi = first.(limits), last.(limits) - ranges = map(i-> [mini[i]; ranges_ticks[i].a; maxi[i]], 1:3) - ticklabels = map(x-> [""; x.b; ""], ranges_ticks) + ranges = map(i-> [mini[i]; first(ranges_ticks[i]); maxi[i]], 1:3) + ticklabels = map(x-> [""; last(x); ""], ranges_ticks) origin = Point{N, Float32}(mini) limit_widths = maxi .- mini % = minimum(limit_widths) / 100 # percentage