Skip to content

Commit 5dd627b

Browse files
authored
Merge pull request #274 from JuliaControl/exp10
change 10^x to exp10(x)
2 parents 34d145f + ad1e324 commit 5dd627b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plotting.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ function getLogTicks(x, minmax)
7575
minor_text_limit = 8
7676
min = ceil(log10(minx))
7777
max = floor(log10(maxx))
78-
major = 10 .^ (min:max)
78+
major = exp10.(min:max)
7979
if Plots.backend() != Plots.GRBackend()
8080
majorText = [latexstring("\$10^{$(round(Int64,i))}\$") for i = min:max]
8181
else
8282
majorText = ["10^{$(round(Int64,i))}" for i = min:max]
8383
end
8484
if max - min < major_minor_limit
85-
minor = [j*10^i for i = (min-1):(max+1) for j = 2:9]
85+
minor = [j*exp10(i) for i = (min-1):(max+1) for j = 2:9]
8686
if Plots.backend() != Plots.GRBackend()
8787
minorText = [latexstring("\$$j\\cdot10^{$(round(Int64,i))}\$") for i = (min-1):(max+1) for j = 2:9]
8888
else

0 commit comments

Comments
 (0)