Open-source Python tools for drawing publication-quality economics diagrams.
| Repository | Description |
|---|---|
| econ‑viz | Indifference curves, budget constraints, and consumer equilibria — with a built-in solver, closed-form demand in TeX, Slutsky tools, and PNG / PDF / SVG / TikZ export. |
| principle‑econ | Principles-level market analysis: linear demand and supply, taxes, price controls, and welfare decomposition (CS, PS, DWL). |
| econ‑viz‑docs | Documentation source for econ-viz.org, built with MkDocs Material. |
pip install econ-vizfrom econ_viz import Canvas, levels, solve
from econ_viz.models import CobbDouglas
model = CobbDouglas(alpha=0.5, beta=0.5)
eq = solve(model, px=2.0, py=3.0, income=30.0)
cvs = Canvas(x_max=20, y_max=15, x_label="x", y_label="y")
cvs.add_utility(model, levels=levels.around(eq.utility, n=5))
cvs.add_budget(2.0, 3.0, 30.0, fill=True)
cvs.add_equilibrium(eq, show_ray=True)
cvs.save("cobb_douglas.png")Issues and pull requests are welcome. See CONTRIBUTING.md in the main repository to get started.
Questions, collaboration, or teaching use? Email contact@econ-viz.org.
