-
-
Notifications
You must be signed in to change notification settings - Fork 359
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] UndefVarError: z_log
not defined
#4769
Comments
Ah, I finally got a small-contained reproducer: x = y = collect(-10:0.01f0:10);
fig = heatmap(x, y, hypot.(x', y); colorbar_scale=:log10) |
What would you expect are the limits for the colorbar in this case? I am tempted to just throw an error. |
Why? It works if |
There are two problems demonstrated in the reproducer from @giordano . One is taking the log of zero. The other one, which I think is more relevant to this issue, is "
I only tried this with the GR backend, so I don't know whether it's backend-specific. |
Well, "works" was a bit of a stretch: I don't get any error, but I also get an empty plot. It's solved if setting |
That's because of the zero value(s?) in your |
Right. My actual data didn't have zeros, it started from 1, the example I used here was too simplified, the zero is a red herring. |
Can you check #4770? |
I don't have a simple reproducer at the moment, but I do have a backtrace:
z_log
atPlots.jl/src/backends/gr.jl
Line 2006 in 2023288
The text was updated successfully, but these errors were encountered: