Skip to content

Commit

Permalink
Fix border tick of framestyle :box
Browse files Browse the repository at this point in the history
  • Loading branch information
lch committed Oct 10, 2023
1 parent 10ee593 commit 8d1727e
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion src/axes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,21 @@ function axis_drawing_info(sp, letter)
grid_factor_2d[] / ax_length,
ax[:tick_direction] !== :none,
)
if sp[:framestyle] === :box
add_major_or_minor_segments_2d(
sp,
ax,
oax,
reverse(oas),
oamM,
first(ticks),
ax[:grid],
tick_segments,
grid_segments,
grid_factor_2d[] / ax_length,
ax[:tick_direction] !== :none,
)
end

# add minor grid segments
if ax[:minorticks] (:none, nothing, false) || ax[:minorgrid]
Expand All @@ -902,10 +917,25 @@ function axis_drawing_info(sp, letter)
grid_factor_2d[] / 2ax_length,
true,
)
if sp[:framestyle] === :box
add_major_or_minor_segments_2d(
sp,
ax,
oax,
reverse(oas),
oamM,
minor_ticks,
ax[:minorgrid],
tick_segments,
minorgrid_segments,
grid_factor_2d[] / 2ax_length,
true,
)
end
end
end
end

Check warning on line 938 in src/axes.jl

View workflow job for this annotation

GitHub Actions / check

[JuliaFormatter] reported by reviewdog 🐶 Raw Output: src/axes.jl:938:- src/axes.jl:938:+
(
ticks = ticks,
segments = segments,
Expand Down

0 comments on commit 8d1727e

Please sign in to comment.