Change history
Release history of principle-viz, including its releases as
principle-econ. Documentation-only changes are not listed; each entry is
tagged where the feature it describes is documented, following l3doc
convention, so the page number is the real page.
0.14.0
Config—[principle.label.<group>]inecon-viz.tomlmoves whole groups of labels by default Figures
0.13.0
elasticity_revenue_canvases—titles=(demand_title, revenue_title)sets the two figure titles;Nonedraws none Elasticity and total revenuepublic_good_canvas—title=sets the figure title;Nonedraws none Market failuresppf_canvas—title=sets the figure title;Nonedraws none Production possibilitiesppf_growth_canvas—title=sets the figure title;Nonedraws none Production possibilities
0.12.1
Label—top,bottom,leftandrightnudge one label after it has been placed FiguresColorModel— The colour models are the shared EconViz themes, so one name gives the same look in every EconViz package; newpaperandpresentationFiguresConfig—mosaickitreads and checks the file from the schema principle-viz declares; the sharedbasepicks the starting theme Figures
0.12.0
Config—Config.load("econ-viz.toml").use()reads the settings file every EconViz package shares Figures
0.11.2
ColorModel— Newmanualpalette: the greys of this manual Figures
0.11.0
0.10.1
- CI tests Python 3.10--3.13 Introduction
demand_aggregation_figure— The market curve names the demand that is active at a kink Market curves from individualsLabel— Every built-in label can be renamed, hidden or moved:Label,labels=,configure_label()andlabel_idsFiguresMarketFigure.configure_layer— Every layer can be hidden or shown:visibility=,configure_layer(),hide(),show()andlayer_idsFigures
0.10.0
- Renamed from
principle-econtoprinciple-viz, joining the EconViz family; the Python package isprinciple_vizIntroduction - Figures are built on
mosaickit(mosaickit>=0.5.1,<0.6.0) Introduction - Project tooling moved from Poetry to
uvIntroduction principle-viz— The only runtime dependency ismosaickitInstallationadd_comparative_statics— Redraws only the curve that moved; shifted curves are named \(D_1\) / \(S_1\) (demand_label/supply_label) Linear marketsadd_comparative_statics— Movement arrows are thin, black and dashed Linear marketsMarketFigure.add_discrete_curves— Accepts a demand schedule, a supply schedule, or both Discrete marketsMarketFigure.add_discrete_curves— Open endpoints are drawn with an opaque white face, joined to the next step by a thin dashed riser Discrete marketsmarket_demand— Market demand and supply as the horizontal sum of individual linear curves, withPiecewiseLinear,solve_piecewise_equilibrium()andpiecewise_surplus()Market curves from individualsDiscreteDemand.combine—combine()andquantity_at()for discrete schedules Market curves from individualsdemand_aggregation_figure— Individual | individual | market figures for demand and supply, linear and discrete, returning anAggregationFigureMarket curves from individualsdemand_aggregation_figure—link_price=Trueruns the price line across every panel Market curves from individualsMarketFigure.add_welfare— Regions are named in words ("Consumer surplus", "CS", ...) inside, by short name or by callout;labels=Falseshades only WelfareMarketFigure.add_welfare— Consumer and producer surplus reuse the demand and supply hues; tax revenue is labelled rather than shaded WelfareMarketFigure.add_tax_transform— Taxed curves are named \(S + t\) / \(D - t\); the rotation label sits at the arrow's tail Taxes and subsidiesMarketFigure.add_tax_comparison— Marks \(p_d\), \(p_0\) and \(p_s\) on the price axis with a "Tax" brace;brace_sideandnotesTaxes and subsidiesMarketFigure.add_subsidy_comparison— Subsidy wedge with a "Subsidy" brace, and the subsidy's cost named Taxes and subsidiesMarketFigure.add_price_control— Binding controls name the control line, mark \(p_c\), \(Q_d\) and \(Q_s\), and brace "Shortage" or "Surplus" on the control line;gap_brace="axis"braces it under the quantity axis Price controlsMarketFigure.add_trade— Marks \(Q_s\) / \(Q_d\) and braces "Imports" / "Exports" under the quantity axis; the policy price is marked \(p_w + t\) or \(p_q\) International tradeMarketFigure.add_externality— Social curves are named \(M S C\) / \(M S B\); \(Q_m\) and \(Q^*\) are marked on the quantity axis; corrective taxes and subsidies span the gap at \(Q^*\) Market failuresMarketFigure.add_minimum_wage— Drawn like a price floor: the "Minimum wage" line, \(w_{\min}\), \(L_d\) / \(L_s\) and an "Unemployment" brace Labor and loanable fundsMarketFigure— Figures are square (6 × 6 in at 150 dpi) on an opaque white background; straight curves stop at 92% of the price axis FiguresMarketFigure— Curves are named beside their visible end instead of in a legend FiguresMarketFigure— Axis titles default to \(p\) and \(Q\), set in italic math past the arrow tips; titles use normal weight FiguresMarketFigure— Equilibrium and policy labels are placed bymosaickitbeside their point; crowded quantities are marked on the quantity axis FiguresMarketFigure.finalize— No legend by default;finalize(legend=True)adds one FiguresColorModel— Thedefaultpalette takes its hues frommosaickit: demand blue, supply red, deadweight loss teal FiguresPlotTheme— Supply and demand curves are 3.5 pt wide, axes 1.0 pt, equilibrium points 6.5 pt across Figures
0.1.0
- Initial release as
principle-econ: linear markets, taxes, welfare, plotting and a command-line interface Introduction TaxScenario— Fixed, per-unit and ad valorem taxes, with legal incidence on buyers or sellers Taxes and subsidiesColorModel—default,colorblind,nordandmonochromecolour models Figuresprinciple-viz— Command-line interface with JSON output Command-line interface