JuliaPy / PyPlot.jl

Plotting for Julia based on matplotlib.pyplot
https://github.com/JuliaPy/PyPlot.jl
MIT License
475 stars 87 forks source link

Issue Colorbar placement #489

Open mleprovost opened 4 years ago

mleprovost commented 4 years ago

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

stevengj commented 4 years ago

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.