PyPlot.jl
PyPlot.jl copied to clipboard
Issue Colorbar placement
trafficstars
Hello,
I am using Plots with PyPlot as a backend for heatmap. The placement of the colorbar doesn't match the width of the heatmap (see picture) also I can't move the position of the colorbar.
The first issue is resolved when I switch to GR as a backend but not the second.
Here is the same issue https://github.com/JuliaPlots/Plots.jl/issues/1755
Here is my code:
using Plots
pyplot()
x = randn(10,200)
heatmap(x, color = :inferno, colorbar = :bottom)
Result: picture.pdf
Can you reproduce this with PyPlot alone? If no, it may be a bug in Plots. If yes, can you reproduce it using Matplotlib from Python? In which case you should file a Matplotlib bug.