Skip to content

This is a python utility which helps in generating ECG (Electrocardiogram) graph.

License

Notifications You must be signed in to change notification settings

KartikeyaRokde/pyECG_graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(

A python library for plotting ECG graph

Installation

$ pip install -r requirements.txt
  • Download the project and run setup.py
$ python setup.py install

Usage

from pyECG_graph import pyECG
pyECG.generate_ecg_graph(ecg_data='sample_ecg_data.txt', output_dir='/tmp/', export_to='pdf', output_file_name='mygraph')

Arguments

  1. ecg_data:

    • Required
    • Accepts a valid list containing ECG graph values
    • Also accepts a valid data file path
  2. output_dir:

    • Required
    • Valid path where output file is to be placed
  3. export_to:

    • Exports ECG graph to provided format
    • Currently supported formats are 'pdf', 'jpg', 'png'
    • Default is 'pdf'. Gives a very nice output.
  4. output_file_name:

    • name of output file generated
    • Default is 'graph'

This will generate mygraph.pdf in the provided output directory.

See some sample output files generated:

  1. [Exported to PDF] (https://github.com/KartikeyaRokde/pyECG_graph/blob/master/pyECG_graph/output/mygraph.pdf)

  2. Exported to PNG

![alt text][logo] [logo]: https://github.com/KartikeyaRokde/pyECG_graph/blob/master/pyECG_graph/output/mygraph.png "mygraph.png"

  1. Exported to JPG

![alt text][logo] [logo]: https://github.com/KartikeyaRokde/pyECG_graph/blob/master/pyECG_graph/output/mygraph.jpg "mygraph.jpg"

That's it. Happy ECG :)

About

This is a python utility which helps in generating ECG (Electrocardiogram) graph.

Resources

License

Stars

Watchers

Forks

Packages

No packages published