Skip to content

Commit

Permalink
fix: reintroduce vmin, vmax into get_ticks; addresses MakieOrg#4441
Browse files Browse the repository at this point in the history
  • Loading branch information
thomvet committed Oct 2, 2024
1 parent 59456d3 commit 22a32db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/makielayout/lineaxis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,7 @@ get_tickvalues(lt::LinearTicks, vmin, vmax) = locateticks(vmin, vmax, lt.n_ideal
Convert tickvalues to a float array by default.
"""
get_tickvalues(tickvalues, vmin, vmax) = convert(Vector{Float64}, tickvalues)

get_tickvalues(tickvalues, vmin, vmax) = filter(p -> p >= vmin && p <= vmax, convert(Vector{Float64}, tickvalues))

# function get_tickvalues(l::LogitTicks, vmin, vmax)
# ticks_scaled = get_tickvalues(l.linear_ticks, identity, logit_10(vmin), logit_10(vmax))
Expand Down

0 comments on commit 22a32db

Please sign in to comment.