swharden / pyABF

pyABF is a Python package for reading electrophysiology data from Axon Binary Format (ABF) files
https://swharden.com/pyabf
MIT License
103 stars 33 forks source link

L-shaped scalebar #64

Closed swharden closed 5 years ago

swharden commented 5 years ago

Plotting data with an L-shaped scalebar is very useful in electrophysiology, but it's not easy to do in matplotlib. Right now there's a tool to do it, but the plotting tools should probably be in a differently-named module. Think about the best way to implement this. This ticket has been opened because this module will soon be removed (replaced by something different later) and I don't want to lose track of this excellent piece of code. Once finalized, this feature should be properly documented.

pyabf.plot.scalebar(abf, hideFrame=True)

https://github.com/swharden/pyABF/blob/d63172dc14a40e530f775f5847f45bc60f5de083/src/pyabf/plot.py#L104-L185

swharden commented 5 years ago

This example works for now. https://github.com/swharden/pyABF/blob/master/docs/getting-started/advanced.md