Skip to content
@EconViz

Economic Diagram Visualizer

Open-source Python tools for drawing publication-quality economics diagrams: indifference curves, budget constraints, consumer equilibria, supply and demand.

EconViz

Open-source Python packages for economics diagrams.

Documentation · contact@econ-viz.org

Packages

EconViz is made of six packages. Two draw economics diagrams, and four are general-purpose building blocks they share.

Economics

Repository Description
utility‑viz Publication-quality microeconomics diagrams: indifference curves, budget constraints and consumer equilibria, with a built-in solver and PNG / PDF / SVG / TikZ export. Version 2.0 is in beta.
principle‑viz Market analysis and diagrams for Principles of Economics: supply and demand, taxes, price controls and welfare decomposition (CS, PS, DWL).

Foundation

Repository Description
mosaickit A domain-neutral toolkit for assembling two-dimensional diagrams from scenes, layers, styles and renderers.
bezierkit A small toolkit for constructing, analyzing and exporting Bézier curves, with SVG and TikZ output.
glyphkit A domain-neutral typography and glyph geometry engine: font loading, text and math layout.
kinetickit A domain-neutral engine for precise 2D and 3D animation.

Project

Repository Description
econ‑viz‑docs Source of the econ-viz.org documentation site, built with MkDocs Material.
agora Reference manuals for the EconViz packages.

Quick Start

uv add --prerelease allow utility-viz
from utility_viz import Canvas, levels, solve
from utility_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")

utility-viz

Consumer equilibrium Price effect Edgeworth box Leontief
Consumer equilibrium Price effect Edgeworth box Leontief

principle-viz

Demand shift Tax welfare Price ceiling Tariff
Demand shift Tax welfare Price ceiling Tariff

Coming from econ-viz 1.x? See the migration guide.

Contributing

Issues and pull requests are welcome. See CONTRIBUTING.md to get started.

Contact

Questions, collaboration, or teaching use? Email contact@econ-viz.org.

Pinned Loading

  1. utility-viz utility-viz Public

    Consumer-theory diagrams in Python: indifference curves, budgets, and equilibria

    Python 6

  2. econ-viz-docs econ-viz-docs Public

    Source of the econ-viz.org documentation site for the EconViz packages

    Python

Repositories

Showing 10 of 11 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…