2026-01-29 22:12:40 +01:00
|
|
|
# A function plotter in python
|
|
|
|
|
|
|
|
|
|
A recreational programming project.
|
2026-01-29 22:51:06 +01:00
|
|
|
|
2026-01-29 22:12:40 +01:00
|
|
|
The idea is to implement a simple math expression language and simple features to plot functions.
|
2026-01-29 22:51:06 +01:00
|
|
|
|
|
|
|
|
For now a simple matplotlib based implementation is provided.
|
|
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
from plotter.matplotlib import plot_expression
|
|
|
|
|
|
|
|
|
|
plot_expression("sin(x) * 2^(3*x)", start=-10.0, stop=10.0, increment=0.1)
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
![Function plotted in the [-10.0, 10.0] range with 0.1 increments](./plot_example.png)
|