mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
286 stars 185 forks source link

Colorbar location 'northoutside' places colorbar below #1744

Open hakonanes opened 1 year ago

hakonanes commented 1 year ago

What do you want to do? Place a colorbar north outside of a map.

What data do you have? Orientation data from EBSD.

What code do you use? The following...

ebsd0 = EBSD.load([mtexEBSDPath filesep 'twins.ctf'],'convertEuler2SpatialReferenceFrame');
figure
plot(ebsd0, ebsd0.bands)
mtexColorbar('location', 'northoutside')

... produces this figure

mtex_colorbar_location_bug

What result do you expect Colorbar north outside.

What MTEX version do you use? MTEX 5.8.0 on MATLAB R2018b (I previously upgraded MATLAB, found MTEX to be much slower than before upgrading for some reason I could not figure out, so downgraded to R2018b).

I tried upgrading to MTEX 5.8.2, but got NFFT errors which I could not resolve by downloading NFFT binaries from https://www-user.tu-chemnitz.de/~potts/nfft/download.php#matlab and copying relevant files to mtex-5.8.2/extern/nfft/ as per https://github.com/mtex-toolbox/mtex/tree/develop/extern/nfft. So I'm perfectly happy with 5.8.0!