Skip to content

Commit

Permalink
Merge pull request #4832 from lch/fix-framestyle-box
Browse files Browse the repository at this point in the history
Fix border ticks of framestyle :box
  • Loading branch information
BeastyBlacksmith authored Oct 13, 2023
2 parents 10ee593 + 13d4b71 commit 52183bd
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions 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,6 +917,21 @@ 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
Expand Down

0 comments on commit 52183bd

Please sign in to comment.