PinkShnack / TEMUL

Functions for analysis of high resolution electron microscopy and spectroscopy data.
https://temul-toolkit.readthedocs.io
GNU General Public License v3.0
14 stars 11 forks source link

Refactor `plot_polarisation_vectors` into a Class. #74

Open PinkShnack opened 2 years ago

PinkShnack commented 2 years ago

Overview

The plot_polarisation_vectors function is quite useful for plotting data, but users are limited by the fact that it is a single function and has limited parameters right now. **kwargs can help with this, but it would just make each called function more confusing. It is not well designed and not extensible!

After #70 and some other examples, this has become even more apparent. Users want to be able to manipulate the plots. Some of the issue lies with matplotlib's plotting system, but most of the problems are due to the plot_polarisation_vectors design.

Solution

I will likely try to refactor plot_polarisation_vectors into a class that is more flexible and extensible, and not limited to parameters.

To do:

Acceptance Criteria