You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can determine, it's something to do with the range of values being used
Simple example case (breaking y-axis tick labels):
using Plots
# This is fine
fig =plot([1:25], yscale=:log10)
# This is not fine
fig =plot([5:25], yscale=:log10)
┌ Warning: No strict ticks found
└ @ PlotUtils C:\Users\Takuya\.julia\packages\PlotUtils\VgXdq\src\ticks.jl:294
┌ Warning: No strict ticks found
└ @ PlotUtils C:\Users\Takuya\.julia\packages\PlotUtils\VgXdq\src\ticks.jl:294
This is especially an issue in my case as I am building a mix of regular and log scale plots in a loop.
Additionally, I believe there is some global value being erroneously set or something similar, as once it breaks, all subsequent plots are affected.
My tentative and inelegant fix is to extend the x_max and x_min values to the ceil and floor respectively, as shown in the link below
Details
Plots break when iteratively building mix of log scale and non-log scale plots.
In the initial plot, it seems to display okay except the tick/tick labels are missing.
There are some related issues already (mostly closed) but I am still experiencing this issue.
#3790
#2309
#920
JuliaPlots/PlotUtils.jl#116
Unlike in this discussion, there is no 0s in the data (as shown in example below)
https://discourse.julialang.org/t/no-strict-ticks-found-message/45217/6
As far as I can determine, it's something to do with the range of values being used
Simple example case (breaking y-axis tick labels):
This is especially an issue in my case as I am building a mix of regular and log scale plots in a loop.
Additionally, I believe there is some global value being erroneously set or something similar, as once it breaks, all subsequent plots are affected.
My tentative and inelegant fix is to extend the
x_max
andx_min
values to the ceil and floor respectively, as shown in the link belowhttps://github.com/ConnectedSystems/PlotUtils.jl/blob/cfbbd511b278e7f90ca27ce17b90de240d099aad/src/ticks.jl#L159
Backends
GR
This bug occurs on ( insert
x
below )Versions
Plots.jl version: v1.23.2
Backend version (
]st -m <backend(s)>
): GR v0.61.0Output of
versioninfo()
:Julia Version 1.5.4
Commit 69fcb5745b (2021-03-11 19:13 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: AMD Ryzen Threadripper 2990WX 32-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, znver1)
The text was updated successfully, but these errors were encountered: