releases 2026-10-02

Most of this release is about colour: gradient legends, tiles, and composite poses whose cells agree on one colour, size or symbol per value. It also adds pj/lay-segment, for lines and arrows between two points. Plots that look different after upgrading • Cells of a composite pose -- pj/arrange, pj/marginal, a grid of pairs, a composite map -- that map the same column to :color, :size, :alpha or :shape share one scale for it, covering the categories or the range of values of every cell. A category is drawn in the same colour or symbol, and a value at the same shade or size, in every cell; the one legend lists every category. A cell that writes its own scale for the aesthetic keeps it, and each cell then draws its own legend. • :share-scales in a grid. A cell that draws several columns on the shared axis shares each column's extent with the cells that draw that column. A histogram or density added to a grid of pairs, such as (-> data (pj/pose (pj/cross cols cols)) pj/lay-histogram), gives each cell a count or density axis fitted to its own bars. A shared axis reaches the far ends of segments and intervals and the outer edges of tiles. • Gradient legends. On a linear scale the legend is labelled at ticks chosen and formatted as the axis's are, such as -0.5, 0.0, 0.5 and 1.0; on a log scale, at its decades. At :legend-position :top or :bottom it is a horizontal bar with its labels underneath. A column holding one value is labelled once, and the bar is drawn without seams between its colours. • A gradient written as {:low ... :high ...} runs straight from one colour to the other. A :mid is drawn only where it is written, as a third stop. • The legend of a tile, a 2D density or a 2D histogram is titled from the same settings as its gradient: a :label in the :fill or :color scale spec, :fill-label or :color-label, and otherwise the name of the column the tile fills from. A contour's legend is titled through :color. Reported in https://github.com/scicloj/plotje/issues/58 - thanks, @carsten.behring • pj/lay-tile on a numeric :x or :y. The axis reaches the outer edges of the tiles, so the outer rows and columns are drawn at full size, and a missing value is left as a gap rather than closed by its neighbours. Reported in https://github.com/scicloj/plotje/issues/59 - thanks, @carsten.behring • The colour of a tile. A numeric :color is read as :fill is, through the same scale settings and legend. A categorical :color colours each cell from the palette, with a legend of the categories, and the fill settings warn. Given both :fill and :color, the tile is painted from :fill and warns that :color is not drawn; with :group, each cell is painted from its own row's value. Reported in https://github.com/scicloj/plotje/issues/40 • pj/lay-contour and pj/lay-density-2d. Contour lines are coloured through the settings the legend reads, so :color-midpoint, and a :domain or :type in the :color scale spec, move the lines as well as the legend. Given a :color column, both keep their density legend and warn that the colour is not drawn, since one density is computed from all the rows. • A :color column written on a rule or a band adds nothing to the legend, and warns that it is not drawn: a rule or a band is drawn once, from written values. • An overlay asked for by only one of the disagreeing layers, as in (-> data (pj/lay-line :t :a) (pj/lay-line :t :b {:overlay true})), draws what pj/overlay draws: a colour and a legend entry per layer, and an axis title naming both columns. • A series on :x together with a series on :y, such as {:x [:t1 :t2] :y [:v1 :v2]}, is read in pairs and drawn on one panel as the series t1 / v1 and t2 / v2. The pivot names its value columns :x-value and :y-value, and :as names the key column. To draw each pair on a panel of its own, write the pairs: (pj/pose data [[:t1 :v1] [:t2 :v2]]). • Long rotated tick labels get room worked out from the angle and the label lengths, below the panel and at the ends of each axis, up to 30% of the plot's size, so long labels are not cut off at the canvas edge or drawn under the axis title. Reported in https://github.com/scicloj/plotje/issues/57 - thanks, @carsten.behring • :breaks [] on an axis draws the axis with no ticks, tick labels or grid lines; its title stays. • Arrow heads and triangle markers are drawn with smooth edges. Added • pj/lay-segment draws a straight line per row from :x and :y to :x-end and :y-end, each a column or a written value. An end left out keeps the start's value, so (pj/lay-segment data :index :distance {:y-end 0}) draws a stem plot. :arrow puts an arrow head on the :end, the :start or :both, and :dx/`:dy` move the whole segment. Asked for in https://github.com/scicloj/plotje/issues/50 - thanks, @carsten.behring. The arrow heads cover the straight case of https://github.com/scicloj/plotje/issues/17. • :y-tick-angle rotates the y-axis tick labels, as :x-tick-angle does for x. At 90 or -90 each label runs along the axis, centred on its tick. Asked for in https://github.com/scicloj/plotje/issues/51 - thanks, @carsten.behring • :band-color sets the colour a band draws in where its layer names none, beside :rule-color and :band-opacity. • :values in a :shape scale spec may be a map from category to symbol, as it may for :color. Warnings and errors • A colour or fill setting that nothing on the plot reads warns: :fill-label, :fill-range or :fill-midpoint with no mark drawn in a fill, :color-values with no categories coloured, :color-range or :color-midpoint with no gradient drawn, :color-label with no legend, and the same :range, :midpoint and :values in a scale spec. So does a written colour on a tile with no :fill, such as {:color "red"}. • An unrecognized option that differs from an accepted one only by hyphens, underscores or case is named in the warning, as in "Did you mean :x-end for :xend?". • These report an error naming the value: a date column on :color; a column name as an area's :stroke; an axis setting in pj/scale with the wrong kind of value, such as :breaks given a function; an :x-tick-angle or :y-tick-angle that is not a finite number; and a map holding a map given as data, or a plan or a draft given where a pose goes. Fixed • A colour name such as "black" or "red" is read wherever a colour is written, including :point-stroke and the :low/`:mid`/`:high` of a gradient. • A plot's caption is drawn wholly inside the canvas. • A number beyond about 9.2e18 on an axis or a colour legend is printed in full.

Added • nil in pj/arrange is a cell left empty: it keeps its place in the layout and draws nothing, also when the composite carries data and layers, so (pj/arrange [[a nil] [b c]]) leaves the top-right cell blank. An empty cell does not keep the other cells from sharing a legend. Warnings and errors • These report an error naming the option and the value: :dx or :dy given a column, and a value written before a rule's or a band's options map that is not a column of the data, such as the 7 in (pj/lay-rule-v pose 7 {:x-intercept 2}). A layer naming a column that a series on the same pose has already read reports that the series pivoted it, and suggests passing the original data with :data.

https://github.com/squint-cljs/squint: Light-weight ClojureScript dialect 0.14.211 • https://github.com/squint-cljs/squint/issues/1032: #html: escape attribute values from {:& m} (https://github.com/mskyan) • https://github.com/squint-cljs/squint/issues/1031: #html: escape every string in a seq, not only the first one (https://github.com/mskyan)

4