From 87721b5be61f79dfe68d452b0a48f0f3847dad9b Mon Sep 17 00:00:00 2001 From: pmc4 <117096890+pmc4@users.noreply.github.com> Date: Tue, 16 Apr 2024 15:10:12 +0200 Subject: [PATCH] Fix extract_svg_path when is_xaxis_log = true Because * We were overwritting the data array. --- src/core_functions.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_functions.jl b/src/core_functions.jl index 4f16e90..c449222 100644 --- a/src/core_functions.jl +++ b/src/core_functions.jl @@ -110,7 +110,7 @@ function extract_svgpath(input_str::AbstractString, outfile::String, options::Di data[:,2] .= (data[:,2] .- yp0) .* yunits .+ yr0 # If axis scale is log, we have obtained the exponents of the base 10. Exponentiate if options["isxlog"] - data = exp10.(data[:,1]) + data[:,1] = exp10.(data[:,1]) end if options["isylog"] data[:,2] .= exp10.(data[:,2])