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

Commit

Permalink
Merge branch 'as/whyaxis2d' into sd/bbs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Mar 24, 2020
2 parents 69dbddf + 43d7dc2 commit 1c12ffe
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/basic_recipes/axis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,9 @@ function draw_titles(
textcolor, textsize, rotation, align, font,
title
)
tickspace_x = maximum(map(yticks) do tick
str = last(tick)
tick_bb = text_bb(str, to_font(tickfont[2]), tick_size[2])
widths(tick_bb)[1]
end)
tickspace_x = widths(text_bb(
last(first(yticks)), to_font(tickfont[2]), tick_size[2]
))[1]

tickspace_y = widths(text_bb(
last(first(xticks)), to_font(tickfont[1]), tick_size[1]
Expand Down

0 comments on commit 1c12ffe

Please sign in to comment.