mplstereonet icon indicating copy to clipboard operation
mplstereonet copied to clipboard

Issue when adding a colorbar

Open pvernant opened this issue 5 years ago • 2 comments

Hi,

When adding a colorbar, the annotations around the grid try to encompass the grid and the colorbar leading to something strange. Am I missing something ?

Thanks. Phil

image

pvernant avatar Nov 18 '19 21:11 pvernant

This used to work with older versions of matplotlib. It seems some things have changed in the meantime. I'll have a fix soon. Sorry about that, and thanks for the report!

joferkington avatar Dec 31 '19 17:12 joferkington

@pvernant I found a work around to this.... it involved adding a separate axis for the colorbar into the plot

cbaxes = fig.add_axes([0.05, 0.2, 0.02, 0.6]) #Add additional axis for colorbar plt.colorbar(cbname, cax = cbaxes, shrink = 0.8)

T_GXD015

See the original answer at this link... https://stackoverflow.com/questions/13310594/positioning-the-colorbar

robgeotech avatar May 07 '20 08:05 robgeotech