Skip to content

Commit

Permalink
Merge pull request #61 from mcabbott/log
Browse files Browse the repository at this point in the history
Use NaNMath log functions
  • Loading branch information
mkborregaard authored Jul 28, 2020
2 parents 22748cf + 95d4e26 commit 624cfeb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions RecipesPipeline/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version = "0.1.11"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
NaNMath = "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3"
PlotUtils = "995b91a9-d308-5afd-9ec6-746e21dbc043"
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"

Expand Down
1 change: 1 addition & 0 deletions RecipesPipeline/src/RecipesPipeline.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import RecipesBase
import RecipesBase: @recipe, @series, RecipeData, is_explicit
import PlotUtils # tryrange and adapted_grid
using Dates
using NaNMath

export recipe_pipeline!
# Plots relies on these:
Expand Down
2 changes: 1 addition & 1 deletion RecipesPipeline/src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ needs_3d_axes(plotattributes::AbstractDict) =
# ## Scales
# --------------------------------

const SCALE_FUNCTIONS = Dict{Symbol, Function}(:log10 => log10, :log2 => log2, :ln => log)
const SCALE_FUNCTIONS = Dict{Symbol, Function}(:log10 => NaNMath.log10, :log2 => NaNMath.log2, :ln => NaNMath.log)
const INVERSE_SCALE_FUNCTIONS =
Dict{Symbol, Function}(:log10 => exp10, :log2 => exp2, :ln => exp)

Expand Down

0 comments on commit 624cfeb

Please sign in to comment.