The plotting.py module supports saving to a file if the path param is provided. However, all the summary processing and plotting functions like signals.ecg.ecg hardcode the path to be None. Saving plots like this to a file is useful for users that want to automate and process a large amount of signals. This PR propagates the path param to the functions that offer plotting in addition to processing.
The
plotting.py
module supports saving to a file if thepath
param is provided. However, all the summary processing and plotting functions likesignals.ecg.ecg
hardcode the path to beNone
. Saving plots like this to a file is useful for users that want to automate and process a large amount of signals. This PR propagates the path param to the functions that offer plotting in addition to processing.