Release: Lilaq 0.1.0
· 3 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
hbar
plotting function. - Support for individual rectangle side coloring of
bar
. - New
filter
parameter foraxis
.
Breaking changes
- The parameters
vmin
/vmax
have been renamed tomin
/max
forquiver
,contour
,colormesh
. mesh
now only returns the 2d mesh array and not any more also the given inputs. Furthermore,mesh
returns a transposed mesh in comparison to before.- Consequently,
colormesh
andquiver
now take transposed 2D input arrays. - Removed parameter
color
ofcontour
in favor of the newstroke
parameter. hline
andvline
now expect coordinates as individual positional arguments (before one array was expected).legend.pos
is nowlegend.position
.title.pos
is nowtitle.position
.- The format for asymmetric errorbars (in
plot.xerr
andplot.yerr
) has changed. Please refer to the documentation. axis.position
now takes a dictionary instead of an array for combinedalign
+offset
configuration.
Improvements
- Improved
contour
rendering by using the newcurve
element to remove rare artifacts. colormesh
now 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
fill
parameter todiagram
. - Improved ticking heuristic for horizontal axes.
- Use square cap for base stroke for
stem
andhstem
. - 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-between
now 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.