MJOLNIRPackage / MJOLNIR

Neutron scattering software to be used at Multiplexing Joint Organization
Mozilla Public License 2.0
4 stars 5 forks source link

Matplotlib settings overwritten #90

Open elliottperryman opened 2 months ago

elliottperryman commented 2 months ago

Hello Jakob,

Thanks for all the work you did on MJOLNIR. It really has a very understandable interface for getting out the quantities I want and making cuts to the data. Also the tutorial ipynb is very helpful. I apologize for my previous issue, which was a little too harsh.

When I use MJOLNIR even just to load data in the following way:

from MJOLNIR.Data import DataSet
from MJOLNIR._tools import fileListGenerator
ds = DataSet.DataSet(fileListGenerator(...))
ds.convertDataFile(binning=8)
intensity =ds.I.extractData()

the matplotlib settings get overwritten. Some specific examples:

Jakob-Lass commented 1 month ago

Hi Elliot

I have gone through the code and am not sure where these settings are being overwritten as it does not seem to be the case for the version I am running, but I agree that this is not the optimal way. Which version of the software are you running, and also which matplotlib version? I am assuming that you are running it through jupyter notebook without any magic commands, i.e. %matplotlib xxx, right?

All the best, Jakob