Release: Lilaq 0.4.0
· 4 min read
With version 0.4.0, we finally get
- color bars,
- plot smoothing,
- a tutorial on ticks,
- -based scales,
- individual addressing of the and grid
and a lot more.
Changelog
Additions
- Lilaq now (officially) has color bars that can be used to create a legend for colored plots like
scatterorcolormesh, - The function
plotnow supports smoothing throughplot.smooth(thanks to @Netzwerk2). - There is now a formatter for
symlogaxes. - The linear tick locator now features a
unitparameter making it easy to set up scales based on multiples of or other real numbers. In addition, the linear tick formatter is now equipped with asuffixparameter and reacts to theunitof the linear tick locator. - The types
tickandtick-labelnow have a fieldkindwhich can be"x"or"y", referring to the kind of axis that they are placed on. - Lilaq now uses the new version 1.1.0 of elembic, introducing features like conditional set rules like
show: lq.cond-set(lq.grid.with(kind: "x"), stroke: yellow)and filtered show rules throughlq.show_(lq.tick-label.with(sub: true), it => {..}). - The type
tick-labelnow has a fieldtick-label.sub. - One can now pass a list of extra ticks to
axis.extra-ticks(for example throughlq.diagram(xaxis: (extra-ticks: ()))). - The plot functions
ellipseandrectnow have a parameteralign.
Breaking changes
- ⚠️ The parameter
tick.shorten-subnow takes a ratio between0%and100%instead of a float between0and1and its behavior is inverted: Setting it to70%for example shortens the sub-ticks by 70% and not to 70%. - ⚠️ The parameter
grid.subis now named instead of positional. - ⚠️ When a function is passed to
quiver.color, it is given both the coordinates and directions as(x, y, u, v)instead of just the coordinates. - ⚠️ The legend now uses a
gridinstead of atableto lay out its items, so you need to replace anyshow lq.selector(lq.legend): set table(..)withshow lq.selector(lq.legend): set grid(..).
Improvements
- The diagram bounds are updated accordingly for content placed with
lq.place. - Updated Tiptoe from
0.3.0to0.3.1(it now works with right-to-left text direction). - Updated Zero from
0.3.3to0.4.0(some fixes, including with right-to-left text). - The fields
stem.mark-sizeandhstem.mark-sizenow default toauto.
Fixed
- Diagrams now work in a context with right-to-left text direction.
- Fixed
axis.invertedwhich was ignored whenever there was at least one plot with non-tight limits. - Setting
mark.strokeandmark.fillvia plot cycles now works forscatter. - Breaking of tick labels when the diagram is too narrow (thanks to @Xendergo).
- Manual tick locations are now clipped to the range of the axis.
- Fixed computation of significant digits with non-integer steps.
- Sub-ticks can now be formatted easily.
- The interaction of various color and stroke settings for
scatter. - Fixed error bars when the y-axis range is inverted.
- Median inset has been fixed for inverted axes.
- A conflict when using
plot.everytogether with legend labels has been resolved.
Documentation
- Finally there is a tutorial on ticks!
