engineerjoe440 / ElectricPy

Electrical Engineering Formulas in Python
https://electricpy.readthedocs.io/en/latest/
MIT License
86 stars 16 forks source link

Make all Plotting Functions Return Handle to matplotlib.pyplot rather than Plotting #49

Closed engineerjoe440 closed 2 years ago

engineerjoe440 commented 2 years ago

It seems to make more sense to return figure objects rather than plotting them directly. In this way, it becomes possible to modify the plots and extend functionality.

In many cases, this should be a simple substitution; for example:

image

engineerjoe440 commented 2 years ago

This has been done for a number of the available functions:

But more may need to be converted.