Colorbar cutoff in Plots.jl with pyplot

I’ve got the following issue (see attached figure), where, with my font selections, the colorbar tick labels are cutoff. How do I expand the figure to include them or shrink the width of the colorbar?test

Hi @gideonsimpson, I ran into the same problem today. Did you find out a solution? My temporary solution is to always let the final xtick to be the largest value of the xaxis, which might not be the most beautiful solution, but it works for me.

You should be able to increase the right_margin like

plot(..., right_margin = 3Plots.mm)
4 Likes