Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] failing tick calculation in narrow log-log plots #3790

Closed
psanan opened this issue Sep 2, 2021 · 2 comments
Closed

[BUG] failing tick calculation in narrow log-log plots #3790

psanan opened this issue Sep 2, 2021 · 2 comments

Comments

@psanan
Copy link

psanan commented Sep 2, 2021

Details

In attempting to plot data on a log-log plot, with

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)

the resulting plot has no x ticks and warnings are emitted:

 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

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pyplot x
plotly x
plotlyjs x
pgfplotsx x
inspectdr x

Versions

Plots.jl version: 1.21.2
Backend version (]st -m <backend(s)>):
Output of versioninfo():

Julia Version 1.6.2                                                                                                                      
Commit 1b93d53fc4 (2021-07-14 15:36 UTC)                                                                                        
Platform Info:                                                                                                                           
  OS: Linux (x86_64-pc-linux-gnu)                                                                                                        
  CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz                                                                                           
  WORD_SIZE: 64                                                                                                                          
  LIBM: libopenlibm                                                                                                                      
  LLVM: libLLVM-11.0.1 (ORCJIT, haswell)                                                                                                 
Environment:                                                                                                                             
  JULIA_DIR = HOME_DIR_SCRUBBED/code/julia      
@psanan psanan added the bug label Sep 2, 2021
@BeastyBlacksmith BeastyBlacksmith changed the title [BUG] [BUG] failing tick calculation in narrow log-log plots Sep 2, 2021
@psanan
Copy link
Author

psanan commented Sep 3, 2021

I believe that I did not always see this warning, but unfortunately I don't have the exact version numbers for the working case (though I was using Julia 1.5.x).

@t-bltg
Copy link
Member

t-bltg commented Sep 14, 2021

Duplicate of JuliaPlots/PlotUtils.jl#116.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants