From 30d172e386c6dec26f6c82d59071e313e268955d Mon Sep 17 00:00:00 2001 From: john verzani <jverzani@gmail.com> Date: Tue, 21 May 2024 20:40:55 -0400 Subject: [PATCH] clean up warnings (#69) --- Project.toml | 2 +- ext/CalculusWithJuliaPlotsExt.jl | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index f1a1045..1d2769c 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "CalculusWithJulia" uuid = "a2e0e22d-7d4c-5312-9169-8b992201a882" -version = "0.2.5" +version = "0.2.6" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" diff --git a/ext/CalculusWithJuliaPlotsExt.jl b/ext/CalculusWithJuliaPlotsExt.jl index 51ebe82..47ffff3 100644 --- a/ext/CalculusWithJuliaPlotsExt.jl +++ b/ext/CalculusWithJuliaPlotsExt.jl @@ -1,9 +1,7 @@ module CalculusWithJuliaPlotsExt using CalculusWithJulia -import CalculusWithJulia: - ClosedInterval, - find_colors, identify_colors +import CalculusWithJulia: ClosedInterval import CalculusWithJulia: plotif, trimplot, signchart, plot_polar, plot_polar!, @@ -59,7 +57,7 @@ function plotif(f, g, a::Real, b::Real; kwargs...) # get shading - xs, ys = unzip(x -> g(x) ≥ 0 ? f(x) : NaN, a, b) + xs, ys = unzip(x -> g(x) ≥ -Base.rtoldefault(Float64) ? f(x) : NaN, a, b) ls,rs = eltype(xs)[], eltype(xs)[] left = true