Release: Lilaq 0.1.0
ยท 2 min read
Today we release the first official version of Lilaq.
It can now be installed from the Typst package manager through
#import "@preview/lilaq:0.1.0" as lq
This release makes some big changes and a vast number of improvements.
Primarily, types in form of elembic elements are introduced to greatly enhance user customization possibilities.
Changelogโ
Added
- New elements
grid,title,label,legend,diagram,tick,tick-label,spine, anderrorbar. - Added
hbarplotting function. - Support for individual rectangle side coloring of
bar. - New
filterparameter foraxis.
Breaking changes
- The parameters
vmin/vmaxhave been renamed tomin/maxforquiver,contour,colormesh. meshnow only returns the 2d mesh array and not any more also the given inputs. Furthermore,meshreturns a transposed mesh in comparison to before.- Consequently,
colormeshandquivernow take transposed 2D input arrays. - Removed parameter
colorofcontourin favor of the newstrokeparameter. hlineandvlinenow expect coordinates as individual positional arguments (before one array was expected).legend.posis nowlegend.position.title.posis nowtitle.position.- The format for asymmetric errorbars (in
plot.xerrandplot.yerr) has changed. Please refer to the documentation. axis.positionnow takes a dictionary instead of an array for combinedalign+offsetconfiguration.
Improvements
- Improved
contourrendering by using the newcurveelement to remove rare artifacts. colormeshnow creates pixmaps when possible (when the coordinates are evenly spaced) to avoid artifacts and to support smooth interpolation.- Quiver can now take a function for
color. - Axis exponents/offsets now use Zero for showing numbers.
- Arrow tips for
axis. - Arrow tips for
line. - Added
fillparameter todiagram. - Improved ticking heuristic for horizontal axes.
- Use square cap for base stroke for
stemandhstem. - Updated to tiptoe:0.2.0.
Fixed
- plots legend images with error bars.
- ticking: automatic e base label (after Typst 0.13 it was shown incorrectly).
fill-betweennow responds to the current style cycle.- Overflowing, crammed legends.
- empty diagrams with log scales resulting in an error.
- additional axes now respect
diagram.margin. - Plots in additional axes now work properly: they are shown in the legend (if labeled), they behave properly with style cycles, and their z-index is not ignored anymore.
- The default symlog formatter now uses Zero.
Docs
- Documentation website!
- Large-scale documentation improvements.
- Added examples to all important functions, types and sometimes parameters.
