We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With the GR backend (Plots v1.19.1), heatmaps (and so 2D histograms too) are distorted if the axis range spans several decades:
using Plots; gr() z = rand(Bool, 50, 50) plot( heatmap(z), heatmap(10 .^ range(-2, 0, length=50), 10 .^ range-2, 0, length=50), z, scale = :log10), heatmap(10 .^ range(-5, 0, length=50), 10 .^ range(-5, 0, length=50), z, scale = :log10), heatmap(10 .^ range(0, 5, length=50), 10 .^ range(-5, 0, length=50), z, scale = :log10) )
results in this plot:
all four sub-plots should look the same (except for the axis scales), but the lower two (with axes spanning 5 decades) are very distorted.
With pyplot
pyplot() plot( heatmap(z), heatmap(10 .^ range(-2, 0, length=50), 10 .^ range(-2, 0, length=50), z, scale = :log10), heatmap(10 .^ range(-5, 0, length=50), 10 .^ range(-5, 0, length=50), z, scale = :log10), heatmap(10 .^ range(0, 5, length=50), 10 .^ range(-5, 0, length=50), z, scale = :log10) )
everything looks fine:
I'm not sure if this is a Plots or GR bug (CC @jheinen ).
The text was updated successfully, but these errors were encountered:
Reproducible reduced case:
using Random, Plots main() = begin Random.seed!(1234) m, n = 4, 8 z = rand(Bool, m, n) plot( heatmap((10.).^range(-2, 0, length=n), (10.).^range(-2, 0, length=m), z, scale=:log10), heatmap((10.).^range(-5, 0, length=n), (10.).^range(-5, 0, length=m), z, scale=:log10), layout=(2, 1) ) png("hm-$(backend())") return end gr(); main() pyplot(); main()
Sorry, something went wrong.
The problem is fixed in the development branch of GR (see this commit)- a new release will be tagged soon.
Thanks a lot @jheinen !
This issue seems fixed.
No branches or pull requests
With the GR backend (Plots v1.19.1), heatmaps (and so 2D histograms too) are distorted if the axis range spans several decades:
results in this plot:
all four sub-plots should look the same (except for the axis scales), but the lower two (with axes spanning 5 decades) are very distorted.
With pyplot
everything looks fine:
I'm not sure if this is a Plots or GR bug (CC @jheinen ).
The text was updated successfully, but these errors were encountered: