Plotting: Log-log plot: How do I resolve a "no strict ticks" warning?

I’d like to plot data, as in the following example, on a log-log plot. Recently (I think since upgrading from 1.5.x to 1.6.2), I’ve noticed “no strict ticks” warnings and no ticks on the x axis. I assume a heuristic for generating the ticks has changed, but I’m not sure of a good way to proceed. The data are all positive, and the relevant distinguishing factor between the x and y data is that the x data doesn’t span many powers of 10.

x = [0.0625, 0.03125, 0.015625, 0.0078125, 0.00390625]
y = [0.08803057664711, 0.022532873837507062, 0.005666348468055831, 0.00141866249195611, 0.0003547954142212406]
gr()
plot(x, y, xaxis=:log, yaxis=:log)

┌ Warning: No strict ticks found
└ @ PlotUtils HOME_DIR_SCRUBBED/.julia/packages/PlotUtils/xCNES/src/ticks.jl:295
┌ Warning: No strict ticks found
└ @ PlotUtils HOME_DIR_SCRUBBED/.julia/packages/PlotUtils/xCNES/src/ticks.jl:295

A workaround is to specify the ticks myself (e.g. plot(x, y, xaxis=:log, yaxis=:log, xticks=x[1:2:end])), but I was hoping for something more automatic.

This looks like a bug.
A workaround is to supply xlims and the xticks will be done automatically but not necessarily better than manually:
plot(x, y, xaxis=:log, yaxis=:log, xlims=(1e-3, 0.1))

1 Like

Thanks! I opened this issue (hopefully this is the right place, and hopefully not an already-fixed).