β¨ Chart config auto-refresh + bugfixes π
Before, chart customization was done by creating a new Psychrochart
object based on some modified chart configuration,
so creating custom plots, or even changing chart limits, was challenging π
Now, when chart.config
changes, any call to chart.save()
, chart.make_svg()
, or chart.plot()
will regenerate the chart data (limits, enabled curves, styling, etc.) before plotting, with only the visible curves inside limits,
(no more 0-size artifacts in SVGs, and most errors because some var is out of range should be gone now π€)
Changes
- β»οΈ Update example notebook with API changes, and using
chart.make_svg()
as the recommended method to generate SVGs - π Parse colors into RGBA values, so "red", "#FF0000", "#FF0000FF" produce the same float repr [1., 0., 0., 1.]
- ποΈ Add mutation control for configuration models, and use it to check if there is any config change before creating a chart, triggering a chart-data regeneration if necessary
- π§ Add new field
ChartFigure.dpi
to chart config, for easy customization of matplotlib Figure DPI - β‘οΈ Optimize generation of psychrometric curves inside plot limits
- π Fix convergence and var-out-of-range errors
- π₯ Remove plotting methods from
PsychroCurve
/PsychroCurves
for a more functional approach, using methods inplot_logic.py
- π₯ Add
PsychroCurve.internal_value
field, to identify the trigger value for each curve (constant H/V/RH...), and evolve validation of data arrays - β tests: Increase test coverage and optimize tests for faster run (~2x)
- π¦οΈ env: Add slugify to deps and bump version