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

**URL:** <https://discourse.julialang.org/t/plotting-log-log-plot-how-do-i-resolve-a-no-strict-ticks-warning/67510>\
**Category:** General Usage\
**Tags:** question, plotting, plots, gr\
**Created:** [September 1, 2021, 3:07pm UTC](https://discourse.julialang.org/t/plotting-log-log-plot-how-do-i-resolve-a-no-strict-ticks-warning/67510 "2021-09-01T15:07:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![psanan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/psanan/32/30106_2.png) [@psanan](https://discourse.julialang.org/u/psanan)\
**Post date:** [September 1, 2021, 3:07pm UTC](https://discourse.julialang.org/t/plotting-log-log-plot-how-do-i-resolve-a-no-strict-ticks-warning/67510/1 "2021-09-01T15:07:22Z")

</div>

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.

```julia
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)

```

 ![Bildschirmfoto 2021-09-01 um 17.02.00](https://global.discourse-cdn.com/julialang/original/3X/4/e/4e569c9ad7c657e389e0bd4193a6b6260fbe07fe.png)

```julia
┌ 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.

---

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [September 1, 2021, 7:32pm UTC](https://discourse.julialang.org/t/plotting-log-log-plot-how-do-i-resolve-a-no-strict-ticks-warning/67510/2 "2021-09-01T19:32:16Z")

</div>

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))`

---

<div class="post-metadata">

**Author:** ![psanan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/psanan/32/30106_2.png) [@psanan](https://discourse.julialang.org/u/psanan)\
**Post date:** [September 3, 2021, 6:18am UTC](https://discourse.julialang.org/t/plotting-log-log-plot-how-do-i-resolve-a-no-strict-ticks-warning/67510/3 "2021-09-03T06:18:32Z")

</div>

Thanks! I opened this issue (hopefully this is the right place, and hopefully not an already-fixed).  
[https://github.com/JuliaPlots/Plots.jl/issues/3790](https://github.com/JuliaPlots/Plots.jl/issues/3790)
