Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #72 from JuliaPlots/sd-jl1.1
Browse files Browse the repository at this point in the history
fixes for julia 1.1
  • Loading branch information
SimonDanisch authored Jan 22, 2019
2 parents 75687fe + b4832a9 commit 7b4cc26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/basic_recipes/axis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b4cc26

Please sign in to comment.