PyPlot.jl icon indicating copy to clipboard operation
PyPlot.jl copied to clipboard

Issue Colorbar placement

Open mleprovost opened this issue 5 years ago • 1 comments
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

mleprovost avatar May 21 '20 00:05 mleprovost

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.

stevengj avatar May 21 '20 01:05 stevengj