https://scicloj.github.io/plotje/ - composable plotting - https://clojars.org/org.scicloj/plotje:
• fix: a density curve is now estimated over the data it describes, instead of over a grid running half the data's span past it on either side. That padded grid was both drawn and reported as the axis range, so`pj/lay-density`on a column spanning 4.3 to 7.9 drew an axis from 2.1 to 10.1 and a`pj/lay-rug`beside it covered only the middle of the plot. The curve now starts and ends with the rug, and the axis matches what ggplot2's`geom_density()`produces for the same data. (Closes #23) - thanks, @carsten.behring
• pj/lay-violinand`pj/lay-ridgeline`estimate through the same kernel density, so they are bounded by their category's values too -- each body now ends where that category's data ends instead of tapering into a long needle past it. This matches ggplot2, which trims violins by default (`geom_violin(trim = TRUE)`).
• pj/lay-density,`pj/lay-violin`and`pj/lay-ridgeline`accept`:trim`, choosing which values each group's curve is estimated over, after ggplot2's argument of the same name and with its per-geom defaults. A density is untrimmed: every group is estimated across the whole layer, so grouped curves share one interval and each falls away to nothing rather than being cut off at its own group's extremes.`{:trim true}`estimates each group over its own values instead. A violin or ridgeline is trimmed, so each body ends at its category's values;`{:trim false}`extends it by three bandwidths on each side. This changes the appearance of a grouped`pj/lay-density`, which previously behaved as`{:trim true}`.
• density curves are smoothed with`nrd0`, the bandwidth rule R's`density()`and ggplot2 use; the previous default smoothed about 18% wider, drawing every curve slightly flatter and broader than the same data in ggplot2. Affects`pj/lay-density`,`pj/lay-violin`and`pj/lay-ridgeline`. Passing an explicit`:bandwidth`is unchanged.
• a density curve is drawn from 512 points rather than 100, matching ggplot2, so an enlarged plot no longer shows a faceted peak.`pj/lay-violin`and`pj/lay-ridgeline`keep 80, where the extra points make no visible difference.
• pj/plot,`pj/save`,`pj/draft`,`pj/plan`, and`pj/membrane`now accept raw data directly, giving it a default mapping first exactly as`pj/pose`does. Previously`(pj/plot some-dataset)`(data not wrapped in`pj/pose`) rendered a blank figure; it now renders the same inferred default as`(pj/plot (pj/pose some-dataset))`.
• new public pipeline step`pj/infer-mapping`: given a pose that carries data but no mapping (the bare leaf`pj/->pose`produces), it attaches a default position/color mapping from the first 1-3 columns; it is a no-op on any pose that already has a mapping, has layers, is composite, or has 4+ columns. This is the step the terminal shortcuts apply after`pj/->pose`, exposed so pipeline-minded users can build their own chains (`(-> data pj/->pose pj/infer-mapping pj/pose->draft pj/draft->plan)`).
• a bare collection of scalar values -- numbers, strings, or keywords, e.g.`[1 4 1 5 6]`-- is now accepted as plot data and read as a single column named`:value`(previously only`{:column [values]}`maps or sequences of row-maps were accepted). Combined with the default-mapping change,`(pj/plot [1 4 1 5 6])`renders a histogram.
• pj/savenow returns the written file as a`java.io.File`carrying`:kind/image`metadata (instead of the path string), so evaluating a`pj/save`call in a notebook also displays the saved chart. The file prints as its path and compares equal to a plain`java.io.File`on the same path, so`(str (pj/save ...))`still yields the path string. (PR #29) - thanks, @timothypratley
• add`plotje-plot`as a class on svg output (PR #28) - thanks, @timothypratley
• fix:`pj/svg-summary`counts square markers. A`:square`marker draws as a rounded rectangle of radius 0, which fell between the summary's point test and its tile test, so`(pj/lay-point :sepal-length :sepal-width {:shape :species})`on a 150-row dataset summarized as 100 marks. Squares now count in`:points`alongside circles, which also brings their colors and opacities into`:colors`and`:alphas`;`:sizes`still reports only positive radii.
https://github.com/seancorfield/polylith-external-test-runner v0.9.0 61086fb -- An external (subprocess) test runner for Polylith
• Randomize the order of test namespaces by default, controlled via a random seed, via PR https://github.com/seancorfield/polylith-external-test-runner/pull/24 from https://github.com/jeroenvandijk.
• Address https://github.com/seancorfield/polylith-external-test-runner/issues/20 by adding :shadow-optimize option to control whether Shadow-cljs uses compile (unoptimized dev build, the default, equivalent to :dev) or release (Closure-optimized production build, via :release).
Follow-up in #C013B7MQHJQ
#C05KTLBLE9L 0.1.18 released with #C0AEASGBZ7Y / #C05NVNMA2ES replacing #CAJN79WNT for binary compilation. YAMLStar is a common YAML load/dump framework written in Clojure and published to native registries for 32 programming languages. See: https://yamlstar.org/ Now with Gloat AOT compilation, YAMLStar ships binaries to 15 (of 25 possible) platforms instead of GraalVM's 4 possible platforms. These include WebAssembly for both browser and server use. All 15 binaries were cross-compiled with Gloat from Linux. GraalVM does not cross compile and has no plans to. The shared library binary size is 25MB with Gloat compared to 35MB with GraalVM and builds much faster with Gloat. The runtime speed is about exactly the same between them, which is what we've been waiting for before switching to Gloat.