We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 34d145f + ad1e324 commit 5dd627bCopy full SHA for 5dd627b
src/plotting.jl
@@ -75,14 +75,14 @@ function getLogTicks(x, minmax)
75
minor_text_limit = 8
76
min = ceil(log10(minx))
77
max = floor(log10(maxx))
78
- major = 10 .^ (min:max)
+ major = exp10.(min:max)
79
if Plots.backend() != Plots.GRBackend()
80
majorText = [latexstring("\$10^{$(round(Int64,i))}\$") for i = min:max]
81
else
82
majorText = ["10^{$(round(Int64,i))}" for i = min:max]
83
end
84
if max - min < major_minor_limit
85
- minor = [j*10^i for i = (min-1):(max+1) for j = 2:9]
+ minor = [j*exp10(i) for i = (min-1):(max+1) for j = 2:9]
86
87
minorText = [latexstring("\$$j\\cdot10^{$(round(Int64,i))}\$") for i = (min-1):(max+1) for j = 2:9]
88
0 commit comments