Skip to content

Commit

Permalink
PGFPlotsX: fix latexification
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Jul 8, 2022
1 parent 2ab3e9b commit cceac5d
Show file tree
Hide file tree
Showing 3 changed files with 450 additions and 559 deletions.
3 changes: 1 addition & 2 deletions src/axes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function optimal_ticks_and_labels(ticks, alims, scale, formatter)
end

# return (continuous_values, discrete_values) for the ticks on this axis
function get_ticks(sp::Subplot, axis::Axis; update = true)
function get_ticks(sp::Subplot, axis::Axis; update = true, formatter = axis[:formatter])
if update || !haskey(axis.plotattributes, :optimized_ticks)
dvals = axis[:discrete_values]
ticks = _transform_ticks(axis[:ticks])
Expand All @@ -237,7 +237,6 @@ function get_ticks(sp::Subplot, axis::Axis; update = true)
cvals = axis[:continuous_values]
alims = axis_limits(sp, axis[:letter])
scale = axis[:scale]
formatter = axis[:formatter]
get_ticks(ticks, cvals, dvals, alims, scale, formatter)
end
end
Expand Down
Loading

0 comments on commit cceac5d

Please sign in to comment.