Skip to content

Instantly share code, notes, and snippets.

@abalijepalli
Created February 26, 2015 19:13
Show Gist options
  • Save abalijepalli/5fb9f354526adc76c756 to your computer and use it in GitHub Desktop.
Save abalijepalli/5fb9f354526adc76c756 to your computer and use it in GitHub Desktop.
Plot an ionic current time-series using MOSAIC (https://github.com/usnistgov/mosaic) functions.
"""
Plot an ionic current time-series.
:Created: 02/26/2015
:Author: Arvind Balijepalli <[email protected]>
:ChangeLog:
.. line-block::
02/26/15 AB Initial version
"""
import mosaic.abfTrajIO as abf
import matplotlib.pyplot as plt
import numpy as np
abfDat=abf.abfTrajIO(dirname='~/abfSet1/', filter='*.abf')
plt.plot( np.arange(0,1,1/500000.), b.popdata(500000), 'b.', markersize=2 )
plt.xlabel("t (s)", fontsize=14)
plt.ylabel("-i (pA)", fontsize=14)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment