Metadata-Version: 2.1
Name: bodas
Version: 0.0.6
Summary: Asymptotic Bode Plots in Python
Home-page: https://github.com/urbanij/bodas
License: MIT
Keywords: bode,bode diagram,bode plot
Author: Francesco Urbani
Author-email: francescourbanidue@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: matplotlib (>=3.3.3,<4.0.0)
Requires-Dist: numpy (>=1.19.5,<2.0.0)
Requires-Dist: sympy (>=1.7.1,<2.0.0)
Project-URL: Documentation, https://github.com/urbanij/bodas
Project-URL: Repository, https://github.com/urbanij/bodas
Description-Content-Type: text/markdown

# bodas
[![Downloads](https://pepy.tech/badge/bodas)](https://pepy.tech/project/bodas)

Asymptotic Bode plots in Python.

![](https://github.com/urbanij/bodas/blob/main/docs/example2.png?raw=true)

### Installation
`pip install bodas`


### Simple usage example
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/urbanij/bodas/HEAD?labpath=examples%2Fbasic.ipynb)

```python
In [1]: import bodas 

In [2]: import sympy                # import [SymPy](https://www.sympy.org) the Python 
                                    # library for symbolic mathematics

In [3]: s = sympy.Symbol('s')       # define `s` as symbol

In [4]: H = (1+s/23)/(1+s/123)**2   # assign to `H` the function you want to plot

In [5]: sympy.pretty_print(H)
  s
  ── + 1
  23
──────────
         2
⎛ s     ⎞
⎜─── + 1⎟
⎝123    ⎠


In [6]: bodas.plot(H)               # call the `plot` function defined in the bodas library
```



<!-- ### Todo
See [TODO.md](https://github.com/urbanij/bodas/blob/main/TODO.md) -->

