Closed asteppke closed 1 year ago
Thank you very much @asteppke for your interest and for pointing out this bug. Thanks also for suggesting the fix. I've merged this into the main branch now. I need to do some further testing across different matplotlib versions as it looks like the arrows don't show up any more in older version... I'll see if there is a solution that covers both otherwise I'll update the requirements for matplotlib > 3.5.
Hello @DanPorter thank you for this great diffraction package!
I just discovered it and wanted to run the examples but unfortunately ran into trouble with plotting arrows:
It seems that the matplotlib people changed their api a bit for versions 3.5.0 and higher. I made a small change that should adapt to this different upstream api and here (python 3.11, matplotlib 3.7.1 on Windows 11) it seems to fix the issue nicely.