<?xml version="1.0" encoding="UTF-8"?>
<rss  xmlns:atom="http://www.w3.org/2005/Atom" 
      xmlns:media="http://search.yahoo.com/mrss/" 
      xmlns:content="http://purl.org/rss/1.0/modules/content/" 
      xmlns:dc="http://purl.org/dc/elements/1.1/" 
      version="2.0">
<channel>
<title>Johan Larsson</title>
<link>https://jolars.co/blog/</link>
<atom:link href="https://jolars.co/blog/index.xml" rel="self" type="application/rss+xml"/>
<description>Posts by Johan Larsson on statistics, optimization, and scientific computing in R, Python, Julia, and Rust, plus notes on the software he develops.
</description>
<image>
<url>https://jolars.co/images/og.png</url>
<title>Johan Larsson</title>
<link>https://jolars.co/blog/</link>
</image>
<generator>quarto-1.10.18</generator>
<lastBuildDate>Mon, 26 Oct 2026 00:00:00 GMT</lastBuildDate>
<item>
  <title>How to Train Your Intercept</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2026-10-26-how-to-train-your-intercept/</link>
  <description><![CDATA[ 





<p>When you fit a regression model, the intercept is probably not the coefficient you spend the most time thinking about. It represents the baseline response, is usually left unpenalized, and rarely gets much attention in discussions of optimization algorithms. But the way you update this one coefficient can have a substantial effect on how quickly the solver fits the model.</p>
<p>Frederik Fabricius-Bjerre and I study this choice for regularized generalized linear models in our new paper, <em>How to Train Your Intercept: A Comparison of Intercept Update Strategies in Coordinate Descent</em>&nbsp;<span class="citation" data-cites="larsson2026d">(Larsson and Fabricius-Bjerre 2026)</span>. The <a href="https://github.com/jolars/intercepts">code and manuscript source</a> are available on GitHub. Our main finding is that, when the response is imbalanced, a conservative (but common) intercept update can slow down the whole solver. A single Newton step, with a safeguard against overshooting, largely removes this slowdown in our experiments.</p>
<p>To make this concrete, consider Figure&nbsp;1. We fit the same regularized logistic regression model to the <strong>w1a</strong> dataset&nbsp;<span class="citation" data-cites="platt1998">(Platt 1998)</span> with three strategies for updating the intercept. Everything else in our solver stays the same. The Newton and exact strategies reach the target accuracy after roughly 45 sweeps through all the coefficients. The gradient strategy needs more than <em>seven</em> times as many sweeps.</p>
<div id="fig-convergence" class="quarto-float quarto-figure quarto-figure-center anchored" alt="Relative suboptimality bound versus elapsed time on w1a. Newton and exact intercept updates converge much sooner than the conservative gradient update.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-convergence-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-10-26-how-to-train-your-intercept/images/convergence.svg" class="img-fluid figure-img" alt="Relative suboptimality bound versus elapsed time on w1a. Newton and exact intercept updates converge much sooner than the conservative gradient update." width="600">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-convergence-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: Convergence on w1a under three intercept-update strategies. Lower values mean that the objective is closer to its optimum. The target accuracy is a relative suboptimality below <img src="https://latex.codecogs.com/png.latex?10%5E%7B-8%7D">.
</figcaption>
</figure>
</div>
<p>So, how we update the intercept <em>can</em> make a large difference, but the literature does not examine this choice. My interest in this topic grew when I noticed that implementations of optimization algorithms often differ in how they update the intercept, even though they largely agree on the right way to update every other coefficient. The papers describing these implementations neither explain nor justify their choices.</p>
<p>This led me to propose the problem for a project course in statistics at my department. Frederik was one of the students who chose to work on it. After the course, we continued working together and have now wrapped up the work and submitted the paper to a journal.</p>
<section id="the-intercept-in-logistic-regression" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="the-intercept-in-logistic-regression">The intercept in logistic regression</h2>
<p>A logistic regression model describes the probability of a positive response as <img src="https://latex.codecogs.com/png.latex?p_i%20=%20%5CPr(Y_i%20=%201%20%5Cmid%20x_i)%20=%20%5Cfrac%7B1%7D%7B1%20+%20%5Cexp%5B-(%5Cbeta_0%20+%20x_i%5E%5Ctop%5Cbeta)%5D%7D,"> where <img src="https://latex.codecogs.com/png.latex?%5Cbeta_0"> is the intercept and <img src="https://latex.codecogs.com/png.latex?%5Cbeta"> contains the feature coefficients. If all the feature coefficients are zero, the intercept alone determines the predicted probability. For example, a probability of <img src="https://latex.codecogs.com/png.latex?0.01"> corresponds to an intercept of approximately <img src="https://latex.codecogs.com/png.latex?-4.6">.</p>
<p>We fit the model by minimizing the logistic loss plus a penalty on <img src="https://latex.codecogs.com/png.latex?%5Cbeta">, such as the lasso penalty&nbsp;<span class="citation" data-cites="tibshirani1996">(Tibshirani 1996)</span>. The intercept is not penalized. A common way to solve this problem is <em>coordinate descent</em>, which repeatedly updates one coefficient at a time while holding the others fixed.<sup>1</sup> We call one sweep over the coefficients a <em>pass</em>. In coordinate descent, the intercept is one of the coordinates, but it has special properties: its update is smooth because it has no penalty, and it remains part of every pass.</p>
<div class="no-row-height column-margin column-container"><div id="fn1"><p><sup>1</sup>&nbsp;My earlier work on coordinate descent for SLOPE&nbsp;<span class="citation" data-cites="larsson2023">(Larsson et al. 2023)</span> led me to look into this issue. If you are unfamiliar with coordinate descent, <span class="citation" data-cites="wright2015">Wright (2015)</span> provides an accessible overview.</p></div></div></section>
<section id="three-ways-to-update-the-intercept" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="three-ways-to-update-the-intercept">Three ways to update the intercept</h2>
<p>We compare three strategies, each applied once per pass over the feature coefficients:</p>
<dl class="page-columns page-full">
<dt>The gradient strategy</dt>
<dd>
Take one step using a global, worst-case bound on the curvature of the loss.
</dd>
<dt>The Newton strategy</dt>
<dd>
<p>Take one step using the curvature at the current fit.</p>
</dd>
<dt>The exact strategy</dt>
<dd>
Minimize the loss over the intercept while holding the feature coefficients fixed.<sup>2</sup>
</dd>
<div class="no-row-height column-margin column-container"><div id="fn2"><p><sup>2</sup>&nbsp;In the experiments, we solve this subproblem numerically to a tight tolerance.</p></div></div></dl>
<p>Figure&nbsp;2 illustrates these choices for a small logistic regression problem with one feature. The curves follow the intercept and feature coefficient as the solver approaches the solution. The gradient strategy takes many small steps, whereas the Newton and exact strategies arrive in only a few.</p>
<div id="fig-trajectories" class="quarto-float quarto-figure quarto-figure-center anchored" alt="Objective contours with three optimization paths. The gradient path approaches the solution gradually, while the Newton and exact paths reach it in a few steps.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-trajectories-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-10-26-how-to-train-your-intercept/images/trajectories.svg" class="img-fluid figure-img" alt="Objective contours with three optimization paths. The gradient path approaches the solution gradually, while the Newton and exact paths reach it in a few steps." width="600">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-trajectories-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: Intercept and coefficient trajectories on a one-feature logistic regression problem. The gray contours show level sets of the objective.
</figcaption>
</figure>
</div>
</section>
<section id="why-imbalance-matters" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="why-imbalance-matters">Why imbalance matters</h2>
<p>For logistic regression, the curvature of the averaged loss in the intercept direction is <img src="https://latex.codecogs.com/png.latex?H_%7B00%7D%20=%20%5Cfrac%7B1%7D%7Bn%7D%5Csum_%7Bi=1%7D%5En%20p_i(1%20-%20p_i)."> Since <img src="https://latex.codecogs.com/png.latex?p_i(1%20-%20p_i)"> is at most <img src="https://latex.codecogs.com/png.latex?1/4">, we can use <img src="https://latex.codecogs.com/png.latex?L_0%20=%201/4"> as a global curvature bound. If <img src="https://latex.codecogs.com/png.latex?g_0"> denotes the derivative of the loss with respect to the intercept, the gradient and full Newton updates are, respectively, <img src="https://latex.codecogs.com/png.latex?%5Cbeta_0%20%5Cleftarrow%20%5Cbeta_0%20-%20%5Cfrac%7Bg_0%7D%7BL_0%7D,%0A%20%20%5Cqquad%0A%20%20%5Cbeta_0%20%5Cleftarrow%20%5Cbeta_0%20-%20%5Cfrac%7Bg_0%7D%7BH_%7B00%7D%7D."></p>
<p>The gradient step is a reasonable choice when the current curvature is close to its upper bound. But when fitted probabilities approach zero or one, <img src="https://latex.codecogs.com/png.latex?p_i(1%20-%20p_i)"> becomes small, and the two step sizes can differ greatly. In an intercept-only model with a fitted probability of <img src="https://latex.codecogs.com/png.latex?0.01">, the curvature is <img src="https://latex.codecogs.com/png.latex?0.0099">. The full Newton step is then about 25 times as large as the gradient step.<sup>3</sup></p>
<div class="no-row-height column-margin column-container"><div id="fn3"><p><sup>3</sup>&nbsp;This compares step sizes at the same iterate and does not imply a 25-fold improvement in performance.</p></div></div><p>Changing the feature coefficients can also change the best intercept value. If the intercept update is too small to keep up, the solver uses that lagging intercept when calculating the next feature updates. The intercept error changes the gradients used for those updates, so a conservative intercept step can slow progress across the whole model.</p>
</section>
<section id="doesnt-centering-solve-this" class="level2">
<h2 class="anchored" data-anchor-id="doesnt-centering-solve-this">Doesn’t centering solve this?</h2>
<p>If you are familiar with linear regression, you might wonder why we cannot just center the features and separate the intercept from the slopes. For squared loss, that works. The cross-curvature measures how changing the intercept affects the gradient for a feature coefficient. For coefficient <img src="https://latex.codecogs.com/png.latex?j">, it is proportional to the mean of feature <img src="https://latex.codecogs.com/png.latex?j">. Centering makes that mean zero, so we can optimize the intercept independently of the feature coefficients.</p>
<p>For logistic regression, the corresponding quantity is <img src="https://latex.codecogs.com/png.latex?H_%7B0j%7D%20=%20%5Cfrac%7B1%7D%7Bn%7D%5Csum_%7Bi=1%7D%5En%20p_i(1%20-%20p_i)x_%7Bij%7D."> This is a weighted feature mean. Ordinary centering makes the unweighted mean zero, but generally leaves this weighted mean nonzero. The weights also change as we fit the model. Standardizing the features therefore does not necessarily remove the interaction between the intercept and the slopes.</p>
<p>In me and Jonas Wallin’s <a href="https://jolars.co/blog/2025-01-21-normreg/index.html">earlier work on normalization</a>, we focused on how feature scaling changes regularization&nbsp;<span class="citation" data-cites="larsson2025">(Larsson and Wallin 2025)</span>. Centering was simpler: with an unpenalized intercept, we could center the features without changing the fitted model. That remains true for logistic regression, but the computational benefit does not carry over—ordinary centering no longer separates the intercept from the slopes.</p>
</section>
<section id="how-much-work-should-we-spend-on-the-intercept" class="level2">
<h2 class="anchored" data-anchor-id="how-much-work-should-we-spend-on-the-intercept">How much work should we spend on the intercept?</h2>
<p>If a lagging intercept causes trouble, an obvious response is to optimize it fully after every pass. But our experiments suggest that this is usually wasted work. With one safeguarded Newton step per pass, the solver typically follows nearly the same trajectory as with exact intercept minimization, while taking fewer steps to update the intercept. The next sweep over the feature coefficients changes the best intercept value again. Solving for the intercept very accurately before that sweep can therefore waste effort on accuracy that will soon be lost.</p>
<p>The safeguard matters too. Newton’s method approximates the loss near the current fit by a quadratic function and chooses a step using that approximation. If the approximation is poor, the step can be too large and increase the actual loss. We see this in a Poisson example when starting a fit from scratch. A backtracking line search checks each proposed step and shortens it until the loss decreases enough.</p>
</section>
<section id="what-happens-in-existing-solvers" class="level2">
<h2 class="anchored" data-anchor-id="what-happens-in-existing-solvers">What happens in existing solvers?</h2>
<p>We also study six production solvers. Some apply coordinate descent directly to the original GLM loss. Others first approximate the loss by a quadratic function, then use coordinate descent to solve that simpler problem.</p>
<p>Within a fixed quadratic approximation, the intercept’s curvature is known, so we can minimize over the intercept directly. But the choice of approximation still matters. An approximation based on the curvature at the current fit adapts to the problem. One based on a worst-case curvature bound can produce the same overly small intercept steps as the gradient strategy.</p>
<section id="skglm" class="level3">
<h3 class="anchored" data-anchor-id="skglm">skglm</h3>
<p>One instructive example comes from <a href="https://contrib.scikit-learn.org/skglm/">skglm</a>. Version 0.5 used a gradient-based update for the intercept. We <a href="https://github.com/scikit-learn-contrib/skglm/pull/337">submitted a patch</a> replacing that update with a Newton step. Figure&nbsp;3 shows the convergence plots from the PR, where <img src="https://latex.codecogs.com/png.latex?%5Cmu_0"> is the fraction of positive responses. With the gradient update, the most imbalanced problems remain far above the stopping tolerance after 200 outer iterations. With Newton updates, all five problems reach tolerance within nine iterations.</p>
<div id="fig-skglm" class="quarto-layout-panel">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-skglm-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div class="quarto-layout-row">
<div class="quarto-layout-cell-subref quarto-layout-cell" data-ref-parent="fig-skglm" style="flex-basis: 100.0%;justify-content: flex-start;">
<div id="fig-skglm-gradient" class="quarto-float quarto-figure quarto-figure-center anchored" alt="Before the patch: stopping criterion versus outer iteration for five response proportions. The nearly balanced problem reaches tolerance after about 200 iterations, while the more imbalanced problems remain above it.">
<figure class="quarto-float quarto-subfloat-fig figure">
<div aria-describedby="fig-skglm-gradient-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-10-26-how-to-train-your-intercept/images/skglm-gradient.png" class="img-fluid figure-img" data-ref-parent="fig-skglm" alt="Before the patch: stopping criterion versus outer iteration for five response proportions. The nearly balanced problem reaches tolerance after about 200 iterations, while the more imbalanced problems remain above it." width="700">
</div>
<figcaption class="quarto-float-caption-bottom quarto-subfloat-caption quarto-subfloat-fig" id="fig-skglm-gradient-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
(a) Gradient intercept updates.
</figcaption>
</figure>
</div>
</div>
</div>
<div class="quarto-layout-row">
<div class="quarto-layout-cell-subref quarto-layout-cell" data-ref-parent="fig-skglm" style="flex-basis: 100.0%;justify-content: flex-start;">
<div id="fig-skglm-newton" class="quarto-float quarto-figure quarto-figure-center anchored" alt="After the patch: stopping criterion versus outer iteration for the same five response proportions. All five problems reach their stopping tolerance within nine iterations.">
<figure class="quarto-float quarto-subfloat-fig figure">
<div aria-describedby="fig-skglm-newton-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-10-26-how-to-train-your-intercept/images/skglm-newton.png" class="img-fluid figure-img" data-ref-parent="fig-skglm" alt="After the patch: stopping criterion versus outer iteration for the same five response proportions. All five problems reach their stopping tolerance within nine iterations." width="700">
</div>
<figcaption class="quarto-float-caption-bottom quarto-subfloat-caption quarto-subfloat-fig" id="fig-skglm-newton-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
(b) Newton intercept updates.
</figcaption>
</figure>
</div>
</div>
</div>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-skglm-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;3: Convergence before (top) and after (bottom) replacing skglm’s gradient-based intercept update with a Newton step. The dashed lines show the stopping tolerance.
</figcaption>
</figure>
</div>
</section>
<section id="solvers-using-iteratively-reweighted-least-squares" class="level3">
<h3 class="anchored" data-anchor-id="solvers-using-iteratively-reweighted-least-squares">Solvers using iteratively reweighted least squares</h3>
<p>Solvers such as glmnet&nbsp;<span class="citation" data-cites="friedman2010">(Friedman et al. 2010)</span> use iteratively reweighted least squares (IRLS) to build a local quadratic approximation of the loss. Within each fixed approximation, fitting the intercept is a weighted least squares problem with constant curvature. A single Newton step therefore finds the best intercept value. Using that constant curvature as the gradient strategy’s bound gives the same step, so all three strategies give the same update for this quadratic problem.</p>
<p>These IRLS solvers avoid the slow convergence that we observe in our experiments. I have become more and more convinced that IRLS is the better approach for generalized linear models and have found that it often avoids some convergence traps that direct coordinate descent can fall into.</p>
</section>
</section>
<section id="conclusion" class="level2">
<h2 class="anchored" data-anchor-id="conclusion">Conclusion</h2>
<p>Our results usually favor one safeguarded Newton intercept update per pass. This simple update avoids the convergence trap of the gradient strategy. Exact intercept minimization requires more work and a more complex implementation, but offers no benefit except in a few edge cases.</p>
<p>Our theoretical explanation is local, and we do not prove a general global convergence rate for coordinate descent with Newton intercept updates. Nevertheless, our analysis and experiments point to the same practical lesson: keeping the intercept in step with the feature coefficients can make a large difference, and doing so often requires only one well-chosen update per pass.</p>




</section>


<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-friedman2010" class="csl-entry">
Friedman, Jerome, Trevor Hastie, and Robert Tibshirani. 2010. <span>“Regularization Paths for Generalized Linear Models via Coordinate Descent.”</span> <em>Journal of Statistical Software</em> 33 (1): 1–22. <a href="https://doi.org/10.18637/jss.v033.i01">https://doi.org/10.18637/jss.v033.i01</a>.
</div>
<div id="ref-larsson2026d" class="csl-entry">
Larsson, Johan, and Frederik Fabricius-Bjerre. 2026. <span>“How to Train Your Intercept: A Comparison of Intercept Update Strategies in Coordinate Descent.”</span> Pre-published October 13. <a href="https://doi.org/10.48550/arXiv.2610.18043">https://doi.org/10.48550/arXiv.2610.18043</a>.
</div>
<div id="ref-larsson2023" class="csl-entry">
Larsson, Johan, Quentin Klopfenstein, Mathurin Massias, and Jonas Wallin. 2023. <span>“Coordinate Descent for <span>SLOPE</span>.”</span> In <em>Proceedings of the 26th International Conference on Artificial Intelligence and Statistics</em>, edited by Francisco Ruiz, Jennifer Dy, and Jan-Willem van de Meent, vol. 206. Proceedings of Machine Learning Research. PMLR. <a href="https://proceedings.mlr.press/v206/larsson23a.html">https://proceedings.mlr.press/v206/larsson23a.html</a>.
</div>
<div id="ref-larsson2025" class="csl-entry">
Larsson, Johan, and Jonas Wallin. 2025. <span>“The Choice of Normalization Influences Shrinkage in Regularized Regression.”</span> <em>Transactions on Machine Learning Research</em>, November 26. <a href="https://openreview.net/forum?id=6xKyDBIwQ5">https://openreview.net/forum?id=6xKyDBIwQ5</a>.
</div>
<div id="ref-platt1998" class="csl-entry">
Platt, John C. 1998. <span>“Fast Training of Support Vector Machines Using Sequential Minimal Optimization.”</span> In <em>Advances in <span>Kernel Methods</span>: <span>Support Vector Learning</span></em>, 1st ed., edited by Bernhard Schölkopf, Christopher J. C. Burges, and Alexander J. Smola. MIT Press. <a href="https://doi.org/10.7551/mitpress/1130.003.0016">https://doi.org/10.7551/mitpress/1130.003.0016</a>.
</div>
<div id="ref-tibshirani1996" class="csl-entry">
Tibshirani, Robert. 1996. <span>“Regression Shrinkage and Selection via the Lasso.”</span> <em>The Journal of the Royal Statistical Society, Series B (Statistical Methodology)</em> 58 (1): 267–88. <a href="https://doi.org/10.1111/j.2517-6161.1996.tb02080.x">https://doi.org/10.1111/j.2517-6161.1996.tb02080.x</a>.
</div>
<div id="ref-wright2015" class="csl-entry">
Wright, Stephen. 2015. <span>“Coordinate Descent Algorithms.”</span> <em>Mathematical Programming: Series B</em> 151 (1): 3–34. <a href="https://doi.org/10.1007/s10107-015-0892-3">https://doi.org/10.1007/s10107-015-0892-3</a>.
</div>
</div></section></div> ]]></description>
  <category>research</category>
  <category>optimization</category>
  <category>coordinate-descent</category>
  <category>statistical-learning</category>
  <guid>https://jolars.co/blog/2026-10-26-how-to-train-your-intercept/</guid>
  <pubDate>Mon, 26 Oct 2026 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2026-10-26-how-to-train-your-intercept/images/trajectories.svg" medium="image" type="image/svg+xml"/>
</item>
<item>
  <title>Panache: An Editor Companion for Markdown</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2026-10-09-panache-an-editor-companion-for-markdown/</link>
  <description><![CDATA[ 





<section id="introduction" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="introduction">Introduction</h2>
<p>I am a big fan of automation and tooling, and I love setting up code formatters, linters, and language servers to make editing as smooth as possible. For many languages, such as Python, C++, JSON, and YAML, this has been relatively straightforward: I’ve been able to set everything to my liking. But Markdown has been a recurring thorn in my side.</p>
<p>Tools such as Prettier, Marksman, and markdownlint offer formatting, language server features, and linting. But most of my Markdown writing happens in Quarto and R Markdown<sup>1</sup>, and I’ve struggled to make these tools work with the syntax I use. Running Prettier on my Quarto documents has sometimes mangled fenced divs and tables. I’ve also missed features I had when editing LaTeX, where my language server, texlab, understands and can analyze citations, footnotes, and much more.</p>
<div class="no-row-height column-margin column-container"><div id="fn1"><p><sup>1</sup>&nbsp;Though I use R Markdown less and less.</p></div></div><p>Around a year ago, I decided to try to fix this by building a tool myself. Quarto and R Markdown were the starting point, but the project has since grown to support Markdown more broadly, including flavors such as MyST and mdsvex.</p>
</section>
<section id="panache" class="level2">
<h2 class="anchored" data-anchor-id="panache">Panache</h2>
<p><a href="https://panache.bz">Panache</a> is a language server, formatter, and linter for Markdown. It supports flavors including CommonMark, GitHub-Flavored Markdown, MyST, mdsvex, Pandoc Markdown, Quarto, and R Markdown. It is written in Rust and provides both a command-line tool and editor integration through the Language Server Protocol&nbsp;(LSP).</p>
<p>The idea is to bring the conveniences of code editing to document writing. The formatter takes care of layout, the linter catches problems such as unresolved references, and the language server helps you navigate and edit the document. All three share the same parser, so they work from the same understanding of your Markdown.</p>
<p>The parser builds a lossless concrete syntax tree, retaining every character in the source, including comments and whitespace. This gives the formatter the source details it needs to preserve meaning while changing layout. Panache also aims for idempotent formatting: once a document has been formatted, running the formatter again should leave it unchanged.</p>
</section>
<section id="markdown-comes-in-many-flavors" class="level2">
<h2 class="anchored" data-anchor-id="markdown-comes-in-many-flavors">Markdown Comes in Many Flavors</h2>
<p>Markdown is a family of languages with varying features and syntactic rules. A GitHub README might need pipe tables and task lists. MyST documentation uses directives and roles, while mdsvex mixes Markdown with Svelte components and expressions. A Quarto manuscript adds citations, cross-references, fenced divs, and executable code chunks. A formatter needs to recognize these constructs to preserve what the author meant.</p>
<p>Most of these flavors can be described as a set of basic Markdown features—headings, links, emphasis, and so on—plus extensions such as citations and fenced code blocks. But even when two flavors include the same feature, they can use different rules to recognize it. CommonMark and Pandoc Markdown, for instance, recognize emphasis differently and have different rules for when blank lines end or continue a list.</p>
<p>Panache therefore distinguishes between dialects and flavors. A flavor determines which features (extensions) are supported, and a dialect determines the rules for parsing them. Thankfully, there aren’t that many dialects: John Gruber’s original Markdown, CommonMark, and Pandoc Markdown are the ones that first come to mind. Not <em>every</em> Markdown feature is treated differently, and most differences concern whitespace around elements, mainly indentation and blank lines.</p>
<p>For <code>.qmd</code>, <code>.Rmd</code>, <code>.svx</code>, and <code>.svelte.md</code> files, Panache selects the corresponding flavor from the file extension. For <code>.md</code> files, you can choose a default flavor and override it for particular paths. A project with MyST documentation and a GitHub README could use this <code>panache.toml</code>:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode toml code-with-copy"><code class="sourceCode toml"><span id="cb1-1"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">flavor</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"commonmark"</span></span>
<span id="cb1-2"></span>
<span id="cb1-3"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">[flavors]</span></span>
<span id="cb1-4"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">gfm</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">[</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"README.md"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"CONTRIBUTING.md"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">]</span></span>
<span id="cb1-5"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">myst</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">[</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"docs/**/*.md"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">]</span></span></code></pre></div></div>
<p>The flavors provide a starting point, but you can also enable or disable individual syntax features through extensions. Each extension is a parser switch, with a default chosen for each flavor. For example, to add citations to CommonMark:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode toml code-with-copy"><code class="sourceCode toml"><span id="cb2-1"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">flavor</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"commonmark"</span></span>
<span id="cb2-2"></span>
<span id="cb2-3"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">[extensions]</span></span>
<span id="cb2-4"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">citations</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">true</span></span></code></pre></div></div>
<p>There are switches for tables, footnotes, math delimiters, heading attributes, and many other features. The goal is to cover all of Pandoc’s extensions plus whatever else is needed to support a variety of flavors. Overrides can also be scoped to a particular flavor. This lets you match the syntax your publishing tool accepts without adopting every extension in another flavor. The <a href="https://panache.bz/guide/configuration.html#extensions">configuration guide</a> lists the available extensions and their defaults.</p>
<p>These settings tell Panache how to read your source. They do not change the configuration of Quarto, Pandoc, or whichever tool renders the document.</p>
</section>
<section id="formatting-the-document-and-its-code" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="formatting-the-document-and-its-code">Formatting the Document and Its Code</h2>
<p>To format a document in place, run:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb3-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">panache</span> format manuscript.qmd</span></code></pre></div></div>
<p>Panache handles paragraphs, lists, tables, math, and YAML metadata, including Quarto’s <code>#|</code> chunk options. It aims to keep the source readable, with consistent spacing and layout, while preserving the document’s meaning.</p>
<p>Try it below: edit the source or choose an example to see how Panache formats it. Formatting runs entirely in your browser.</p>
<link rel="stylesheet" href="formatter-demo.css">
<div id="panache-demo" class="panache-demo" aria-label="Try Panache formatting">
    <div class="panache-demo-examples" aria-label="Example documents">
        <span>Examples:</span>
        <button type="button" class="btn btn-sm btn-outline-primary" data-example="callout" aria-pressed="true">Quarto callout</button>
        <button type="button" class="btn btn-sm btn-outline-primary" data-example="table" aria-pressed="false">Table</button>
        <button type="button" class="btn btn-sm btn-outline-primary" data-example="math" aria-pressed="false">Equation</button>
    </div>
    <div class="panache-demo-options">
        <div>
            <label for="panache-demo-width">Line width</label>
            <input id="panache-demo-width" class="form-control form-control-sm" type="number" min="30" max="120" value="60" step="1">
        </div>
        <div>
            <label for="panache-demo-wrap">Paragraph wrapping</label>
            <select id="panache-demo-wrap" class="form-select form-select-sm">
                <option value="reflow">Reflow</option>
                <option value="sentence">One sentence per line</option>
                <option value="preserve">Preserve line breaks</option>
            </select>
        </div>
        <div>
            <label for="panache-demo-math">Math formatting</label>
            <select id="panache-demo-math" class="form-select form-select-sm">
                <option value="reflow">Reflow</option>
                <option value="preserve">Preserve line breaks</option>
                <option value="single-line">Single line</option>
                <option value="verbatim">Verbatim</option>
            </select>
        </div>
    </div>
    <div class="panache-demo-panes">
        <div>
            <label for="panache-demo-input">Quarto source</label>
            <textarea id="panache-demo-input" class="form-control" rows="12" spellcheck="false" autocapitalize="off" autocomplete="off" autocorrect="off" wrap="soft" aria-describedby="panache-demo-note">::::{.callout-note}
##   Keep the analysis reproducible

A __reproducible analysis__ should be *easy to rerun*, including its data, code, and software environment.

-   Keep the `data/` directory with the analysis.
    *    Record where the data came from.
    *  Document any exclusions.
-  Save **package versions** and the random seed.

::::
</textarea>
        </div>
        <div>
            <label for="panache-demo-output">Formatted source</label>
            <textarea id="panache-demo-output" class="form-control" rows="12" spellcheck="false" wrap="off" readonly="" placeholder="Formatted source will appear here."></textarea>
        </div>
    </div>
    <div class="panache-demo-footer">
        <p id="panache-demo-status" aria-live="polite">The demo loads when it comes into view.</p>
        <button id="panache-demo-retry" type="button" class="btn btn-sm btn-outline-primary" hidden="">Retry loading</button>
        <button id="panache-demo-reset" type="button" class="btn btn-sm btn-outline-secondary">Reset example</button>
        <button id="panache-demo-copy" type="button" class="btn btn-sm btn-outline-primary" disabled="">Copy output</button>
    </div>
    <p id="panache-demo-note" class="panache-demo-note">This demo formats Quarto prose, tables, and math. Code inside chunks is left as written. For more options, try the <a href="https://panache.bz/playground/">full playground</a>.</p>
    <noscript>
        <p>Enable JavaScript to use the live demo. You can also try the <a href="https://panache.bz/playground/">Panache playground</a>.</p>
    </noscript>
</div>
<script type="module" src="formatter-demo.js"></script>

<p>You can configure the formatting separately from the Markdown syntax. For instance, these settings reflow paragraphs to a width of 80 columns:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb4" style="background: #f1f3f5;"><pre class="sourceCode toml code-with-copy"><code class="sourceCode toml"><span id="cb4-1"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">[format]</span></span>
<span id="cb4-2"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">wrap</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"reflow"</span></span>
<span id="cb4-3"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">line-width</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">80</span></span></code></pre></div></div>
<p>If you prefer one sentence per line, use <code>wrap = "sentence"</code>. If you want to keep your existing paragraph line breaks, use <code>wrap = "preserve"</code>. The fourth option, <code>wrap = "semantic"</code>, keeps the breaks you’ve placed, perhaps after a clause, and adds breaks at sentence boundaries. I like having this choice for prose, where line breaks can be useful when reviewing changes in Git.</p>
<p>Panache also formats the math itself. It adjusts operator spacing, indents math environments, and aligns columns in environments such as <code>aligned</code> and <code>array</code>. Choose the math example in the demo above to see it in action. By default, Panache also wraps long expressions (<code>math = "reflow"</code> in the <code>[format]</code> section). You can use <code>math = "preserve"</code> to retain your line breaks while still formatting the content, or <code>math = "verbatim"</code> to leave the content untouched. The <a href="https://panache.bz/guide/formatting.html#content-aware-math-formatting">math formatting guide</a> explains the options.</p>
<p>Markdown documents often contain code, whether as examples in a README or executable chunks in a Quarto manuscript. Panache can pass code blocks to external formatters, so formatting the document also formats the code inside it. Add this to <code>panache.toml</code>, for example:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb5" style="background: #f1f3f5;"><pre class="sourceCode toml code-with-copy"><code class="sourceCode toml"><span id="cb5-1"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">[formatters]</span></span>
<span id="cb5-2"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">r</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"arity"</span></span>
<span id="cb5-3"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">python</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ruff"</span></span>
<span id="cb5-4"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">latex</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"badness"</span></span></code></pre></div></div>
<p>With those tools installed and available on <code>PATH</code>, Panache uses <a href="https://arity.cc">Arity</a> for R, Ruff <a href="https://docs.astral.sh/ruff/">Ruff</a> for Python, and <a href="https://badness.dev">Badness</a> for LaTeX.<sup>2</sup> The presets supply the necessary arguments but you can also define custom formatter commands or chain multiple formatters for a language, such as running isort before Black. The <a href="https://panache.bz/reference/formatter-presets.html">formatter reference</a> lists the built-in presets. This is particularly useful for mixed-language documents: one formatting command handles the prose and delegates each code block to the appropriate tool.</p>
<div class="no-row-height column-margin column-container"><div id="fn2"><p><sup>2</sup>&nbsp;Apologies for the flagrant self-promotion here 😉.</p></div></div><p>Sometimes a particular example needs a different layout, perhaps to fit on a slide or in a paper’s narrow column. Panache’s <code>code-style</code> metadata lets you set formatting options for an entire document or override them for one chunk:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb6" style="background: #f1f3f5;"><pre class="sourceCode markdown qmd code-with-copy"><code class="sourceCode markdown"><span id="cb6-1"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```{python}</span></span>
<span id="cb6-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#| code-style:</span></span>
<span id="cb6-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#|   line-width: 40</span></span>
<span id="cb6-4"></span>
<span id="cb6-5">result <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> fit_model(predictors, response, regularization<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.1</span>)</span>
<span id="cb6-6"><span class="in" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">```</span></span></code></pre></div></div>
<p>With Ruff configured as above, this chunk uses a line width of 40. A <code>code-style</code> mapping in the document’s YAML frontmatter supplies defaults for all its code blocks, and chunk options override individual keys. This is a Panache convention, with built-in support in Arity, Black, Prettier, and Ruff. The available options depend on the formatter. See <a href="https://panache.bz/guide/configuration.html#code-style">code style metadata</a> for details.</p>
<p>I have raised a discussion topic on the <a href="https://github.com/orgs/quarto-dev/discussions/14898">Quarto CLI discussion board</a> about sanctioning <code>code-style</code> as a Quarto chunk option. Please chime in there if you think it would be useful to have this feature built into Quarto!</p>
</section>
<section id="linting-across-code-chunks" class="level2">
<h2 class="anchored" data-anchor-id="linting-across-code-chunks">Linting Across Code Chunks</h2>
<p>The built-in linter checks document structure and references, including heading hierarchy, duplicate definitions, and unresolved citations. You can run it from the terminal:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb7" style="background: #f1f3f5;"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb7-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">panache</span> lint manuscript.qmd</span></code></pre></div></div>
<p>For Quarto documents, the linter also validates YAML frontmatter, <code>#|</code> chunk options, and project files such as <code>_quarto.yml</code> and <code>_metadata.yml</code> against Quarto’s schema. For example, <code>toc: maybe</code> produces a warning because <code>toc</code> expects a boolean. You can also enable checks for misspelled keys:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb8" style="background: #f1f3f5;"><pre class="sourceCode toml code-with-copy"><code class="sourceCode toml"><span id="cb8-1"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">[lint.rules]</span></span>
<span id="cb8-2"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">quarto-schema-unknown-key</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">true</span></span></code></pre></div></div>
<p>Other rules catch problems that can be easy to miss in the rendered document: ambiguous YAML values that Quarto and Pandoc interpret differently, comments that cause Pandoc to drop a heading’s attributes, and unclosed braces or mismatched environments in math. The <a href="https://panache.bz/reference/linter-rules.html">lint rule reference</a> describes these checks and how to configure them.</p>
<p>External linters check the code inside the document. For example, this configuration enables Ruff for Python and ShellCheck for shell code:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb9" style="background: #f1f3f5;"><pre class="sourceCode toml code-with-copy"><code class="sourceCode toml"><span id="cb9-1"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">[linters]</span></span>
<span id="cb9-2"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">python</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ruff"</span></span>
<span id="cb9-3"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">sh</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"shellcheck"</span></span></code></pre></div></div>
<p>One detail matters here: code chunks in a computational document often depend on earlier chunks. Linting each chunk separately can produce misleading warnings about variables defined elsewhere. In Quarto documents, Panache groups executable chunks and supported executable inline expressions by language and sends each group to its linter in document order. Displayed code blocks and chunks explicitly marked with a literal <code>eval: false</code> are each linted separately. Panache then maps diagnostics back to their positions in the original document. Code from Quarto <code>include</code> shortcodes participates in the surrounding execution context, too.</p>
<p>That means a variable assigned in the first Python chunk is visible when Ruff checks its use in the next one. In the editor, a warning still points at the relevant line in the <code>.qmd</code> file. Supported fixes are available through code actions or <code>panache lint --fix</code>.</p>
<p>External linters are opt-in and must be installed separately. They use a fixed set of <a href="https://panache.bz/reference/linter-presets.html">presets</a>, since each integration needs to understand the tool’s diagnostics and fixes.</p>
</section>
<section id="working-in-the-editor" class="level2">
<h2 class="anchored" data-anchor-id="working-in-the-editor">Working in the Editor</h2>
<p>The language server brings these features into the editor and adds navigation, completion, and refactoring. When writing a paper, for example, you can complete a citation key from the bibliography, hover over it to see the entry, and jump to its definition. For Quarto cross-references, you can jump from <code>@fig-results</code> to the figure’s label or rename the label and its references together.</p>
<p>Panache also understands Quarto and Bookdown project structure, so it can resolve references across files. That becomes useful as soon as a manuscript grows into several chapters or a website shares a bibliography across pages. You can find the places where a citation or cross-reference is used, or search headings across the project to jump to a section.</p>
<p>In editors that support linked editing, you can also edit a label and have its linked occurrences in the current document update as you type. This works for reference links, footnotes, citations, and Quarto cross-references, among others.</p>
<p>When you rename a file in an editor that supports LSP file renaming, Panache can update the paths that point to it. This includes links, images, Quarto shortcodes, and supported metadata paths, such as bibliography files. Moving a chapter or renaming an image therefore need not leave you searching the project for every reference to its old name.</p>
<p>There are smaller conveniences, too: a document outline, folding for sections and code blocks, completion for file paths, and code actions to convert between inline and reference links or footnotes. You can also convert between pipe, simple, multiline, and grid tables when the destination syntax is enabled.</p>
<p>The <a href="https://marketplace.visualstudio.com/items?itemName=jolars.panache">VS Code extension</a> bundles a Panache binary for supported platforms and starts the language server automatically, with a download fallback when no binary is bundled. It also works in Positron. For Neovim, Helix, Emacs, and Zed, the <a href="https://panache.bz/guide/lsp.html#editor-configuration">language server guide</a> has setup instructions.</p>
<p>For RStudio, the <a href="https://jolars.github.io/panache-r/">Panache R package</a> provides addins to format the active document or selected blocks. The package is in early development and provides formatting; linting is available through the command-line tool or an editor connected to the language server.</p>
</section>
<section id="getting-started" class="level2">
<h2 class="anchored" data-anchor-id="getting-started">Getting Started</h2>
<p>If you want to try Panache without installing anything, there is a <a href="https://panache.bz/playground/">browser playground</a>. Paste in a document to experiment with formatting and configuration.</p>
<p>You can install the command-line tool with Cargo:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb10" style="background: #f1f3f5;"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb10-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">cargo</span> install <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">--locked</span> panache</span></code></pre></div></div>
<p>Packages are also available through Homebrew, npm, PyPI, and Nixpkgs, along with prebuilt binaries. The <a href="https://panache.bz/getting-started.html">installation guide</a> covers these options.</p>
<p>To check a whole project, run these commands from its root:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb11" style="background: #f1f3f5;"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb11-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">panache</span> format <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">--check</span> .</span>
<span id="cb11-2"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">panache</span> lint .</span></code></pre></div></div>
<p>The first reports files that need formatting without changing them. The second reports lint diagnostics. Both can run in CI, and there are integrations for <a href="https://panache.bz/guide/integrations.html">pre-commit and GitHub Actions</a>.</p>
</section>
<section id="performance" class="level2">
<h2 class="anchored" data-anchor-id="performance">Performance</h2>
<p>I also want formatting to be fast enough that I don’t think about it when saving a file. Panache’s native executable has low startup overhead, and the project includes benchmarks against other formatters on real Markdown and Quarto sources, comparisons of linters, and measurements of language-server responsiveness.</p>
<section id="formatting" class="level3">
<h3 class="anchored" data-anchor-id="formatting">Formatting</h3>
<p>Figure&nbsp;1 shows a selection from the <a href="https://github.com/jolars/panache/blob/74fc1a830f3f56692ab7e1e813a44173953e6794/docs/guide/performance_data.json">recorded benchmark results</a>, collected on September 10, 2026, on Linux with an Intel Core Ultra 7 155U. Values are mean wall-clock times in milliseconds for separate command-line invocations, including process startup.</p>
<div class="cell">
<div class="cell-output-display">
<div id="fig-formatter-benchmarks" class="quarto-float quarto-figure quarto-figure-center anchored" alt="Dot chart comparing Panache, Prettier, rumdl, and Yamark on Tables, Math, and the Pandoc manual. Documents have distinct colors. Yamark is fastest on all three documents, followed by Panache.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-formatter-benchmarks-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-10-09-panache-an-editor-companion-for-markdown/index_files/figure-html/fig-formatter-benchmarks-1.png" class="img-fluid figure-img" alt="Dot chart comparing Panache, Prettier, rumdl, and Yamark on Tables, Math, and the Pandoc manual. Documents have distinct colors. Yamark is fastest on all three documents, followed by Panache." width="624">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-formatter-benchmarks-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: Mean wall-clock time per formatting invocation, including process startup. The vertical axis uses a logarithmic scale; lower is faster.
</figcaption>
</figure>
</div>
</div>
</div>
<p>These measurements used Panache 3.9.0, Prettier 3.9.6, rumdl 0.2.52, and Yamark 0.3.0. On these three inputs, Panache was roughly 22 to 55 times as fast as Prettier. Yamark was faster still. Panache, rumdl, and Yamark are all written in Rust, so it is not surprising that they are faster than Prettier, which is written in JavaScript.</p>
<p>Yamark is faster than Panache partly because it does less work: for instance, it doesn’t format math or support Panache’s full extension and flavor system. I will continue to optimize Panache, but I’m not sure it will ever be as fast as Yamark. Still, I think formatting the Pandoc manual’s more than 8,000 lines in 50 ms is plenty fast enough!</p>
</section>
<section id="linting" class="level3">
<h3 class="anchored" data-anchor-id="linting">Linting</h3>
<p>Figure&nbsp;2 compares the linters on the same three documents. I collected these <a href="performance_lint_single_data.json">results</a> on October 9, 2026, on Linux with an Intel Core Ultra 7 155U, using Panache 3.14.0, rumdl 0.2.64, mado 0.3.2, and markdownlint 0.49.1. As with the formatter comparison, the measurements include process startup. CLI caches and external linters were disabled. Mado skips <code>.qmd</code> files, so I gave it identical copies with a <code>.md</code> extension.</p>
<div class="cell">
<div class="cell-output-display">
<div id="fig-linter-benchmarks" class="quarto-float quarto-figure quarto-figure-center anchored" alt="Dot chart comparing Panache, rumdl, mado, and markdownlint on Tables, Math, and the Pandoc manual. Mado is fastest on all three documents, followed by Panache, rumdl, and markdownlint.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-linter-benchmarks-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-10-09-panache-an-editor-companion-for-markdown/index_files/figure-html/fig-linter-benchmarks-1.png" class="img-fluid figure-img" alt="Dot chart comparing Panache, rumdl, mado, and markdownlint on Tables, Math, and the Pandoc manual. Mado is fastest on all three documents, followed by Panache, rumdl, and markdownlint." width="624">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-linter-benchmarks-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: Mean wall-clock time per linting invocation, including process startup. The vertical axis uses a logarithmic scale; lower is faster. The tools check different rules and support different syntax.
</figcaption>
</figure>
</div>
</div>
</div>
<p>Panache linted the two Quarto documents in about 15 ms each and the Pandoc manual in about 45 ms. Mado was faster on all three inputs, while rumdl and markdownlint took longer. The linters check different rules and support different syntax, so the timings compare the work each tool does on these documents.</p>
</section>
<section id="language-server" class="level3">
<h3 class="anchored" data-anchor-id="language-server">Language Server</h3>
<p>For the language server, I care most about how quickly it responds while I’m editing. Figure&nbsp;3 compares Panache 3.11.0 with Marksman 2026-02-08, using <a href="https://github.com/jolars/panache/blob/e161c37a7a1f82dfd322ce2aae4d561a96326a31/docs/guide/performance_lsp_memory_data.json">measurements collected on September 20, 2026</a>, on Linux with an AMD Ryzen 9 7900. The benchmark opens the five largest Markdown files in the Rust Book and starts three fresh processes per server. It times request round trips over stdio after warmup, then makes 1,000 reference-label edits per process, following each edit with a definition request. The plot shows a selection of the shared Markdown navigation features.</p>
<div class="cell">
<div class="cell-output-display">
<div id="fig-lsp-benchmarks" class="quarto-float quarto-figure quarto-figure-center anchored" alt="Dot chart comparing Panache and Marksman request latency, with distinct colors for document symbols, definition, and edit-to-definition requests. Both respond to document-symbol and definition requests in less than a millisecond. After an edit, median definition latency is about 1.5 ms for Panache and 30 ms for Marksman.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-lsp-benchmarks-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-10-09-panache-an-editor-companion-for-markdown/index_files/figure-html/fig-lsp-benchmarks-1.png" class="img-fluid figure-img" alt="Dot chart comparing Panache and Marksman request latency, with distinct colors for document symbols, definition, and edit-to-definition requests. Both respond to document-symbol and definition requests in less than a millisecond. After an edit, median definition latency is about 1.5 ms for Panache and 30 ms for Marksman." width="624">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-lsp-benchmarks-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;3: Median language-server request latency across pooled samples from three processes. The vertical axis uses a logarithmic scale; lower is faster.
</figcaption>
</figure>
</div>
</div>
</div>
<p>Both servers answered the warm document-symbol and definition requests in well under a millisecond. The larger difference came after an edit: Panache’s median edit-to-definition latency was about 1.5 ms, compared with 30 ms for Marksman. Their 95th percentiles were about 2.1 ms and 46 ms, respectively.</p>
<p>The <a href="https://panache.bz/guide/performance.html">performance page</a> has the full results, repository-wide comparisons, and commands for reproducing the benchmarks. If you try Panache on your own documents, I’d be happy to hear how it works for you. Bug reports and examples of syntax it handles poorly are welcome on <a href="https://github.com/jolars/panache/issues">GitHub</a>.</p>



</section>
</section>


 ]]></description>
  <category>panache</category>
  <category>pandoc</category>
  <category>quarto</category>
  <category>markdown</category>
  <category>commonmark</category>
  <category>myst</category>
  <category>mdsvex</category>
  <category>formatter</category>
  <category>linter</category>
  <category>r-markdown</category>
  <category>language-server</category>
  <guid>https://jolars.co/blog/2026-10-09-panache-an-editor-companion-for-markdown/</guid>
  <pubDate>Fri, 09 Oct 2026 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2026-10-09-panache-an-editor-companion-for-markdown/og.png" medium="image" type="image/png" height="76" width="144"/>
</item>
<item>
  <title>Eunoia: Euler and Venn Diagrams in Five Languages</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2026-07-04-eunoia/</link>
  <description><![CDATA[ 





<div class="callout callout-style-default callout-tip callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Tip
</div>
</div>
<div class="callout-body-container callout-body">
<p>Nicole M. Lee and I have written a research paper describing Eunoia, now available on arXiv&nbsp;<span class="citation" data-cites="larsson2026f">(Larsson and Lee 2026)</span>. It covers the design, fitting algorithms, and plotting tools in more detail than this blog post. You can also use it to cite Eunoia in your own work, should you find it helpful!</p>
</div>
</div>
<p>Ten years ago I wrote <a href="https://jolars.github.io/eulerr">eulerr</a> as part of my Bachelor’s thesis&nbsp;<span class="citation" data-cites="larsson2018a">(Larsson 2018)</span> in statistics—an R package for area-proportional <a href="https://en.wikipedia.org/wiki/Euler_diagram">Euler diagrams</a>. At the time it was the first package to feature ellipses beyond three sets, EulerAPE&nbsp;<span class="citation" data-cites="micallef2014a">(Micallef and Rodgers 2014)</span> being the first to introduce ellipses at all. eulerr has been surprisingly popular, having been used in (at least) 600 academic papers. It was written in a mixture of R and C++, with the latter doing the heavy work of computing the layouts, whereas the R code handled the interface, plotting, and organization of the optimization pipeline (which includes both an initial layout and a final fit).</p>
<p>This architecture proved good enough to beat most of the competitors in terms of both performance and accuracy<sup>1</sup>, but a few things have kept gnawing at me over the years. Specifically:</p>
<div class="no-row-height column-margin column-container"><div id="fn1"><p><sup>1</sup>&nbsp;See <span class="citation" data-cites="larsson2018">Larsson and Gustafsson (2018)</span> for comparisons and benchmarks.</p></div></div><ul>
<li>The mix of C++ and R code meant that it was hard to port the code to other languages, particularly because eulerr relied on R’s built-in optimization routines (<code>nlm()</code> in particular), which meant that it was hard to make a faithful port.</li>
<li>The web app that built on top of eulerr was based on Shiny. And although Shiny is a convenient and powerful framework, it meant that I had to maintain a dedicated server to run the app, which had to be manually accessed and updated in order to keep it aligned with the latest version of eulerr.</li>
</ul>
<p>I always knew that the way out of this would be to rewrite the entire fitting engine in a single language, so that I could maintain thin wrappers in the high-level languages&nbsp;(R, Python, Julia, etc.) around a single core. And that that core should be in a language that compiles to WebAssembly, so that I could build a static web app around it without the need for a server. Until recently I always imagined that this rewrite would be a rewrite in C++. But in recent months I have been learning Rust, and have grown to love both the language and, perhaps in particular, its tooling.</p>
<p>The core engine now lives in a standalone Rust library called <a href="https://crates.io/crates/eunoia">Eunoia</a> and eulerr is just one of several thin bindings on top of it. The same core also drives packages for <a href="https://pypi.org/project/eunoia">Python</a>, <a href="https://github.com/jolars/Eunoia.jl">Julia</a>, and <a href="https://github.com/jolars/eunoia">JavaScript</a><sup>2</sup>, plus a <a href="https://eunoia.bz/app">web app</a> you can use without installing anything. This is the project that pulled <a href="https://jolars.co/blog/2026-06-10-basin/index.html">Basin</a>, my optimization library, into existence, and it is finally ready for a proper introduction.</p>
<div class="no-row-height column-margin column-container"><div id="fn2"><p><sup>2</sup>&nbsp;Developed in the main repository for Eunoia.</p></div></div><section id="what-it-does" class="level2">
<h2 class="anchored" data-anchor-id="what-it-does">What It Does</h2>
<p>You hand Eunoia a set of quantities—the sizes of some sets and the sizes of their intersections—and it lays out circles, ellipses, squares, or rectangles whose overlapping areas match those quantities as closely as possible. When the numbers admit an exact diagram, you get one. When they do not, which is the common case for three or more sets, you get the best approximation the optimizer can find, together with residuals and goodness-of-fit statistics so you can tell whether the picture is trustworthy.</p>
<p><a href="https://en.wikipedia.org/wiki/Venn_diagram">Venn diagrams</a> are also included. A Venn diagram is just an Euler diagram in which every intersection has to be drawn whether or not it is empty, and Eunoia knows the canonical arrangements—circles for up to three sets, ellipses for four and five.</p>
</section>
<section id="one-core-many-languages" class="level2">
<h2 class="anchored" data-anchor-id="one-core-many-languages">One Core, Many Languages</h2>
<p>The whole point of the rewrite is that there is now a single implementation to maintain, and everything else is a binding. Table&nbsp;1 shows the family as it stands today.</p>
<div id="tbl-ecosystem" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-tbl figure">
<figcaption class="quarto-float-caption-top quarto-float-caption quarto-float-tbl" id="tbl-ecosystem-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;1: The family of Eunoia packages, all powered by the same Rust core.
</figcaption>
<div aria-describedby="tbl-ecosystem-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<table class="caption-top table">
<thead>
<tr class="header">
<th>Language</th>
<th>Package</th>
<th>Install</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>Rust</td>
<td><a href="https://crates.io/crates/eunoia"><code>eunoia</code></a></td>
<td><code>cargo add eunoia</code></td>
</tr>
<tr class="even">
<td>R</td>
<td><a href="https://cran.r-project.org/package=eulerr"><code>eulerr</code></a></td>
<td><code>install.packages("eulerr")</code></td>
</tr>
<tr class="odd">
<td>Python</td>
<td><a href="https://pypi.org/project/eunoia/"><code>eunoia</code></a></td>
<td><code>pip install eunoia</code></td>
</tr>
<tr class="even">
<td>Julia</td>
<td><a href="https://github.com/jolars/Eunoia.jl"><code>Eunoia.jl</code></a></td>
<td>from GitHub (see below)</td>
</tr>
<tr class="odd">
<td>JavaScript</td>
<td><a href="https://www.npmjs.com/package/@jolars/eunoia"><code>@jolars/eunoia</code></a></td>
<td><code>npm install @jolars/eunoia</code></td>
</tr>
<tr class="even">
<td>Web app</td>
<td><a href="https://eunoia.bz/app">eunoia.bz</a></td>
<td>build diagrams in the browser</td>
</tr>
</tbody>
</table>
</div>
</figure>
</div>
<p>Because every package calls the same Rust code, they fit identical diagrams from the same specifications. The only differences are in the plotting. To show this by example, here is the same three-set example—a tiny movie library tagged by genre—fit twice, once in R and once in Python. First, the R version:</p>
<div class="tabset-margin-container"></div><div class="panel-tabset">
<ul class="nav nav-tabs"><li class="nav-item"><a class="nav-link active" id="tabset-1-1-tab" data-bs-toggle="tab" data-bs-target="#tabset-1-1" aria-controls="tabset-1-1" aria-selected="true" href="">R</a></li><li class="nav-item"><a class="nav-link" id="tabset-1-2-tab" data-bs-toggle="tab" data-bs-target="#tabset-1-2" aria-controls="tabset-1-2" aria-selected="false" href="">Python</a></li></ul>
<div class="tab-content">
<div id="tabset-1-1" class="tab-pane active" aria-labelledby="tabset-1-1-tab">
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(eulerr)</span>
<span id="cb1-2"></span>
<span id="cb1-3">genres <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">euler</span>(</span>
<span id="cb1-4">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb1-5">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">20</span>,</span>
<span id="cb1-6">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">14</span>,</span>
<span id="cb1-7">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Drama"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">18</span>,</span>
<span id="cb1-8">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Comedy"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>,</span>
<span id="cb1-9">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Drama"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>,</span>
<span id="cb1-10">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy&amp;Drama"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>,</span>
<span id="cb1-11">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Comedy&amp;Drama"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span></span>
<span id="cb1-12">  ),</span>
<span id="cb1-13">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">shape =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ellipse"</span></span>
<span id="cb1-14">)</span>
<span id="cb1-15"></span>
<span id="cb1-16"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(genres)</span></code></pre></div></div>
<div class="cell-output-display">
<div id="fig-eulerr" class="quarto-float quarto-figure quarto-figure-center anchored" data-fig-align="center" alt="An area-proportional Euler diagram of three overlapping ellipses labeled Adventure, Comedy, and Drama, fitted by the R package eulerr.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-eulerr-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-07-04-eunoia/index_files/figure-html/fig-eulerr-1.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="An area-proportional Euler diagram of three overlapping ellipses labeled Adventure, Comedy, and Drama, fitted by the R package eulerr." width="384">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-eulerr-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: eulerr (R)
</figcaption>
</figure>
</div>
</div>
</div>
</div>
<div id="tabset-1-2" class="tab-pane" aria-labelledby="tabset-1-2-tab">
<p>Next, the Python version:</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">import</span> eunoia <span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">as</span> eu</span>
<span id="cb2-2"><span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">import</span> matplotlib.pyplot <span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">as</span> plt</span>
<span id="cb2-3"></span>
<span id="cb2-4">genres <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> eu.euler(</span>
<span id="cb2-5">    {</span>
<span id="cb2-6">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure"</span>: <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">20</span>,</span>
<span id="cb2-7">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy"</span>: <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">14</span>,</span>
<span id="cb2-8">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Drama"</span>: <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">18</span>,</span>
<span id="cb2-9">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Comedy"</span>: <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>,</span>
<span id="cb2-10">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Drama"</span>: <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>,</span>
<span id="cb2-11">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy&amp;Drama"</span>: <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>,</span>
<span id="cb2-12">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Comedy&amp;Drama"</span>: <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>,</span>
<span id="cb2-13">    },</span>
<span id="cb2-14">    shape<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ellipse"</span>,</span>
<span id="cb2-15">)</span>
<span id="cb2-16"></span>
<span id="cb2-17">ax <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> genres.plot()</span>
<span id="cb2-18">ax.figure.subplots_adjust(left<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, right<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, top<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, bottom<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>)</span>
<span id="cb2-19"></span>
<span id="cb2-20">plt.show()</span></code></pre></div></div>
<div class="cell-output-display">
<div id="fig-eunoia-py" class="quarto-float quarto-figure quarto-figure-center anchored" data-fig-align="center" alt="An area-proportional Euler diagram of the same three sets, fitted by the Python package eunoia, visually identical to the R version.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-eunoia-py-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-07-04-eunoia/index_files/figure-html/fig-eunoia-py-1.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="An area-proportional Euler diagram of the same three sets, fitted by the Python package eunoia, visually identical to the R version." width="384">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-eunoia-py-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: eunoia (Python)
</figcaption>
</figure>
</div>
</div>
</div>
</div>
</div>
</div>
<p>The two pictures are essentially the same picture because the fit is the same fit. The plotting is where the bindings diverge—eulerr draws through R’s grid graphics, the Python package through Matplotlib—but the layout is the same. And not only that, but the actual geometry of the fitted shapes, including how their labels are laid out, comes from the Rust library. The downstream packages (R, Python, Julia, JavaScript) just call the core to get the layout and drive a fixed-point plotting routine to settle the shapes and labels into their final positions.</p>
<p>That core takes the same specification everywhere. The keys name sets and their intersections with an ampersand, the values are the sizes of the disjoint regions, and a shape argument picks the family. Here is that single spec written in each language.</p>
<div class="tabset-margin-container"></div><div class="panel-tabset">
<ul class="nav nav-tabs"><li class="nav-item"><a class="nav-link active" id="tabset-2-1-tab" data-bs-toggle="tab" data-bs-target="#tabset-2-1" aria-controls="tabset-2-1" aria-selected="true" href="">Rust</a></li><li class="nav-item"><a class="nav-link" id="tabset-2-2-tab" data-bs-toggle="tab" data-bs-target="#tabset-2-2" aria-controls="tabset-2-2" aria-selected="false" href="">R</a></li><li class="nav-item"><a class="nav-link" id="tabset-2-3-tab" data-bs-toggle="tab" data-bs-target="#tabset-2-3" aria-controls="tabset-2-3" aria-selected="false" href="">Python</a></li><li class="nav-item"><a class="nav-link" id="tabset-2-4-tab" data-bs-toggle="tab" data-bs-target="#tabset-2-4" aria-controls="tabset-2-4" aria-selected="false" href="">Julia</a></li><li class="nav-item"><a class="nav-link" id="tabset-2-5-tab" data-bs-toggle="tab" data-bs-target="#tabset-2-5" aria-controls="tabset-2-5" aria-selected="false" href="">JavaScript</a></li></ul>
<div class="tab-content">
<div id="tabset-2-1" class="tab-pane active" aria-labelledby="tabset-2-1-tab">
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode rust code-with-copy"><code class="sourceCode rust"><span id="cb3-1"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">use</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">eunoia::geometry::shapes::</span>Ellipse<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb3-2"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">use</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">eunoia::</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span>DiagramSpecBuilder<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> Fitter<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> InputType<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">};</span></span>
<span id="cb3-3"></span>
<span id="cb3-4"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">let</span> spec <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">DiagramSpecBuilder::</span>new()</span>
<span id="cb3-5">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>set(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">20.0</span>)</span>
<span id="cb3-6">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>set(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">14.0</span>)</span>
<span id="cb3-7">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>set(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Drama"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">18.0</span>)</span>
<span id="cb3-8">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>intersection(<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span>[<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy"</span>]<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6.0</span>)</span>
<span id="cb3-9">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>intersection(<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span>[<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Drama"</span>]<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5.0</span>)</span>
<span id="cb3-10">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>intersection(<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span>[<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Drama"</span>]<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4.0</span>)</span>
<span id="cb3-11">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>intersection(<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span>[<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Drama"</span>]<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.0</span>)</span>
<span id="cb3-12">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>input_type(<span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">InputType::</span>Exclusive)</span>
<span id="cb3-13">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>build()</span>
<span id="cb3-14">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>unwrap()<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb3-15"></span>
<span id="cb3-16"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">let</span> layout <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">Fitter::</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span>Ellipse<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span><span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">::</span>new(<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span>spec)<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>seed(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>)<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>fit()<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>unwrap()<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span></code></pre></div></div>
</div>
<div id="tabset-2-2" class="tab-pane" aria-labelledby="tabset-2-2-tab">
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb4" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb4-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(eulerr)</span>
<span id="cb4-2"></span>
<span id="cb4-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">euler</span>(</span>
<span id="cb4-4">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb4-5">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">20</span>,</span>
<span id="cb4-6">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">14</span>,</span>
<span id="cb4-7">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Drama"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">18</span>,</span>
<span id="cb4-8">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Comedy"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>,</span>
<span id="cb4-9">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Drama"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>,</span>
<span id="cb4-10">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy&amp;Drama"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>,</span>
<span id="cb4-11">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Comedy&amp;Drama"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span></span>
<span id="cb4-12">  ),</span>
<span id="cb4-13">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">shape =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ellipse"</span></span>
<span id="cb4-14">)</span></code></pre></div></div>
</div>
<div id="tabset-2-3" class="tab-pane" aria-labelledby="tabset-2-3-tab">
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb5" style="background: #f1f3f5;"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb5-1"><span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">import</span> eunoia <span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">as</span> eu</span>
<span id="cb5-2"></span>
<span id="cb5-3">eu.euler(</span>
<span id="cb5-4">    {</span>
<span id="cb5-5">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure"</span>: <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">20</span>,</span>
<span id="cb5-6">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy"</span>: <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">14</span>,</span>
<span id="cb5-7">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Drama"</span>: <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">18</span>,</span>
<span id="cb5-8">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Comedy"</span>: <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>,</span>
<span id="cb5-9">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Drama"</span>: <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>,</span>
<span id="cb5-10">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy&amp;Drama"</span>: <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>,</span>
<span id="cb5-11">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Comedy&amp;Drama"</span>: <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>,</span>
<span id="cb5-12">    },</span>
<span id="cb5-13">    shape<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ellipse"</span>,</span>
<span id="cb5-14">)</span></code></pre></div></div>
</div>
<div id="tabset-2-4" class="tab-pane" aria-labelledby="tabset-2-4-tab">
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb6" style="background: #f1f3f5;"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb6-1"><span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">using</span> <span class="bu" style="color: null;
background-color: null;
font-style: inherit;">Eunoia</span></span>
<span id="cb6-2"></span>
<span id="cb6-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">euler</span>(</span>
<span id="cb6-4">    <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">Dict</span>(</span>
<span id="cb6-5">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure"</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=&gt;</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">20</span>,</span>
<span id="cb6-6">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy"</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=&gt;</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">14</span>,</span>
<span id="cb6-7">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Drama"</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=&gt;</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">18</span>,</span>
<span id="cb6-8">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Comedy"</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=&gt;</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>,</span>
<span id="cb6-9">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Drama"</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=&gt;</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>,</span>
<span id="cb6-10">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy&amp;Drama"</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=&gt;</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>,</span>
<span id="cb6-11">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Comedy&amp;Drama"</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=&gt;</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>,</span>
<span id="cb6-12">    );</span>
<span id="cb6-13">    shape <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ellipse"</span>,</span>
<span id="cb6-14">)</span></code></pre></div></div>
</div>
<div id="tabset-2-5" class="tab-pane" aria-labelledby="tabset-2-5-tab">
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb7" style="background: #f1f3f5;"><pre class="sourceCode js code-with-copy"><code class="sourceCode javascript"><span id="cb7-1"><span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">import</span> { euler } <span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">from</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"@jolars/eunoia"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb7-2"></span>
<span id="cb7-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">euler</span>({</span>
<span id="cb7-4">  <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">sets</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> {</span>
<span id="cb7-5">    <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Adventure</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">20</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Comedy</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">14</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Drama</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">18</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb7-6">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Comedy"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Drama"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Comedy&amp;Drama"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb7-7">    <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;Comedy&amp;Drama"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb7-8">  }<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb7-9">  <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">shape</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ellipse"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb7-10">  <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">inputType</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"exclusive"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb7-11">})<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span></code></pre></div></div>
</div>
</div>
</div>
<p>As you can see, the specifications are nearly identical across languages. The only differences are in the syntax of the language itself, and in the fact that the Rust version is more verbose because it is a lower-level language than the others.</p>
<p>Next, I will show some of the improvements that the rewrite in Rust brings to the table.</p>
</section>
<section id="whats-new" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="whats-new">What’s New</h2>
<p>The rewrite in Rust comes with a number of improvements over the original C++ implementation. The major ones are:</p>
<ul>
<li>A new algorithm for fitting diagrams that is both more robust and accurate.</li>
<li>An overall faster and more efficient implementation, thanks to exact analytical gradients and sparse intersection-handling.</li>
<li>Additional shapes: squares and rectangles (including rotated ones).</li>
<li>Collision-aware labeling that avoids overlaps with boundaries and other labels.</li>
</ul>
<p>In the following section, I will discuss each of these items.</p>
<section id="the-new-algorithm" class="level3">
<h3 class="anchored" data-anchor-id="the-new-algorithm">The New Algorithm</h3>
<p>The fundamental algorithm in Eunoia is unchanged from that in eulerr:</p>
<ol type="1">
<li><p>We start with an initial layout that uses multi-dimensional scaling&nbsp;(MDS) to lay out the shapes to minimize the differences between the distances between shapes in the current fit compared to the ones that would be required from an exact fit. This idea comes from <span class="citation" data-cites="wilkinson2012">Wilkinson (2012)</span>, and his seminal venneuler package for R. It was later improved by <span class="citation" data-cites="frederickson2015b">Frederickson (2015)</span>, who introduced the idea of using a relaxation of the loss function for disjoint and nested sets.</p></li>
<li><p>This initial layout is fed to a second optimization step that computes a loss over the differences between the areas of intersections of the diagram with those from the set specification. The optimizer then iteratively adjusts the shapes to minimize this loss.</p></li>
</ol>
<p>Because the initial layout sometimes gets stuck in local minima, the original eulerr implementation would run this initial optimization step for a number of random starting layouts, and then pick the best one to feed to the final optimization step. Specifically for the case of ellipses and three sets, the algorithm would also (optionally) resort to a fallback optimization step using GenSA&nbsp;<span class="citation" data-cites="xiang2013">(Xiang et al. 2013)</span> if the final loss was above a certain threshold. The diagram in Figure&nbsp;3 shows this entire (old) pipeline from eulerr.</p>
<div id="fig-flowchart-old" class="quarto-float quarto-figure quarto-figure-center anchored" alt="The original eulerr pipeline tries random starting layouts, selects the best initial fit, and optimizes it. For three ellipses with excessive diagram error, it runs simulated annealing before returning the solution.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-flowchart-old-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-07-04-eunoia/images/flowchart-old.svg" class="img-fluid figure-img" alt="The original eulerr pipeline tries random starting layouts, selects the best initial fit, and optimizes it. For three ellipses with excessive diagram error, it runs simulated annealing before returning the solution." width="360">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-flowchart-old-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;3: The original fitting pipeline in eulerr.
</figcaption>
</figure>
</div>
<p>This worked well enough to beat the competition&nbsp;<span class="citation" data-cites="larsson2018">(Larsson and Gustafsson 2018)</span>, but when I rewrote the code for Eunoia, I wanted to introduce a few improvements.</p>
<ul>
<li><p>Instead of only running the initial optimization step for several random starting layouts and then picking the best one, we now run the <em>entire</em> optimization pipeline for these initial layouts. And because this is embarrassingly parallel, we also run these attempts in parallel. The reasoning is that there may actually be multiple initial layouts that have more or less the same initial loss but that lead to very different final losses.</p>
<p>In addition, this also opens up the option of forwarding curated starting layouts to the optimizer, and currently we always feed a Venn diagram layout as one of the layouts carried forward from the initial optimization step. For set combinations where all intersections are present, this is usually the best starting layout and will quickly lead to an exact fit if the numbers admit one.</p></li>
<li><p>The default optimizer is now Levenberg–Marquardt (LM; changed from R’s <code>nlm()</code>). It took some effort to finally find an algorithm that worked better than <code>nlm()</code>, but the LM algorithm is designed precisely to handle the default loss function—a sum of squared differences—and it shows, being both faster and more accurate than <code>nlm()</code>’s more general trust region method.</p></li>
<li><p>The fallback optimization step is now enabled by default—for all shapes and any size of diagram. It uses a memetic variant of the CMA-ES algorithm&nbsp;<span class="citation" data-cites="hansen1996">(Hansen and Ostermeier 1996)</span>, using LM as the meme (local search) to polish the best solution found by CMA-ES.</p></li>
<li><p>For non-squared, but continuous, loss functions, Eunoia uses L-BFGS-B as the default optimizer, which (like LM) is a quasi-Newton method, but doesn’t rely on the loss being squared residuals. For non-continuous loss functions, Eunoia uses the Nelder–Mead simplex method (in fact an improved version of it). eulerr used <code>nlm()</code> for these losses too, computing gradients numerically, but for losses like the maximum absolute error, the gradient is essentially flat over large regions of the parameter space, which makes <code>nlm()</code> struggle. There is also the option to use MADS (Mesh Adaptive Direct Search) for non-continuous losses, which is typically more robust than Nelder–Mead, but slower. The default is still Nelder–Mead for that reason, but this might change in the future.</p></li>
</ul>
<p>You can see the new pipeline in Figure&nbsp;4.</p>
<div id="fig-flowchart-new" class="quarto-float quarto-figure quarto-figure-center anchored" alt="Eunoia runs starting layouts in parallel and optimizes each layout. If the loss exceeds the threshold, it uses CMA-ES followed by local optimization. It keeps the attempt with the lowest loss.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-flowchart-new-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-07-04-eunoia/images/flowchart-new.svg" class="img-fluid figure-img" alt="Eunoia runs starting layouts in parallel and optimizes each layout. If the loss exceeds the threshold, it uses CMA-ES followed by local optimization. It keeps the attempt with the lowest loss." width="360">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-flowchart-new-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;4: The new fitting pipeline in Eunoia.
</figcaption>
</figure>
</div>
<p>The new algorithm is both more robust and more accurate than the old one.</p>
</section>
<section id="performance-and-efficiency" class="level3">
<h3 class="anchored" data-anchor-id="performance-and-efficiency">Performance and Efficiency</h3>
<p>Another upgrade that comes with Eunoia is that the optimizer now uses exact analytical gradients for the smooth loss functions, which provides a significant speedup over the numerical gradients used in eulerr. In addition, and unlike eulerr, Eunoia also keeps track of only the intersection areas that are actually present in the diagram. This didn’t use to be the case with eulerr, which generated a <img src="https://latex.codecogs.com/png.latex?2%5En%20-%201"> sized list of all combinations for <img src="https://latex.codecogs.com/png.latex?n"> sets, and meant that it choked on large set combinations. Eunoia (and the new eulerr) only keeps track of the intersections that are actually present, which makes it possible to fit diagrams with many sets, as long as the number of non-empty intersections is not too large.</p>
</section>
<section id="additional-shapes" class="level3">
<h3 class="anchored" data-anchor-id="additional-shapes">Additional Shapes</h3>
<p>eulerr only supported two shapes: circles and ellipses. Eunoia adds squares and rectangles (optionally rotated) to the mix. Here you can see the shapes in action, and also the recent plot composition features of eulerr that—in patchwork style—allow you to combine multiple diagrams into a single figure.</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb8" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb8-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(eulerr)</span>
<span id="cb8-2"></span>
<span id="cb8-3">combo <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb8-4">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"A"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">20</span>,</span>
<span id="cb8-5">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"C"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">14</span>,</span>
<span id="cb8-6">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"D"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">18</span>,</span>
<span id="cb8-7">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"A&amp;C"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>,</span>
<span id="cb8-8">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"A&amp;D"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>,</span>
<span id="cb8-9">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"C&amp;D"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>,</span>
<span id="cb8-10">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"A&amp;C&amp;D"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span></span>
<span id="cb8-11">)</span>
<span id="cb8-12"></span>
<span id="cb8-13">fit_circle <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">euler</span>(combo, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">shape =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"circle"</span>)</span>
<span id="cb8-14">fit_ellipse <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">euler</span>(combo, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">shape =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ellipse"</span>)</span>
<span id="cb8-15">fit_square <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">euler</span>(combo, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">shape =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"square"</span>)</span>
<span id="cb8-16">fit_rectangle <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">euler</span>(combo, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">shape =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"rectangle"</span>)</span>
<span id="cb8-17"></span>
<span id="cb8-18">(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(fit_circle) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(fit_ellipse)) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|</span></span>
<span id="cb8-19">  (<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(fit_square) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">|</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(fit_rectangle))</span></code></pre></div></div>
<div class="cell-output-display">
<div id="fig-shapes" class="quarto-float quarto-figure quarto-figure-center anchored" data-fig-align="center" alt="Four Euler diagrams represent the same intersections of sets A, C, and D using circles, ellipses, squares, and rectangles.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-shapes-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-07-04-eunoia/index_files/figure-html/fig-shapes-3.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="Four Euler diagrams represent the same intersections of sets A, C, and D using circles, ellipses, squares, and rectangles." width="768">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-shapes-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;5: The four shape families supported by Eunoia.
</figcaption>
</figure>
</div>
</div>
</div>
</section>
<section id="better-labeling" class="level3">
<h3 class="anchored" data-anchor-id="better-labeling">Better labeling</h3>
<p>Another improvement comes in the form of labeling. This has been a much-wanted feature, but has been relatively hard to implement properly. Even now there’s still much room for improvement. In Figure&nbsp;6, you can see the default labeling method in action, which also showcases the <em>fifth</em> shape available in Eunoia: rotated rectangles.</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb9" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb9-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(eulerr)</span>
<span id="cb9-2"></span>
<span id="cb9-3">combo <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb9-4">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">20</span>,</span>
<span id="cb9-5">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"C"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">14</span>,</span>
<span id="cb9-6">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"D"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">18</span>,</span>
<span id="cb9-7">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;C"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>,</span>
<span id="cb9-8">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;D"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>,</span>
<span id="cb9-9">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"C&amp;D"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>,</span>
<span id="cb9-10">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Adventure&amp;C&amp;D"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span></span>
<span id="cb9-11">)</span>
<span id="cb9-12"></span>
<span id="cb9-13">fit_circle <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">euler</span>(combo, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">shape =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"rotated_rectangle"</span>)</span>
<span id="cb9-14"></span>
<span id="cb9-15"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(fit_circle, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">quantities =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span></code></pre></div></div>
<div class="cell-output-display">
<div id="fig-labeling" class="quarto-float quarto-figure quarto-figure-center anchored" data-fig-align="center" alt="Three overlapping rotated rectangles represent Adventure, C, and D. Intersection counts appear inside the regions, with leader lines for labels that do not fit.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-labeling-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-07-04-eunoia/index_files/figure-html/fig-labeling-1.png" class="img-fluid quarto-figure quarto-figure-center figure-img" alt="Three overlapping rotated rectangles represent Adventure, C, and D. Intersection counts appear inside the regions, with leader lines for labels that do not fit." width="240">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-labeling-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;6: Eunoia now tries its best to avoid overlaps between labels.
</figcaption>
</figure>
</div>
</div>
</div>
<p>The trickiest part about labeling is that you have a fixed bounding box (canvas size) for the entire plot, but don’t know before-the-fact how much space in the margins of the plot you need to allocate to the labels, in case they need to be drawn outside of the actual diagram. And if you need more space, you will also need to draw a new bounding box and recompute the labels’ sizes on this bounding box, which in turn requires a new layout. This process is shown in Figure&nbsp;7.</p>
<div id="fig-labeling-algorithm" class="quarto-float quarto-figure quarto-figure-center anchored" alt="Measure and lay out labels, update the bounding box, and measure again. Repeat the layout step until the label sizes stop changing.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-labeling-algorithm-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-07-04-eunoia/images/labeling-algorithm.svg" class="img-fluid figure-img" alt="Measure and lay out labels, update the bounding box, and measure again. Repeat the layout step until the label sizes stop changing." width="360">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-labeling-algorithm-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;7: The fixed-point algorithm for drawing the labels.
</figcaption>
</figure>
</div>
<p>Thankfully, you typically only need a couple of iterations for the layout to settle. The actual cost of the algorithm depends mostly on the overhead from the graphics engine. The layout engine itself is served from the Rust core and runs efficiently.</p>
</section>
<section id="and-much-more" class="level3 page-columns page-full">
<h3 class="anchored" data-anchor-id="and-much-more">And Much More…</h3>
<p>There have been a number of other improvements to eulerr that I won’t detail here, but which for instance include the ability to add a <em>universe</em> (complement) set to the diagram. It is fit in the same way as the other shapes, which means that it’s not actually guaranteed to fit<sup>3</sup>.</p>
<div class="no-row-height column-margin column-container"><div id="fn3"><p><sup>3</sup>&nbsp;I will likely consider whether we might need an option to force the complement box to cover all the shapes in the future.</p></div></div></section>
</section>
<section id="euler-diagrams-in-your-browser" class="level2">
<h2 class="anchored" data-anchor-id="euler-diagrams-in-your-browser">Euler Diagrams in Your Browser</h2>
<p>The JavaScript package ships the whole fitting engine compiled to WebAssembly. This makes it possible to run Eunoia directly in your browser, without the need for a server to host a Shiny app (for instance). The diagram below is fit live by the npm package. The interactive demo loads when you approach it, or when you activate it below. Drag the sliders to change the region sizes or pick a different shape family, and the layout re-fits as you go.</p>
<div id="fig-live" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-live-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div id="eunoia-demo">
  <div id="eunoia-diagram" style="max-width: 480px; margin-inline: auto;">
    <img src="https://jolars.co/blog/2026-07-04-eunoia/images/demo.svg" width="480" height="479" loading="lazy" alt="Euler diagram of Adventure, Comedy, and Drama. Exclusive region sizes: Adventure 20, Comedy 14, Drama 18, Adventure and Comedy 6, Adventure and Drama 5, Comedy and Drama 4, and all three 2." style="width: 100%; height: auto;" class="figure-img">
  </div>
  <p id="eunoia-status">The static diagram shows the initial region sizes.</p>
  <noscript><p>Enable JavaScript to adjust the diagram interactively.</p></noscript>
  <button id="eunoia-load" type="button" class="btn btn-primary" hidden="" aria-controls="eunoia-controls" aria-expanded="false">Activate interactive demo</button>
  <form id="eunoia-controls" hidden="">
    <label for="eunoia-shape">Shape</label>
    <select id="eunoia-shape" class="form-select mb-3">
      <option value="ellipse">Ellipse</option>
      <option value="circle">Circle</option>
      <option value="square">Square</option>
      <option value="rectangle">Rectangle</option>
    </select>
    <div id="eunoia-ranges"></div>
  </form>
  <p id="eunoia-metrics" hidden=""></p>
</div>
<script type="module" src="demo.js"></script>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-live-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;8: An Euler diagram fit in your browser by the Eunoia WebAssembly build. <a href="demo.js">Demo source</a>.
</figcaption>
</figure>
</div>
<p>If you push the sliders to a configuration that no arrangement of shapes can satisfy, you will see the loss increase: that number is the optimizer telling you how far short the best diagram falls. It is the same diagnostic the other packages return, and a good habit to check before trusting any Euler diagram.</p>
</section>
<section id="a-note-on-each-binding" class="level2">
<h2 class="anchored" data-anchor-id="a-note-on-each-binding">A Note on Each Binding</h2>
<section id="rust-1" class="level3">
<h3 class="anchored" data-anchor-id="rust-1">Rust</h3>
<p>The core, published as <a href="https://crates.io/crates/eunoia"><code>eunoia</code></a>. It exposes the fitter, the shape families, Venn arrangements, and a <code>plotting</code> module that turns a fitted layout into region polygons and label anchors ready to draw as SVG. The full API is on <a href="https://docs.rs/eunoia/">docs.rs</a>.</p>
</section>
<section id="r-2" class="level3">
<h3 class="anchored" data-anchor-id="r-2">R</h3>
<p><a href="https://cran.r-project.org/package=eulerr">eulerr</a> is the original package, now at version 8.1.0 and the package this whole effort grew out of. The interface that long-time users know is unchanged; what changed is that the C++ backend is gone, replaced by the Rust core through a small C ABI. If you install from source you will need a Rust toolchain, but CRAN’s binary builds do not.</p>
<p>One thing that has changed is that Eunoia includes functionality that we previously relied on external packages for. Because the optimization routines now all use the same Rust core, we have been able to drop the dependency on GenSA&nbsp;<span class="citation" data-cites="xiang2013">(Xiang et al. 2013)</span>. We also now handle poly-clipping through the <a href="https://ishape-rust.github.io/iShape-js/">iOverlay</a> library, which means we no longer need the polyclip package, nor do we need my own polylabelr package since we now host our own algorithm for finding the visual center of a polygon. This actually means that eulerr has no dependencies at all except for base packages and, if compiling from source, the Rust toolchain.</p>
</section>
<section id="python-2" class="level3">
<h3 class="anchored" data-anchor-id="python-2">Python</h3>
<p>The Python package for eunoia is <a href="https://pypi.org/project/eunoia/">eunoia</a> on PyPI, a <code>pip install eunoia</code> away. It mirrors the eulerr API as closely as Python idiom allows, plots through Matplotlib, and ships prebuilt wheels so there is no compiler in your way.</p>
</section>
<section id="julia-1" class="level3">
<h3 class="anchored" data-anchor-id="julia-1">Julia</h3>
<p>The Julia package is <a href="https://github.com/jolars/Eunoia.jl">Eunoia.jl</a>. It is the newest member of the family. Install it from the general registry with</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb10" style="background: #f1f3f5;"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb10-1"><span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">using</span> <span class="bu" style="color: null;
background-color: null;
font-style: inherit;">Pkg</span></span>
<span id="cb10-2"><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">Pkg</span>.<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">add</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Eunoia"</span>)</span></code></pre></div></div>
<p>Plotting uses a <a href="https://docs.makie.org">Makie</a> extension that loads as soon as you import a backend, so the core package stays free of plotting dependencies until you actually want a figure.</p>
<p>Writing the Julia bindings required a bit of extra work because there is no equivalent to PyO3/maturin&nbsp;(Python) or rextendr/extendr&nbsp;(R), which meant we had to create our own C ABI wrapped around the Rust core. But that also means that there is now a full-featured C ABI for Eunoia, so if you are interested in writing your own bindings for, say, C#, Go, or any other language that can call a C library, you can do so quite easily.</p>
</section>
<section id="javascript-1" class="level3">
<h3 class="anchored" data-anchor-id="javascript-1">JavaScript</h3>
<p>Is <a href="https://www.npmjs.com/package/@jolars/eunoia"><code>@jolars/eunoia</code></a>. The default entry is built for bundlers, but there is also a self-contained <code>@jolars/eunoia/web</code> entry—a single ES module with the WebAssembly inlined—that loads from a CDN with no build step, which is exactly what powers the demo above. A separate <code>@jolars/eunoia/svg</code> entry serializes a layout to SVG in pure JavaScript. And if you would rather not write any code at all, the same engine backs the web app at <a href="https://eunoia.bz/app">eunoia.bz/app</a>.</p>
</section>
</section>
<section id="try-it" class="level2">
<h2 class="anchored" data-anchor-id="try-it">Try It</h2>
<p>Eunoia and its bindings are open source and dual-licensed under MIT and Apache-2.0. The Rust core and the JavaScript package live in <a href="https://github.com/jolars/eunoia">the eunoia repository</a>. The R, Julia, and Python packages have their own homes&nbsp;(Table&nbsp;1). Introductory documentation for the whole family can be found at <a href="https://eunoia.bz/docs/">eunoia.bz/docs</a>.</p>
<p>Even though eulerr has been around for a decade, the other packages are still young and I’m very interested in hearing from you. Bug reports, feature requests, and pull requests are all welcome.</p>




</section>


<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-frederickson2015b" class="csl-entry">
Frederickson, Ben. 2015. <span>“A Better Algorithm for Area Proportional <span>Venn</span> and <span>Euler</span> Diagrams.”</span> Ben Frederickson, June 29. <a href="https://www.benfrederickson.com/better-venn-diagrams/">https://www.benfrederickson.com/better-venn-diagrams/</a>.
</div>
<div id="ref-hansen1996" class="csl-entry">
Hansen, N., and A. Ostermeier. 1996. <span>“Adapting Arbitrary Normal Mutation Distributions in Evolution Strategies: The Covariance Matrix Adaptation.”</span> <em>Proceedings of <span>IEEE International Conference</span> on <span>Evolutionary Computation</span></em>, May, 312–17. <a href="https://doi.org/10.1109/ICEC.1996.542381">https://doi.org/10.1109/ICEC.1996.542381</a>.
</div>
<div id="ref-larsson2018a" class="csl-entry">
Larsson, Johan. 2018. <span>“Eulerr: Area-Proportional Euler Diagrams with Ellipses.”</span> Bachelor thesis, <span>Lund University</span>. <a href="https://lup.lub.lu.se/student-papers/record/8934042">https://lup.lub.lu.se/student-papers/record/8934042</a>.
</div>
<div id="ref-larsson2018" class="csl-entry">
Larsson, Johan, and Peter Gustafsson. 2018. <span>“A Case Study in Fitting Area-Proportional <span>Euler</span> Diagrams with Ellipses Using Eulerr.”</span> <em>Proceedings of International Workshop on Set Visualization and Reasoning</em> (Edinburgh, United Kingdom) 2116 (June): 84–91. <a href="https://ceur-ws.org/Vol-2116/paper7.pdf">https://ceur-ws.org/Vol-2116/paper7.pdf</a>.
</div>
<div id="ref-larsson2026f" class="csl-entry">
Larsson, Johan, and Nicole M. Lee. 2026. <span>“Eunoia: <span>Area</span>-Proportional <span>Euler</span> and <span>Venn</span> Diagrams in <span>Rust</span>, <span>Julia</span>, <span>Python</span>, <span>R</span>, and <span>JavaScript</span>.”</span> Pre-published November 1. <a href="https://doi.org/10.48550/arXiv.2611.02198">https://doi.org/10.48550/arXiv.2611.02198</a>.
</div>
<div id="ref-micallef2014a" class="csl-entry">
Micallef, Luana, and Peter Rodgers. 2014. <span>“<span class="nocase">eulerAPE</span>: Drawing Area-Proportional 3-<span>Venn</span> Diagrams Using Ellipses.”</span> <em><span>PLOS</span> <span>One</span></em> 9 (7): e101717. <a href="https://doi.org/10.1371/journal.pone.0101717">https://doi.org/10.1371/journal.pone.0101717</a>.
</div>
<div id="ref-wilkinson2012" class="csl-entry">
Wilkinson, L. 2012. <span>“Exact and Approximate Area-Proportional Circular <span>Venn</span> and <span>Euler</span> Diagrams.”</span> <em><span>IEEE</span> Transactions on Visualization and Computer Graphics</em> 18 (2): 321–31. <a href="https://doi.org/10.1109/TVCG.2011.56">https://doi.org/10.1109/TVCG.2011.56</a>.
</div>
<div id="ref-xiang2013" class="csl-entry">
Xiang, Yang, Sylvain Gubian, Brian Suomela, and Julia Hoeng. 2013. <span>“Generalized Simulated Annealing for Global Optimization: The <span>GenSA</span> Package.”</span> <em>The R Journal</em> 5 (1): 13–28. <a href="https://doi.org/10.32614/RJ-2013-002">https://doi.org/10.32614/RJ-2013-002</a>.
</div>
</div></section></div> ]]></description>
  <category>Rust</category>
  <category>R</category>
  <category>Python</category>
  <category>Julia</category>
  <category>JavaScript</category>
  <category>Software</category>
  <guid>https://jolars.co/blog/2026-07-04-eunoia/</guid>
  <pubDate>Sat, 04 Jul 2026 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2026-07-04-eunoia/og.png" medium="image" type="image/png" height="76" width="144"/>
</item>
<item>
  <title>Basin: Numerical Optimization in Rust</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2026-06-10-basin/</link>
  <description><![CDATA[ 





<div class="callout callout-style-default callout-tip callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Tip
</div>
</div>
<div class="callout-body-container callout-body">
<p>A research paper describing Basin has now been published on arXiv&nbsp;<span class="citation" data-cites="larsson2026b">(Larsson 2026)</span>, which describes the motivation and design of Basin in a bit more detail than this blog post. It also allows you to cite Basin in your own work, should you find it helpful!</p>
</div>
</div>
<p>Basin is a new numerical optimization library that pairs a small generic core, a set of problem traits that you implement, a pluggable termination layer, and a driver loop called the <code>Executor</code>. On top of that sits a growing collection of solvers spanning first-order, derivative-free, nonlinear least-squares, and evolutionary methods.</p>
<p>I built Basin entirely because of my project <a href="https://eunoia.bz">Eunoia</a>—a Rust library<sup>1</sup> that generates Euler diagrams from set combination specifications. Laying out an Euler diagram is a nonlinear optimization problem, often with many local minima, and it demands both accuracy, since these diagrams often end up in scientific publications, and efficiency.</p>
<div class="no-row-height column-margin column-container"><div id="fn1"><p><sup>1</sup>&nbsp;With bindings in R, Python, and JavaScript.</p></div></div><p>When I first built the R package <a href="https://jolars.github.io/eulerr">eulerr</a>&nbsp;<span class="citation" data-cites="larsson2018">(Larsson and Gustafsson 2018)</span>, I relied on R’s built-in <code>nlm()</code>, which uses a nonlinear trust-region method, with the <a href="https://CRAN.R-project.org/package=GenSA">GenSA package</a> as an optional fallback when accuracy mattered. Eunoia was meant to replace eulerr’s old C++ backend, so I needed a new solution for the optimization part. And because I also wanted to drop the old Shiny-based web app for eulerr in favor of a static WebAssembly&nbsp;(WASM) compatible one, the library had to support WASM out of the box.</p>
<p>These requirements quickly led me to <a href="https://argmin-rs.org/">argmin</a>, a Rust optimization library with exactly this WASM compatibility built in, a large set of solvers, and good performance to boot. I wired it up and relied on it for a long time, and it worked quite well.</p>
<p>Eventually, though, a few things started to grate at me:</p>
<ol type="1">
<li><p>argmin lacks broad support for constraints. For Eunoia this was a problem, because the optimization problem is naturally constrained—there is a limit to how far apart two circles can be if you still want them to overlap.</p></li>
<li><p>Convergence criteria are handled on a per-solver basis, which made it hard to expose an ergonomic criterion in eulerr, where I wanted users to have only one or two knobs to tune across a range of optimizers.</p></li>
<li><p>I needed specific solvers that argmin didn’t support, including Levenberg–Marquardt (for the default loss in Eunoia, squared residuals) and memetic solvers: a global or semi-global solver such as CMA-ES or Differential Evolution paired with a local search by a smooth solver such as Levenberg–Marquardt or L-BFGS-B.</p></li>
</ol>
<p>Together these meant my dependencies kept growing—a separate crate just for Levenberg–Marquardt—with no good option at all for the memetic variants. So in the end, I started building my own Rust library: Basin.</p>
<section id="installation" class="level2">
<h2 class="anchored" data-anchor-id="installation">Installation</h2>
<p>Add the crate with Cargo:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb1-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">cargo</span> add basin</span></code></pre></div></div>
<p>By default Basin uses plain <code>Vec&lt;f64&gt;</code>, which carries no extra dependencies. If you’d rather work with a proper linear-algebra library, you can opt into one with a feature flag:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb2-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">cargo</span> add basin <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">--features</span> nalgebra  <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># or: ndarray, faer</span></span></code></pre></div></div>
</section>
<section id="usage" class="level2">
<h2 class="anchored" data-anchor-id="usage">Usage</h2>
<p>You describe your problem by implementing the relevant traits, then hand the problem, a solver, and an initial state to the <code>Executor</code>. Here is the obligatory <a href="https://en.wikipedia.org/wiki/Rosenbrock_function">Rosenbrock function</a>, minimized with gradient descent.</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode rust code-with-copy"><code class="sourceCode rust"><span id="cb3-1"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">use</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">basin::</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span>BasicState<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> CostFunction<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> Executor<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> Gradient<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> GradientDescent<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> GradientTolerance<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">};</span></span>
<span id="cb3-2"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">use</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">std::convert::</span>Infallible<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb3-3"></span>
<span id="cb3-4"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">struct</span> Rosenbrock<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb3-5"></span>
<span id="cb3-6"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">impl</span> CostFunction <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> Rosenbrock <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb3-7">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">type</span> Param <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Vec</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;;</span></span>
<span id="cb3-8">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">type</span> Output <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb3-9">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">type</span> Error <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> Infallible<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb3-10">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">fn</span> cost(<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">self</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> x<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Vec</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span>) <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-&gt;</span> <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Result</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">Self::</span><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">Error</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb3-11">        <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">Ok</span>((<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.0</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> x[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>])<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>powi(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>) <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">100.0</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> (x[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>] <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> x[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>]<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>powi(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>))<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>powi(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>))</span>
<span id="cb3-12">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span>
<span id="cb3-13"><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span>
<span id="cb3-14"></span>
<span id="cb3-15"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">impl</span> Gradient <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> Rosenbrock <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb3-16">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">type</span> Gradient <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Vec</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;;</span></span>
<span id="cb3-17">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">fn</span> gradient(<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">self</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> x<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Vec</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span>) <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-&gt;</span> <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Result</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Vec</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;,</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">Self::</span><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">Error</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb3-18">        <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">Ok</span>(<span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">vec!</span>[</span>
<span id="cb3-19">            <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.0</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> (<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.0</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> x[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>]) <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">400.0</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> x[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>] <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> (x[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>] <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> x[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>]<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>powi(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>))<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb3-20">            <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">200.0</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> (x[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>] <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> x[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>]<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>powi(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>))<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb3-21">        ])</span>
<span id="cb3-22">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span>
<span id="cb3-23"><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span>
<span id="cb3-24"></span>
<span id="cb3-25"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">fn</span> main() <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb3-26">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">let</span> result <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">Executor::</span>new(</span>
<span id="cb3-27">        Rosenbrock<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb3-28">        <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">GradientDescent::</span>new(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1e-3</span>)<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb3-29">        <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">BasicState::</span>new(<span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">vec!</span>[<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.2</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.0</span>])<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb3-30">    )</span>
<span id="cb3-31">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>max_iter(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">50_000</span>)</span>
<span id="cb3-32">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>terminate_on(GradientTolerance(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1e-6</span>))</span>
<span id="cb3-33">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>run()</span>
<span id="cb3-34">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>unwrap()<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb3-35"></span>
<span id="cb3-36">    <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">println!</span>(</span>
<span id="cb3-37">        <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"x = {:?}, f = {}, stopped: {:?}"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb3-38">        result<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>param()<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb3-39">        result<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>cost()<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb3-40">        result<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>reason</span>
<span id="cb3-41">    )<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb3-42"><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span></code></pre></div></div>
<p>The pattern generalizes. A solver that needs a gradient asks for the <code>Gradient</code> trait, a least-squares solver asks for residuals and a Jacobian, and so on. The compiler tells you exactly what each solver expects.</p>
<p>Constraints work the same way. To minimize subject to linear inequalities <img src="https://latex.codecogs.com/png.latex?A%20x%20%5Cle%20b">, you implement one more trait, <code>LinearInequalityConstraints</code>, and hand the problem to a solver that knows what to do with it. Here is a quadratic pulled toward <img src="https://latex.codecogs.com/png.latex?(2,%202)"> but held under the line <img src="https://latex.codecogs.com/png.latex?x%20+%20y%20%5Cle%202">, solved with the log-barrier method wrapped around gradient descent.</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb4" style="background: #f1f3f5;"><pre class="sourceCode rust code-with-copy"><code class="sourceCode rust"><span id="cb4-1"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">use</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">basin::</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb4-2">    Backtracking<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> BarrierMethod<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> BasicState<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> CostFunction<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> DenseMatrix<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> Executor<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> Gradient<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb4-3">    GradientDescent<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> LinearInequalityConstraints<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb4-4"><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">};</span></span>
<span id="cb4-5"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">use</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">std::convert::</span>Infallible<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb4-6"></span>
<span id="cb4-7"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">struct</span> Constrained <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb4-8">    a<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> DenseMatrix<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb4-9">    b<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Vec</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;,</span></span>
<span id="cb4-10"><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span>
<span id="cb4-11"></span>
<span id="cb4-12"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">impl</span> CostFunction <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> Constrained <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb4-13">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">type</span> Param <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Vec</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;;</span></span>
<span id="cb4-14">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">type</span> Output <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb4-15">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">type</span> Error <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> Infallible<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb4-16">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">fn</span> cost(<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">self</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> x<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Vec</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span>) <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-&gt;</span> <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Result</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">Self::</span><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">Error</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb4-17">        <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">Ok</span>((x[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>] <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.0</span>)<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>powi(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>) <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> (x[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>] <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.0</span>)<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>powi(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>))</span>
<span id="cb4-18">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span>
<span id="cb4-19"><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span>
<span id="cb4-20"></span>
<span id="cb4-21"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">impl</span> Gradient <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> Constrained <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb4-22">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">type</span> Gradient <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Vec</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;;</span></span>
<span id="cb4-23">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">fn</span> gradient(<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">self</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> x<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Vec</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span>) <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-&gt;</span> <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Result</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Vec</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;,</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">Self::</span><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">Error</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb4-24">        <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">Ok</span>(<span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">vec!</span>[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.0</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> (x[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>] <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.0</span>)<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.0</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> (x[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>] <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.0</span>)])</span>
<span id="cb4-25">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span>
<span id="cb4-26"><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span>
<span id="cb4-27"></span>
<span id="cb4-28"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">impl</span> LinearInequalityConstraints <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> Constrained <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb4-29">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">type</span> Matrix <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> DenseMatrix<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb4-30">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">fn</span> a(<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">self</span>) <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-&gt;</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span>DenseMatrix <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb4-31">        <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">self</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>a</span>
<span id="cb4-32">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span>
<span id="cb4-33">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">fn</span> b(<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">self</span>) <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-&gt;</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">Vec</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&lt;</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">f64</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&gt;</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb4-34">        <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">self</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>b</span>
<span id="cb4-35">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span>
<span id="cb4-36"><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span>
<span id="cb4-37"></span>
<span id="cb4-38"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">fn</span> main() <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb4-39">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">let</span> problem <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> Constrained <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb4-40">        a<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">DenseMatrix::</span>from_row_slice(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">&amp;</span>[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.0</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.0</span>])<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb4-41">        b<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">vec!</span>[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2.0</span>]<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb4-42">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">};</span></span>
<span id="cb4-43"></span>
<span id="cb4-44">    <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">let</span> result <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">Executor::</span>new(</span>
<span id="cb4-45">        problem<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb4-46">        <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">BarrierMethod::</span>new(<span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">GradientDescent::</span>with_line_search(<span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">Backtracking::</span>new()))<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb4-47">        <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">BasicState::</span>new(<span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">vec!</span>[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.0</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.0</span>])<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">// strictly feasible: 0 + 0 &lt; 2</span></span>
<span id="cb4-48">    )</span>
<span id="cb4-49">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>max_iter(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">50</span>)</span>
<span id="cb4-50">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>run()</span>
<span id="cb4-51">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>unwrap()<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb4-52"></span>
<span id="cb4-53">    <span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">println!</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"x = {:?}, stopped: {:?}"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> result<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>param()<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> result<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>reason)<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb4-54"><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span></code></pre></div></div>
<p>The unconstrained minimum sits at <img src="https://latex.codecogs.com/png.latex?(2,%202)">, but the constraint pushes the solution back onto the boundary at <img src="https://latex.codecogs.com/png.latex?(1,%201)">, which is exactly where the barrier method lands. The constraint is part of the problem’s type, so handing it to a solver that can’t honor constraints is a compile error rather than a wrong answer. This is the piece argmin was missing for Eunoia, where a pair of circles can only drift so far apart before they stop overlapping.</p>
</section>
<section id="wasm" class="level2">
<h2 class="anchored" data-anchor-id="wasm">WASM</h2>
<p>Because Basin compiles to WebAssembly with no native dependencies, the same solvers run unchanged in the browser. The <a href="https://basin.rs/visualizer/">solver visualizer</a> is built directly on this: you choose a problem and a solver, adjust the parameters, and watch the optimizer iterate in real time, with all the math running client-side and no server involved.</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2026-06-10-basin/playground-recording.gif" class="img-fluid figure-img" alt="Basin solver visualizer showing an optimization path on Rosenbrock contours, solver controls, and a convergence plot."></p>
<figcaption>An animated GIF showing Basin’s browser playground, showcasing Basin’s built-in WASM compatibility.</figcaption>
</figure>
</div>
</section>
<section id="solvers" class="level2">
<h2 class="anchored" data-anchor-id="solvers">Solvers</h2>
<p>Basin ships with a fairly broad set of methods already:</p>
<dl>
<dt>First-order and quasi-Newton</dt>
<dd>
Gradient descent, BFGS, L-BFGS, and L-BFGS-B
</dd>
<dt>Derivative-free</dt>
<dd>
Nelder–Mead and Brent’s method for one dimension
</dd>
<dt>Nonlinear least squares</dt>
<dd>
Gauss–Newton, Levenberg–Marquardt, and trust-region reflective
</dd>
<dt>Global</dt>
<dd>
Random search, CMA-ES, a genetic algorithm, and memetic combinations
</dd>
<dt>Stochastic</dt>
<dd>
Stochastic gradient descent
</dd>
<dt>Constrained</dt>
<dd>
Box bounds, log-barrier, and augmented Lagrangian wrappers
</dd>
</dl>
<p>I’ve tried to follow the published descriptions of these algorithms closely rather than reaching for ad-hoc variants. Levenberg–Marquardt damping follows <span class="citation" data-cites="madsen2004">Madsen et al. (2004)</span>, and CMA-ES follows <span class="citation" data-cites="hansen2016">Hansen (2016)</span>.</p>
</section>
<section id="key-features-of-basin" class="level2">
<h2 class="anchored" data-anchor-id="key-features-of-basin">Key Features of Basin</h2>
<p>There are three design choices that I think highlight what Basin is about, and they were the reasons I started the project in the first place.</p>
<section id="pluggable-backends" class="level3">
<h3 class="anchored" data-anchor-id="pluggable-backends">Pluggable Backends</h3>
<p>The core is generic over the vector and matrix types it operates on. You can use plain <code>Vec&lt;f64&gt;</code> with no dependencies at all, or opt into <a href="https://nalgebra.rs">nalgebra</a>, <a href="https://github.com/rust-ndarray/ndarray">ndarray</a>, or <a href="https://faer-rs.github.io/">faer</a> when you want a real linear-algebra library. Each one is a single feature flag, so you never pay for a dependency you don’t use.</p>
<p>This idea was inspired by argmin, which uses the same pattern. The only difference is that argmin provides version-gated features for each of the backends (e.g.&nbsp;<code>nalgebra_v32</code>). That pattern is arguably more powerful, but I did not want to take on the maintenance burden of supporting a growing matrix of Basin–backend combinations. Basin will instead support a set of backends at fixed versions for each major release, and update them together in sync with a major release.</p>
</section>
<section id="first-class-constraints" class="level3">
<h3 class="anchored" data-anchor-id="first-class-constraints">First-Class Constraints</h3>
<p>Box bounds are part of the type system rather than an afterthought. If you hand a constrained problem to a solver that can’t handle constraints, you get a compile-time error instead of a silent or surprising result at runtime. The same idea applies to termination criteria, which are checked at compile time against what each solver actually supports.</p>
</section>
<section id="webassembly-first" class="level3">
<h3 class="anchored" data-anchor-id="webassembly-first">WebAssembly First</h3>
<p>Basin is designed to compile to <code>wasm32-unknown-unknown</code> out of the box. It needs no BLAS, no LAPACK, and no threading library. This matters to me because, much like with <a href="https://jolars.co/blog/2025-10-22-qualpal/index.html">Qualpal</a>, I like being able to ship solvers into static web apps without standing up a server.</p>
</section>
</section>
<section id="benchmarks" class="level2">
<h2 class="anchored" data-anchor-id="benchmarks">Benchmarks</h2>
<p>How does all of this translate into actual numbers? <a href="https://basin.rs">Basin’s homepage</a> includes a set of head-to-head benchmarks against other Rust optimizers (<a href="https://argmin-rs.org/">argmin</a>, gomez, and the venerable NLopt) on the classic <a href="https://en.wikipedia.org/wiki/Rosenbrock_function">Rosenbrock function</a>. Each run is capped at 200 iterations on an AMD Ryzen 9 7900 using the dependency-free <code>Vec&lt;f64&gt;</code> backend. The figure below plots suboptimality <img src="https://latex.codecogs.com/png.latex?f(x)%20-%20f%5E*"> against wall-clock time on log–log axes, with one line per library.</p>
<div id="cell-fig-benchmarks" class="cell" data-fig-height="1" data-execution_count="1">
<div class="cell-output cell-output-display">
<div>
<figure class="figure">
<p><img src="https://jolars.co/blog/2026-06-10-basin/index_files/figure-html/fig-benchmarks-output-1.png" class="img-fluid figure-img" alt="Suboptimality versus wall-clock time on the Rosenbrock function (200-iteration cap, Vec<f64> backend, AMD Ryzen 9 7900). Lower and further left is better; Basin is drawn with a heavier line.">{#fig-benchmarks width=661 height=493 fig-alt=’</p>
</figure>
</div>
<p>Three log-log plots compare suboptimality against elapsed time for gradient</p>
<p>descent, Nelder-Mead, and L-BFGS in Basin, argmin, gomez, and NLopt. Basin</p>
<p>reaches a suboptimality of 10^-6 at least as quickly as the other</p>
<p>libraries.’}</p>
</div>
</div>
<p>Across all three solvers, Basin reaches a suboptimality of <img src="https://latex.codecogs.com/png.latex?10%5E%7B-6%7D"> at least as quickly as every competitor, roughly 4 µs on Nelder–Mead and 10 µs on L-BFGS, against 16 µs and 24 µs for argmin. On gradient descent it both converges deeper and finishes the full run in about a third of the time argmin takes. These are micro-benchmarks on a single problem and machine, so take them with the usual grain of salt, but I think they are encouraging! The complete set, including per-backend comparisons, is at <a href="https://basin.rs/benchmarks/">basin.rs/benchmarks</a>, which also includes benchmarks that compare the various backends against each other as well as the solvers themselves on a range of problems.</p>
</section>
<section id="status-and-contributing" class="level2">
<h2 class="anchored" data-anchor-id="status-and-contributing">Status and Contributing</h2>
<p>Basin is still young but has reached 1.0, so the public API is stable and follows semantic versioning: breaking changes are reserved future major releases. The crate is on <a href="https://crates.io/crates/basin">crates.io</a> and dual-licensed under MIT and Apache-2.0.</p>
<p>If you give it a try, I’d love to hear how it goes. You can file issues or start a discussion over at the <a href="https://github.com/jolars/basin">GitHub repository</a>, and the full documentation, including the API reference, is at <a href="https://basin.rs">basin.rs</a>. Contributions of any kind are very welcome.</p>




</section>


<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-hansen2016" class="csl-entry">
Hansen, Nikolaus. 2016. <span>“The <span>CMA</span> Evolution Strategy: A Tutorial.”</span> Pre-published April 4. <a href="https://doi.org/10.48550/arXiv.1604.00772">https://doi.org/10.48550/arXiv.1604.00772</a>.
</div>
<div id="ref-larsson2026b" class="csl-entry">
Larsson, Johan. 2026. <span>“Basin: Efficient and Extensible Numerical Optimization in <span>Rust</span>.”</span> Pre-published August 11. <a href="https://doi.org/10.48550/arXiv.2608.11279">https://doi.org/10.48550/arXiv.2608.11279</a>.
</div>
<div id="ref-larsson2018" class="csl-entry">
Larsson, Johan, and Peter Gustafsson. 2018. <span>“A Case Study in Fitting Area-Proportional <span>Euler</span> Diagrams with Ellipses Using Eulerr.”</span> <em>Proceedings of International Workshop on Set Visualization and Reasoning</em> (Edinburgh, United Kingdom) 2116 (June): 84–91. <a href="https://ceur-ws.org/Vol-2116/paper7.pdf">https://ceur-ws.org/Vol-2116/paper7.pdf</a>.
</div>
<div id="ref-madsen2004" class="csl-entry">
Madsen, Kaj, Hans Nielsen, and O Tingleff. 2004. <em>Methods for Non-Linear Least Squares Problems (2nd Ed.)</em>. 2nd ed. <span>Informatics and Mathematical Modeling, Technical University of Denmark</span>. <a href="https://www2.imm.dtu.dk/pubdb/edoc/imm3215.pdf">https://www2.imm.dtu.dk/pubdb/edoc/imm3215.pdf</a>.
</div>
</div></section></div> ]]></description>
  <category>Rust</category>
  <category>Software</category>
  <category>Optimization</category>
  <guid>https://jolars.co/blog/2026-06-10-basin/</guid>
  <pubDate>Wed, 10 Jun 2026 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2026-06-10-basin/og.png" medium="image" type="image/png" height="76" width="144"/>
</item>
<item>
  <title>Introducing Tomat: A Pomodoro Timer for Status Bars</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2026-01-12-tomat/</link>
  <description><![CDATA[ 





<section id="introduction" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="introduction">Introduction</h2>
<p>I have on-and-off been a user of the Pomodoro technique, which is based on splitting your work day into increments of, typically, 25-minute work sessions followed by 5-minute breaks, repeated say, four times, and then followed by a longer, 15-minute break. In Figure&nbsp;1, you can see a simple illustration of how the Pomodoro technique works.</p>
<div class="cell" data-layout-align="center">
<div class="cell-output-display">
<div id="fig-basic-pomodoro" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-basic-pomodoro-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div>
<pre class="mermaid mermaid-js" data-label="fig-basic-pomodoro">graph TD
    A[25 min work] --&gt;|Sessions 1-4| B[5 min break]
    B --&gt; A
    A --&gt;|Session 5| C[15 min long break]
    C --&gt; A
</pre>
</div>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-basic-pomodoro-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: An illustration of the Pomodoro technique.
</figcaption>
</figure>
</div>
</div>
</div>
<p>Every time I have used the technique, I have always found it to be helpful for maintaining focus. But perhaps more importantly (at least for me), the short breaks have helped me to avoid burnout and the physical discomfort from sitting in front of a computer for too long.</p>
<p>Before I switched to tiling window managers like i3 and sway<sup>1</sup>, I used the <a href="https://gnomepomodoro.org/">GNOME Pomodoro Timer</a>, which I was happy with. But ever since I switched from GNOME, I’ve been struggling to find a good replacement. Unfortunately, there is a jungle of Pomodoro timers out there, and grasping the scope and limitations of each has been difficult. What I have been looking for is a Pomodoro timer that integrates with my status bar (currently waybar) and that I can control using either keyboard shortcuts or mouse clicks. I want it to be lightweight and easy to configure.</p>
<div class="no-row-height column-margin column-container"><div id="fn1"><p><sup>1</sup>&nbsp;Which is what I am currently using.</p></div></div><p>The alternatives I have considered include</p>
<ul>
<li><a href="https://github.com/Andeskjerf/waybar-module-pomodoro">waybar-pomodoro-timer</a>,</li>
<li><a href="https://github.com/gabrielzschmitz/Tomato.C">Tomato.C</a>,</li>
<li><a href="https://github.com/nimaaskarian/potato-c">potato-c</a>,</li>
<li><a href="https://github.com/jbirnick/waybar-timer">waybar-timer</a>, and</li>
<li><a href="https://github.com/metent/uair">uair</a>.</li>
</ul>
<p>Each of these are good in their own way, and yet none of them ever quite fit my use case. So, eventually, I decided to write my own Pomodoro timer, which I named <strong>Tomat</strong> (Swedish 🇸🇪 for tomato).</p>
<p>The main goal was to create a Pomodoro timer that’s easy to use and configure and that easily integrates with status bars like waybar. It roughly follows the GNU Philosophy of “Do One Thing Well”, and does not try to be a full-fledged time management application. It also tries to be as lightweight as possible, without unnecessary dependencies, and is written in Rust (which helps).</p>
<p>Tomat is designed as a client–server application. The server runs in the background and keeps track of the timer state, while the client is used to interact with the server, e.g., to start or stop the timer or to query the current status. This design makes it easy to integrate Tomat with status bars, because the timer state isn’t tied to the lifetime of the status bar process, which may be restarted every now and then.</p>
<p>This comes at the cost of having to start and manage a background daemon process, but in return you get a more robust and flexible application. The architecture is illustrated in Figure&nbsp;2.</p>
<div class="cell" data-layout-align="center">
<div class="cell-output-display">
<div id="fig-tomat-architecture" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-tomat-architecture-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div>
<pre class="mermaid mermaid-js" data-label="fig-tomat-architecture">graph TD
    A[Client] --&gt;|Commands| B(Server)
    B --&gt;|Status| A
    B --&gt;|Notifications| C[Notification System] 
    B --&gt;|Sound| D[Sound System]    
</pre>
</div>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-tomat-architecture-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: A high-level overview of the Tomat architecture.
</figcaption>
</figure>
</div>
</div>
</div>
</section>
<section id="quick-start" class="level2">
<h2 class="anchored" data-anchor-id="quick-start">Quick Start</h2>
<p>Tomat is available on <a href="https://crates.io/crates/tomat">crates.io</a>, so if you have Rust and Cargo installed, installing it is as simple as running:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb1-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">cargo</span> install tomat</span></code></pre></div></div>
<p>To then get going, just start the daemon:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb2-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">tomat</span> daemon start</span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Started daemon in background (PID: 2171200)</span></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Daemon started successfully</span></span></code></pre></div></div>
<p>By default, Tomat starts in a paused state, so to start your first Pomodoro session, just run:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb3-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">tomat</span> start</span>
<span id="cb3-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Pomodoro started: 25min work, 5min break, 15min long break every 4 sessions</span></span></code></pre></div></div>
<p>You can then check the status of the timer by running:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb4" style="background: #f1f3f5;"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb4-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">tomat</span> status</span>
<span id="cb4-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">#{"text":"🍅 24:27 ▶","tooltip":"Work (1/4) - 25.0min","class":"work","percentage":2.1999999999999997}</span></span></code></pre></div></div>
<p>The default output is the JSON format that Waybar expects, but Tomat supports multiple formats, including a plain text format:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb5" style="background: #f1f3f5;"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb5-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">tomat</span> status <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">-o</span> plain</span>
<span id="cb5-2"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">🍅</span> 22:29 ▶</span></code></pre></div></div>
<p>There are many other ways to install Tomat as well, including through a <a href="https://github.com/jolars/homebrew-tap">Homebrew tap</a> and via a one-liner installation script. See the <a href="https://tomat.cc/guide/installation.html">installation guide</a> for more details.</p>
</section>
<section id="systemd-integration" class="level2">
<h2 class="anchored" data-anchor-id="systemd-integration">Systemd Integration</h2>
<p>Most users will want to start the Tomat daemon automatically when they log in, so that it’s always running in the background and ready to be interacted with.</p>
<p>For this reason, Tomat comes bundled with a systemd service file that can be installed through the following command:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb6" style="background: #f1f3f5;"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb6-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">tomat</span> daemon install</span></code></pre></div></div>
<p>Then, you just need to enable and start the service:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb7" style="background: #f1f3f5;"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb7-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">systemctl</span> <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">--user</span> enable <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">--now</span> tomat</span></code></pre></div></div>
</section>
<section id="configuration" class="level2">
<h2 class="anchored" data-anchor-id="configuration">Configuration</h2>
<p>Tomat is configured via a TOML configuration file, which is located at <code>~/.config/tomat/config.toml</code> by default.</p>
<p>Below is an example configuration file with the defaults:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb8" style="background: #f1f3f5;"><pre class="sourceCode toml code-with-copy"><code class="sourceCode toml"><span id="cb8-1"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">[timer]</span></span>
<span id="cb8-2"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">work</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">25.0</span>          <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Work duration in minutes</span></span>
<span id="cb8-3"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">break</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">5.0</span>          <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Break duration in minutes</span></span>
<span id="cb8-4"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">long_break</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">15.0</span>    <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Long break duration in minutes</span></span>
<span id="cb8-5"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">sessions</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>         <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Sessions until long break</span></span>
<span id="cb8-6"></span>
<span id="cb8-7"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">[sound]</span></span>
<span id="cb8-8"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">enabled</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">true</span>       <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Enable sound notifications</span></span>
<span id="cb8-9"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">volume</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.5</span>         <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Volume level (0.0-1.0)</span></span>
<span id="cb8-10"></span>
<span id="cb8-11"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">[notification]</span></span>
<span id="cb8-12"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">enabled</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">true</span>        <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Enable desktop notifications</span></span>
<span id="cb8-13"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">icon</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"auto"</span>         <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Icon mode: "auto", "theme", or custom path</span></span>
<span id="cb8-14"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">timeout</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4000</span>        <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Notification timeout in milliseconds</span></span>
<span id="cb8-15"></span>
<span id="cb8-16"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">[display]</span></span>
<span id="cb8-17"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">text_format</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"{icon} {time} {state}"</span>  <span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Text display format</span></span></code></pre></div></div>
</section>
<section id="command-line-interface" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="command-line-interface">Command-Line Interface</h2>
<p>Tomat is controlled through a command-line interface (CLI), which communicates with the background daemon. Below is a summary of the available commands.<sup>2</sup></p>
<div class="no-row-height column-margin column-container"><div id="fn2"><p><sup>2</sup>&nbsp;Tomat comes with man pages as well, which are installed directly if using nix.</p></div></div><section id="control-timer" class="level3">
<h3 class="anchored" data-anchor-id="control-timer">Control Timer</h3>
<dl>
<dt><code>tomat status</code></dt>
<dd>
Get current status (JSON for Waybar)
</dd>
<dt><code>tomat watch</code></dt>
<dd>
Continuously output status updates
</dd>
<dt><code>tomat toggle</code></dt>
<dd>
Pause/resume timer
</dd>
<dt><code>tomat skip</code></dt>
<dd>
Skip to next phase
</dd>
<dt><code>tomat stop</code></dt>
<dd>
Stop timer and return to idle
</dd>
</dl>
</section>
<section id="daemon-management" class="level3">
<h3 class="anchored" data-anchor-id="daemon-management">Daemon Management</h3>
<p>For managing the background daemon, the following commands are available:</p>
<p><code>tomat daemon &lt;subcommand&gt;</code></p>
<p>Where <code>&lt;subcommand&gt;</code> is one of:</p>
<dl>
<dt><code>start</code></dt>
<dd>
Start background daemon
</dd>
<dt><code>stop</code></dt>
<dd>
Stop daemon
</dd>
<dt><code>status</code></dt>
<dd>
Check daemon status
</dd>
<dt><code>install</code></dt>
<dd>
Install systemd user service
</dd>
<dt><code>uninstall</code></dt>
<dd>
Remove systemd user service
</dd>
</dl>
</section>
</section>
<section id="packaging" class="level2">
<h2 class="anchored" data-anchor-id="packaging">Packaging</h2>
<p>At the moment, Tomat is only packaged as a crate, but I plan to bundle it as deb and rpm packages in the near future, which will make installation and setup even easier.</p>
<p>If you happen to be using <a href="https://nixos.org/">NixOS</a>, however, Tomat is already packaged and available in the nixpkgs repository. In addition, it is also available as a <a href="https://github.com/nix-community/home-manager">home manager</a>, which means that it is extremely easy to set up and configure if you are using home manager to manage your user environment. For instance:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb9" style="background: #f1f3f5;"><pre class="sourceCode nix code-with-copy"><code class="sourceCode nix"><span id="cb9-1"><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb9-2">  <span class="va" style="color: #111111;
background-color: null;
font-style: inherit;">services</span>.<span class="va" style="color: #111111;
background-color: null;
font-style: inherit;">tomat</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb9-3">    <span class="va" style="color: #111111;
background-color: null;
font-style: inherit;">enable</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">true</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb9-4"></span>
<span id="cb9-5">    <span class="va" style="color: #111111;
background-color: null;
font-style: inherit;">settings</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb9-6">      <span class="va" style="color: #111111;
background-color: null;
font-style: inherit;">timer</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb9-7">        <span class="va" style="color: #111111;
background-color: null;
font-style: inherit;">work</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">25</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb9-8">        <span class="va" style="color: #111111;
background-color: null;
font-style: inherit;">break</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb9-9">      <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">};</span></span>
<span id="cb9-10">    <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">};</span></span>
<span id="cb9-11">  <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">};</span></span>
<span id="cb9-12"><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span></span></code></pre></div></div>
<p>And that’s it!</p>
</section>
<section id="notifications-and-sound-alerts" class="level2">
<h2 class="anchored" data-anchor-id="notifications-and-sound-alerts">Notifications and Sound Alerts</h2>
<p>Tomat comes with built-in support for desktop notifications (using <code>notify-rust</code>), which means that it will integrate nicely with your desktop environment’s notification system as long as you have a notification daemon running, such as <code>dunst</code> or <code>mako</code>.</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2026-01-12-tomat/notification.jpg" class="img-fluid figure-img" alt="Tomat notification with a tomato-shaped clock icon and the message: Back to work! Let's focus." width="300"></p>
<figcaption>The standard notification that Tomat shows when a (short) break ends.</figcaption>
</figure>
</div>
<p>Sound alerts are also supported and compiled directly into the binary, which means that you don’t need to install any additional dependencies to get sound alerts working. By default, Tomat uses simple beep sounds:</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><audio src="break-to-work.wav" class="img-fluid" controls=""><a href="break-to-work.wav">Audio</a></audio></p>
<figcaption>Audio alert for the start of a work session</figcaption>
</figure>
</div>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><audio src="work-to-break.wav" class="img-fluid" controls=""><a href="work-to-break.wav">Audio</a></audio></p>
<figcaption>Audio alert for the start of a break</figcaption>
</figure>
</div>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><audio src="work-to-long-break.wav" class="img-fluid" controls=""><a href="work-to-long-break.wav">Audio</a></audio></p>
<figcaption>Audio alert for the end of a long break</figcaption>
</figure>
</div>
</section>
<section id="integrations" class="level2">
<h2 class="anchored" data-anchor-id="integrations">Integrations</h2>
<p>All of the above just gets you set up with the daemon and CLI client, but the goal of Tomat, as I mentioned, is to use it with status bars. Configuring that is the final piece of the puzzle. A full <a href="https://tomat.cc/guide/integration/index.html">integration guide</a> is available in the documentation, but here I summarize the steps needed for Waybar.</p>
<section id="waybar" class="level3">
<h3 class="anchored" data-anchor-id="waybar">Waybar</h3>
<p><a href="https://github.com/Alexays/Waybar">Waybar</a> is a highly configurable status bar for Wayland window managers, and it is my current status bar of choice. Tomat was built with waybar integration in mind, so setting it up is quite straightforward.</p>
<p>In your waybar configuration file (typically <code>~/.config/waybar/config</code>), you can add a custom module for Tomat like this:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb10" style="background: #f1f3f5;"><pre class="sourceCode json code-with-copy"><code class="sourceCode json"><span id="cb10-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb10-2">  <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">"modules-right"</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">:</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">[</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"custom/tomat"</span><span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">]</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb10-3">  <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">"custom/tomat"</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">:</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">{</span></span>
<span id="cb10-4">    <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">"exec"</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">:</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"tomat status"</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb10-5">    <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">"interval"</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">:</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb10-6">    <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">"return-type"</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">:</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"json"</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb10-7">    <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">"format"</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">:</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"{text}"</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb10-8">    <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">"tooltip"</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">:</span> <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">true</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb10-9">    <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">"on-click"</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">:</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"tomat toggle"</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">,</span></span>
<span id="cb10-10">    <span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">"on-click-right"</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">:</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"tomat skip"</span></span>
<span id="cb10-11">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">}</span></span>
<span id="cb10-12"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">}</span></span></code></pre></div></div>
<p>This configuration will add a Tomat module to the right side of your Waybar, which will display the current status of the Pomodoro timer. Clicking on the module will toggle the timer (start/pause), and right-clicking will skip to the next session (work/break).</p>
<p>In my own setup, it looks like Figure&nbsp;3.</p>
<div id="fig-waybar-tomat" class="quarto-float quarto-figure quarto-figure-center anchored" alt="Waybar timer showing a tomato icon, 25:00 remaining, and a pause control.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-waybar-tomat-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2026-01-12-tomat/statusbar.png" class="img-fluid figure-img" alt="Waybar timer showing a tomato icon, 25:00 remaining, and a pause control.">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-waybar-tomat-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;3: A screenshot of Waybar with the Tomat module showing an active Pomodoro session.
</figcaption>
</figure>
</div>
<section id="css-styling" class="level4">
<h4 class="anchored" data-anchor-id="css-styling">CSS Styling</h4>
<p>You can also style the module based on the timer state using CSS classes. For example, you can add the following to your Waybar CSS file (typically <code>~/.config/waybar/style.css</code>):</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb11" style="background: #f1f3f5;"><pre class="sourceCode css code-with-copy"><code class="sourceCode css"><span id="cb11-1"><span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">#custom-tomat</span> {</span>
<span id="cb11-2">  <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">padding</span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">:</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">10</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">px</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb11-3">  <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">margin</span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">:</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">px</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb11-4">  <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">border-radius</span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">:</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">px</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb11-5">}</span>
<span id="cb11-6"></span>
<span id="cb11-7"><span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">#custom-tomat</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">.work</span> {</span>
<span id="cb11-8">  <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">background-color</span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">:</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">#ff6b6b</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb11-9">  <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">color</span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">:</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">#ffffff</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb11-10">}</span>
<span id="cb11-11"></span>
<span id="cb11-12"><span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">#custom-tomat</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">.work-paused</span> {</span>
<span id="cb11-13">  <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">background-color</span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">:</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">#ff9999</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb11-14">  <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">color</span><span class="ch" style="color: #20794D;
background-color: null;
font-style: inherit;">:</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">#ffffff</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb11-15">}</span></code></pre></div></div>
</section>
</section>
</section>
<section id="hooks" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="hooks">Hooks</h2>
<p>A recent addition to Tomat<sup>3</sup> is the support for event hooks, which allow users to run commands on state changes (e.g., when a Pomodoro session starts or ends). This means that you can integrate Tomat into more complex workflows, such as</p>
<div class="no-row-height column-margin column-container"><div id="fn3"><p><sup>3</sup>&nbsp;As of version 2.6.0.</p></div></div><ul>
<li>locking your screen when a break starts,</li>
<li>pausing or even changing your music when a work session starts,</li>
<li>dimming your screen during breaks, or</li>
<li>opening up a task management application (e.g. <a href="https://taskwarrior.org/">taskwarrior</a>) when a work session starts.</li>
</ul>
<p>Hooks can only be configured through a configuration file (at <code>~/.config/tomat/config.toml</code> by default), and an example configuration with hooks looks like this:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb12" style="background: #f1f3f5;"><pre class="sourceCode toml code-with-copy"><code class="sourceCode toml"><span id="cb12-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Example: Dim screen when timer is paused</span></span>
<span id="cb12-2"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">[hooks.on_pause]</span></span>
<span id="cb12-3"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">cmd</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"/home/user/scripts/dim-screen.sh"</span></span>
<span id="cb12-4"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">cwd</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"/home/user"</span></span>
<span id="cb12-5"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">timeout</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span></span>
<span id="cb12-6"></span>
<span id="cb12-7"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Example: Pause music during work sessions</span></span>
<span id="cb12-8"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">[hooks.on_work_start]</span></span>
<span id="cb12-9"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">cmd</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"playerctl"</span></span>
<span id="cb12-10"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">args</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">[</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"pause"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">]</span></span>
<span id="cb12-11"><span class="dt" style="color: #AD0000;
background-color: null;
font-style: inherit;">timeout</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span></span></code></pre></div></div>
</section>
<section id="conclusion" class="level2">
<h2 class="anchored" data-anchor-id="conclusion">Conclusion</h2>
<p>Tomat is a lightweight and easy-to-use Pomodoro timer designed for integration with status bars like waybar. It is highly configurable and comes with features like desktop notifications, sound alerts, and event hooks. If you’re looking for a simple Pomodoro timer that fits well into your tiling window manager setup, give Tomat a try!</p>
<p>And if you have any feedback or want to contribute, feel free to check out the <a href="https://github.com/jolars/tomat">GitHub repository</a>, which provides a <a href="https://github.com/jolars/tomat/blob/main/CONTRIBUTING.md">contributing guide</a>, a <a href="https://github.com/jolars/tomat/discussions">discussion forum</a>, and a <a href="https://github.com/jolars/tomat/issues">bug tracker</a>.</p>



</section>


 ]]></description>
  <category>Tomat</category>
  <category>Productivity</category>
  <category>Pomodoro</category>
  <category>Linux</category>
  <guid>https://jolars.co/blog/2026-01-12-tomat/</guid>
  <pubDate>Mon, 12 Jan 2026 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2026-01-12-tomat/tomato.jpg" medium="image" type="image/jpeg"/>
</item>
<item>
  <title>What’s New in Moloch 2.0.0</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2025-12-05-moloch-v2/</link>
  <description><![CDATA[ 





<div class="callout callout-style-default callout-tip callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Tip
</div>
</div>
<div class="callout-body-container callout-body">
<p>Moloch has now been published in TUGboat&nbsp;<span class="citation" data-cites="larsson2026">(<span class="nocase">Larsson and samcarter</span> 2026)</span>! The article will be available for free on the TUGboat website when the next issue is published.</p>
</div>
</div>
<section id="moloch-2.0.0-is-released" class="level2">
<h2 class="anchored" data-anchor-id="moloch-2.0.0-is-released">Moloch 2.0.0 is Released!</h2>
<p>I’m excited to announce a major update to Moloch, a minimalist Beamer presentation theme. Version 2.0.0 brings a complete overhaul of the color system, new themes, improved documentation, and several other refinements.</p>
<p>Moloch uses semantic versioning, so this major version bump indicates that there are breaking changes. This only applies to aesthetics, however, and all your existing presentations should still compile without issues. But do expect some changes in appearance due to the redesigned color system, updates to the itemize environment, and tweaks to existing themes.</p>
</section>
<section id="redesigned-color-system" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="redesigned-color-system">Redesigned Color System</h2>
<p>The biggest change in this release is a complete redesign of how colors work in Moloch. I have become increasingly frustrated with the previous system for a couple of reasons:</p>
<ul>
<li>The colors of the text, its background, and the respective colors in the frame titles were all linked together, which for instance meant that the frame title background color had to be the same as the text color, which limited customization options.</li>
<li>Switching between light and dark modes was toggled by <code>background=dark</code>, which both felt unintuitive (since it actually inverted all the colors) and also meant that the colors in the primary palette had to make sense if inverted, which again limited flexibility.</li>
<li>Because the light and dark switching was so basic, it meant that alert and example colors needed to be the same for both light and dark variants, but typically one wants to have brighter colors when the background is dark, and vice versa.</li>
<li>Customizing the colors was quite difficult. Users would have to modify colors manually using Beamer’s <code>\setbeamercolor{}</code>, with <code>fg</code> and <code>bg</code> options set correctly. I didn’t really have any problem with that, but it could not allow for granular control of light and dark themes. And more problematically, colors were linked via <code>use</code> options, but these do not automatically refresh if the color linked is updated, which meant that users would have to add multiple lines just to modify the alert color everywhere it was used.</li>
<li>Color themes lived in their own files and were added via <code>\usecolortheme{moloch-tomorrow}</code> etc, which was starting to feel a bit hard to manage given that we might want to eventually support a large variety of color themes.</li>
</ul>
<p>The new color system now promises to fix all of these issues and is activated via a new macro <code>\molochcolors{}</code>. In the next sections I’ll try to outline how it works.</p>
<section id="light-and-dark-variants" class="level3 page-columns page-full">
<h3 class="anchored" data-anchor-id="light-and-dark-variants">Light and Dark Variants</h3>
<p>Every color theme now supports both light and dark variants that you can switch between seamlessly:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\molochcolors</span>{variant=light}</span>
<span id="cb1-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\molochcolors</span>{variant=dark}</span></code></pre></div></div>
<p>This can<sup>1</sup> even be used mid-presentation, which would technically allow someone to switch back and forth between dark and light modes.</p>
<div class="no-row-height column-margin column-container"><div id="fn1"><p><sup>1</sup>&nbsp;Even though I am not sure how much of practical value there is to this.</p></div></div></section>
<section id="switching-themes" class="level3">
<h3 class="anchored" data-anchor-id="switching-themes">Switching Themes</h3>
<p>Switching the entire color theme can also be done easily via this new macro:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb2-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\molochcolors</span>{theme=tomorrow}</span></code></pre></div></div>
<p>Or, if you want the dark theme:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb3-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\molochcolors</span>{theme=tomorrow, variant=dark}</span></code></pre></div></div>
<p>Both this option and the variant option are aliased in the package options, so you can also set them when loading the theme:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb4" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb4-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\usetheme</span>[colortheme=tomorrow, colortheme variant=dark]{moloch}</span></code></pre></div></div>
</section>
<section id="granular-color-control" class="level3">
<h3 class="anchored" data-anchor-id="granular-color-control">Granular Color Control</h3>
<p>The new <code>\molochcolors{}</code> command gives you granular control over individual colors in the theme. In particular, you can set colors that apply selectively to either the light or dark variant, or to the currently active variant. For instance, to set colors that apply to the current variant, you can do:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb5" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb5-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\molochcolors</span>{ alerted text=red, progressbar fg=blue }</span></code></pre></div></div>
<p>Or, if you want to set colors specifically for the light variant, you can do:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb6" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb6-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\molochcolors</span>{ light/normal text fg=black, light/frametitle bg=white }</span></code></pre></div></div>
<p>These settings will be stored separately for light and dark variants, so if you switch between them later, your customizations will persist!</p>
<p>As of now, the available customization options include:</p>
<ul>
<li><code>normal text fg/bg</code> - Body text colors</li>
<li><code>frametitle fg/bg</code> - Frame title colors<br>
</li>
<li><code>alerted text</code> - Alert/emphasis colors</li>
<li><code>example text</code> - Example text colors</li>
<li><code>progressbar fg/bg</code> - Progress bar colors</li>
<li><code>standout fg/bg</code> - Standout frame colors</li>
</ul>
</section>
<section id="user-accessible-semantic-colors" class="level3">
<h3 class="anchored" data-anchor-id="user-accessible-semantic-colors">User-Accessible Semantic Colors</h3>
<p>All color themes now define semantic color names (like <code>mNormaltextFg</code>, <code>mAlertFg</code>, <code>mProgressbarFg</code>) that you can use anywhere in your presentation:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb7" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb7-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">% Use theme colors in TikZ graphics</span></span>
<span id="cb7-2"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\begin</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">tikzpicture</span>}</span>
<span id="cb7-3">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\node</span>[fill=mAlertFg, text=mNormaltextBg] {Alert!};</span>
<span id="cb7-4"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\end</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">tikzpicture</span>}</span>
<span id="cb7-5"></span>
<span id="cb7-6"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">% Or in text</span></span>
<span id="cb7-7">This is <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\textcolor</span>{mExampleFg}{colored text} using theme colors.</span></code></pre></div></div>
<p>These are updated dynamically when you switch themes or variants, so you can rely on them to always reflect the current color scheme. Hopefully, this will make it easy to keep your entire presentation consistent with the chosen theme!</p>
</section>
</section>
<section id="new-color-themes" class="level2">
<h2 class="anchored" data-anchor-id="new-color-themes">New Color Themes</h2>
<p>As a result of the redesigned color system, it is now much easier to add new color themes. And in this release, I’ve added two new themes:</p>
<ul>
<li>Catppuccin, which is based on the popular <a href="https://catppuccin.com">Catppuccin color palette</a></li>
<li>Paper, a high-contrast theme that uses black, white, greys, and a set of colors based on Stephen Few’s book <em>Show Me the Numbers</em>&nbsp;<span class="citation" data-cites="few2004">(Few 2004)</span>.</li>
</ul>
<section id="catppuccin" class="level3">
<h3 class="anchored" data-anchor-id="catppuccin">Catppuccin</h3>
<p>The Catppuccin theme brings the beautiful pastel colors of the Catppuccin palette to Moloch presentations. It supports both light and dark variants. It uses quite low contrasts, so it is best suited for presentations in well-lit environments or web-based viewing.</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb8" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb8-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\usetheme</span>[colortheme=catppuccin]{moloch}</span></code></pre></div></div>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/example-colortheme-catppuccin-light.png" class="lightbox" data-gallery="catppuccin" title="Catppuccin Light"><img src="https://jolars.co/blog/2025-12-05-moloch-v2/images/example-colortheme-catppuccin-light.png" class="img-fluid figure-img" alt="Catppuccin Light"></a></p>
<figcaption>Catppuccin Light</figcaption>
</figure>
</div>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/example-colortheme-catppuccin-dark.png" class="lightbox" data-gallery="catppuccin" title="Catppuccin Dark"><img src="https://jolars.co/blog/2025-12-05-moloch-v2/images/example-colortheme-catppuccin-dark.png" class="img-fluid figure-img" alt="Catppuccin Dark"></a></p>
<figcaption>Catppuccin Dark</figcaption>
</figure>
</div>
</section>
<section id="paper" class="level3">
<h3 class="anchored" data-anchor-id="paper">Paper</h3>
<p>The Paper theme is one that I have long wanted to add, but which was difficult to implement due to the links between colors in the old system. It is a high-contrast theme that uses black, white, and greys for the main elements, and a set of colors inspired by Stephen Few’s <em>Show Me the Numbers</em>&nbsp;<span class="citation" data-cites="few2004">(Few 2004)</span> for alerts and examples. It uses the same background for the main text as for the frame titles, which gives it a different feel compared to other themes.</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb9" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb9-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\usetheme</span>[colortheme=paper, colortheme variant=light]{moloch}</span></code></pre></div></div>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/example-colortheme-paper-light.png" class="lightbox" data-gallery="quarto-lightbox-gallery-3" title="Paper Light"><img src="https://jolars.co/blog/2025-12-05-moloch-v2/images/example-colortheme-paper-light.png" class="img-fluid figure-img" alt="Paper Light"></a></p>
<figcaption>Paper Light</figcaption>
</figure>
</div>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/example-colortheme-paper-dark.png" class="lightbox" data-gallery="quarto-lightbox-gallery-4" title="Paper Dark"><img src="https://jolars.co/blog/2025-12-05-moloch-v2/images/example-colortheme-paper-dark.png" class="img-fluid figure-img" alt="Paper Dark"></a></p>
<figcaption>Paper Dark</figcaption>
</figure>
</div>
</section>
</section>
<section id="improved-existing-themes" class="level2">
<h2 class="anchored" data-anchor-id="improved-existing-themes">Improved Existing Themes</h2>
<p>I’ve also made a few changes to the dark variants of the existing themes to take advantage of the new color system. In general, I do not find the use of a white (or very light) frame title background on dark themes to be appealing, so I have adjusted these to use the same background color as the main text area or a slightly darker shade.</p>
<section id="default-theme" class="level3">
<h3 class="anchored" data-anchor-id="default-theme">Default Theme</h3>
<p>I generally try to be more conservative with changes to the default theme, but I’ve changed the alert and example colors to be slightly brighter in the dark variant, and also made the frame title background slightly darker to avoid the stark contrast.</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/example-colortheme-default-dark.png" class="lightbox" data-gallery="quarto-lightbox-gallery-5" title="Default Dark"><img src="https://jolars.co/blog/2025-12-05-moloch-v2/images/example-colortheme-default-dark.png" class="img-fluid figure-img" alt="Default Dark"></a></p>
<figcaption>Default Dark</figcaption>
</figure>
</div>
</section>
<section id="tomorrow-theme" class="level3">
<h3 class="anchored" data-anchor-id="tomorrow-theme">Tomorrow Theme</h3>
<p>In the Tomorrow theme, I’ve made the frame title of the dark variant almost black, which I find looks better than the previous very light grey. The colors for alerts and examples have also been replaced with other colors from the <a href="https://github.com/chriskempson/tomorrow-theme">Tomorrow color palette</a>.</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/example-colortheme-tomorrow-light.png" class="lightbox" data-gallery="quarto-lightbox-gallery-6" title="Tomorrow Light"><img src="https://jolars.co/blog/2025-12-05-moloch-v2/images/example-colortheme-tomorrow-light.png" class="img-fluid figure-img" alt="Tomorrow Light"></a></p>
<figcaption>Tomorrow Light</figcaption>
</figure>
</div>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/example-colortheme-tomorrow-dark.png" class="lightbox" data-gallery="quarto-lightbox-gallery-7" title="Tomorrow Dark"><img src="https://jolars.co/blog/2025-12-05-moloch-v2/images/example-colortheme-tomorrow-dark.png" class="img-fluid figure-img" alt="Tomorrow Dark"></a></p>
<figcaption>Tomorrow Dark</figcaption>
</figure>
</div>
</section>
<section id="high-contrast-theme" class="level3">
<h3 class="anchored" data-anchor-id="high-contrast-theme">High Contrast Theme</h3>
<p>Because the High Contrast theme is supposed to be high contrast, I’ve kept the white frame title background in the dark variant, but I’ve adjusted the alert and example colors to be brighter versions of the original colors.</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/example-colortheme-highcontrast-dark.png" class="lightbox" data-gallery="quarto-lightbox-gallery-8" title="High Contrast Dark"><img src="https://jolars.co/blog/2025-12-05-moloch-v2/images/example-colortheme-highcontrast-dark.png" class="img-fluid figure-img" alt="High Contrast Dark"></a></p>
<figcaption>High Contrast Dark</figcaption>
</figure>
</div>
</section>
</section>
<section id="new-documentation-website" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="new-documentation-website">New Documentation Website</h2>
<p>The Moloch documentation is now available as both a PDF manual and an <strong>interactive website at <a href="https://moloch.ink">moloch.ink</a></strong>. Even if PDF documentation seems natural for LaTeX packages, I’ve long felt that it is cumbersome to navigate, especially since users often have to scroll through many pages to find what they need and search functionality is limited compared to a website. Not to mention that PDFs are not exactly mobile-friendly.</p>
<p>I’ve been meaning to set this up for a while, but haven’t really figured out a good way to do it. Much of the documentation for the implementation details of Moloch is written inside the <code>.dtx</code> files, which is great for keeping the documentation close to the code, but not so great for building a website.</p>
<p>I realized, however, that I could just keep the documentation in LaTeX syntax there, and just have <a href="https://pandoc.org">Pandoc</a> convert it to Markdown, which can then be used as source files for a Quarto website, which I can thereafter render into both HTML and PDF<sup>2</sup> formats.</p>
<div class="no-row-height column-margin column-container"><div id="fn2"><p><sup>2</sup>&nbsp;Yes, I know this turns it into LaTeX once again, which might feel backwards, but starting to write markdown inside the <code>.dtx</code> documents seemed like a too big change, at least for now.</p></div></div><p>The documentation is built with <a href="https://quarto.org">Quarto</a>, which means:</p>
<ul>
<li><strong>Always up-to-date</strong>: Documentation is generated directly from the theme’s source code</li>
<li><strong>Interactive examples</strong>: Live code samples you can copy and modify</li>
<li><strong>Searchable</strong>: Find what you need quickly</li>
<li><strong>Beautiful presentation</strong>: Clean, modern interface with syntax highlighting</li>
<li><strong>Accessible anywhere</strong>: Read on any device without downloading PDFs</li>
</ul>
<p>The PDF manual is still available for offline reading, but the website offers a much better browsing experience with its table of contents, search functionality, and responsive design.</p>
</section>
<section id="refined-itemized-list-styling" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="refined-itemized-list-styling">Refined Itemized List Styling</h2>
<p>In version 1.1.0, Moloch introduced a refreshed list styling that used new symbols for itemize environments. Instead of using filled circle, circle, smaller circle, I switched to filled circle, filled square, and filled triangle, which I found to be more visually distinct and appealing.</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="images/itemize-redesign-v1-1-0.png" class="lightbox" data-gallery="quarto-lightbox-gallery-9" title="The new and old itemize environments."><img src="https://jolars.co/blog/2025-12-05-moloch-v2/images/itemize-redesign-v1-1-0.png" class="img-fluid figure-img" alt="The new and old itemize environments."></a></p>
<figcaption>The new and old itemize environments.</figcaption>
</figure>
</div>
<p>However, there were still some issues with the design<sup>3</sup>. In particular, the triangle and circles I used were based on math fonts, which sometimes led to inconsistent sizing and alignment issues that could depend on the compiler and font setup.</p>
<div class="no-row-height column-margin column-container"><div id="fn3"><p><sup>3</sup>&nbsp;See <a href="https://github.com/jolars/moloch/pull/50#issuecomment-3403850799">this comment</a> for instance.</p></div></div><p>Therefore in this release, the symbols are now all drawn using TikZ (or PGF primitives, to be precise), which ensures consistent sizing and alignment across different setups.</p>
</section>
<section id="increased-line-widths-for-the-progress-bar" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="increased-line-widths-for-the-progress-bar">Increased Line Widths for the Progress Bar</h2>
<p>The progress bars for Moloch (at section pages by default), have had quite a thin line width<sup>4</sup> that was often hard to see. So in this release, I’ve increased it from <code>0.4pt</code> to <code>1.0pt</code>, which should make it more visible without being too obtrusive. I hope that most users will find this change beneficial, and know that you can otherwise easily customize it to your liking:</p>
<div class="no-row-height column-margin column-container"><div id="fn4"><p><sup>4</sup>&nbsp;This is configurable via the <code>progressbar linewidth</code> option, but the default value was quite low.</p></div></div><div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb10" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb10-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\molochset</span>{progressbar linewidth=0.4pt}</span></code></pre></div></div>
<p>The above line would restore the previous thin line width if desired.</p>
<p>The title separator line on the title page was also increased, but only marginally from <code>0.4pt</code> to <code>0.5pt</code>, given that it has only decorative purpose, but I am considering increasing it further in a future release.</p>
</section>
<section id="migration-guide" class="level2">
<h2 class="anchored" data-anchor-id="migration-guide">Migration Guide</h2>
<p>If you’re upgrading from an earlier version of Moloch, here are the key changes to be aware of:</p>
<section id="color-options" class="level3">
<h3 class="anchored" data-anchor-id="color-options">Color Options</h3>
<p>The old <code>background=dark</code> option is deprecated. Use the new variant system instead:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb11" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb11-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">% Old (deprecated)</span></span>
<span id="cb11-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\usetheme</span>[background=dark]{moloch}</span>
<span id="cb11-3"></span>
<span id="cb11-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">% New</span></span>
<span id="cb11-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\usetheme</span>[colortheme variant=dark]{moloch}</span></code></pre></div></div>
</section>
<section id="color-theme" class="level3">
<h3 class="anchored" data-anchor-id="color-theme">Color Theme</h3>
<p>Enabling the tomorrow theme and high contrast theme is now done via the <code>colortheme</code> option:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb12" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb12-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">% Old</span></span>
<span id="cb12-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\usecolortheme</span>{moloch-tomorrow}</span>
<span id="cb12-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">% New</span></span>
<span id="cb12-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\usetheme</span>[colortheme=tomorrow]{moloch}</span></code></pre></div></div>
<p>The use of <code>\usecolortheme{moloch-highcontrast}</code> is still supported for backward compatibility, but it is recommended to switch to the new method.</p>
</section>
</section>
<section id="getting-started" class="level2">
<h2 class="anchored" data-anchor-id="getting-started">Getting Started</h2>
<p>Moloch 2.0.0 is available on <a href="https://ctan.org/pkg/moloch">CTAN</a> and will be included in the next TeX Live and MikTeX updates. You can also install it manually from the <a href="https://github.com/jolars/moloch">GitHub repository</a>.</p>
<p>To try out the new features:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb13" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb13-1"><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">\documentclass</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">beamer</span>}</span>
<span id="cb13-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\usetheme</span>[colortheme=catppuccin, colortheme variant=light]{moloch}</span>
<span id="cb13-3"></span>
<span id="cb13-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\title</span>{My Presentation}</span>
<span id="cb13-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\author</span>{Your Name}</span>
<span id="cb13-6"></span>
<span id="cb13-7"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\begin</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">document</span>}</span>
<span id="cb13-8"></span>
<span id="cb13-9"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\maketitle</span></span>
<span id="cb13-10"></span>
<span id="cb13-11"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\begin</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">frame</span>}{New Color System}</span>
<span id="cb13-12">  The new color system makes it easy to create beautiful presentations.</span>
<span id="cb13-13"></span>
<span id="cb13-14">  <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\begin</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">alertblock</span>}{Try It Out}</span>
<span id="cb13-15">    Customize colors with <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\texttt</span>{<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\textbackslash</span> molochcolors<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\{\}</span>}.</span>
<span id="cb13-16">  <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\end</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">alertblock</span>}</span>
<span id="cb13-17"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\end</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">frame</span>}</span>
<span id="cb13-18"></span>
<span id="cb13-19"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\end</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">document</span>}</span></code></pre></div></div>
<p>Check out the <a href="https://moloch.ink">full documentation</a> for comprehensive guides, examples, and customization options.</p>




</section>


<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-few2004" class="csl-entry">
Few, Stephen. 2004. <em>Show Me the Numbers: Designing Tables and Graphs to Enlighten</em>. Analytics Press.
</div>
<div id="ref-larsson2026" class="csl-entry">
<span class="nocase">Larsson, Johan, and samcarter</span>. 2026. <span>“Moloch: A Minimalist, Feature-Rich <span>Beamer</span> Theme.”</span> <em><span>TUGboat</span></em> 47 (145): 67–74. <a href="https://doi.org/10.47397/tb/47-1/tb145larsson-moloch">https://doi.org/10.47397/tb/47-1/tb145larsson-moloch</a>.
</div>
</div></section></div> ]]></description>
  <category>LaTeX</category>
  <category>Presentations</category>
  <category>Moloch</category>
  <guid>https://jolars.co/blog/2025-12-05-moloch-v2/</guid>
  <pubDate>Fri, 05 Dec 2025 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2025-12-05-moloch-v2/images/image.jpg" medium="image" type="image/jpeg"/>
</item>
<item>
  <title>Qualpal</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2025-10-22-qualpal/</link>
  <description><![CDATA[ 





<section id="qualpalr" class="level2">
<h2 class="anchored" data-anchor-id="qualpalr">Qualpal(r)</h2>
<p>It is now <em>nine</em> years <a href="https://jolars.co/blog/2016-10-15-introducing-qualpalr/index.html">since I first blogged</a> about my pet project Qualpal (at that point called <em>qualpalr</em>), which is an R package for generating qualitative color palettes for data visualization in R. It was motivated by the fact that almost all color palettes were designed for a fixed number of categories and therefore must be suboptimal for other numbers of categories.</p>
<p>At the time, there were only a couple of other alternatives available and out of these I only knew about <a href="http://tools.medialab.sciences-po.fr/iwanthue/">iWantHue</a>, which is a web app that generates these kinds of color palettes. And while iWantHue is great and I think has raised the issue of generating these palettes to more prominence, I felt that there were opportunities to improve upon it, which is why Qualpal was born.</p>
<p>The major innovations of Qualpal were</p>
<ol type="1">
<li>a new algorithm for selecting colors,</li>
<li>an improved metric for computing the distances between colors,</li>
<li>adaptation to color vision deficiencies, and</li>
<li>a C++ backend that made it fast enough to be used interactively and generate palettes from a large input set of colors.</li>
</ol>
<p>Another, but perhaps obvious, addition was that Qualpal was accessible directly from R, which is where I (at least at the time) did most of my work. At the time, it was the first package in R to provide this type of automatic qualitative palette generation.</p>
<p>I have made little progress on the package until the start of this year when I decided that it was time to make the investment to turn Qualpal into a more widely accessible tool. I had the following ideas in mind.</p>
<ol type="1">
<li>Transform the entire codebase into C++, not just the core algorithm, in order to make it easier to create bindings in other languages, such as Python and Julia.</li>
<li>Improve the feature set of the package.</li>
<li>Create a CLI application.</li>
<li>Create a web app, without having to rely on Shiny.</li>
<li>Support supplying a known palette name as input to Qualpal, so that users could pick a subset of colors from a given palette.</li>
<li>Allow adaptation to any kind of color vision deficiency, not just a single dichromacy type.</li>
<li>Allow users to <em>extend</em> a fixed color palette with additional colors, in order to, for instance, extend Tableau’s 10-color palette to a size of 12 colors.</li>
</ol>
</section>
<section id="the-new-c-library" class="level2">
<h2 class="anchored" data-anchor-id="the-new-c-library">The New C++ Library</h2>
<p>All of the above has now been implemented. I’ve decoupled the C++ parts of qualpalr into a separate library called Qualpal, which lives <a href="https://github.com/jolars/qualpal">in its own repository on GitHub</a>.</p>
<p>The new C++ library is designed to be lean and carries no other dependencies than the C++ standard library, although there is support for multi-threading via OpenMP (if available).</p>
<p>The functionality of the package is mostly concentrated in the <code>Qualpal</code> class, which uses a builder-type interface to customize palette generation. Here’s an example, where we construct a five-color palette from part of the hue-saturation-lightness (HSL) color space as input.</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode cpp code-with-copy"><code class="sourceCode cpp"><span id="cb1-1"><span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">#include </span><span class="im" style="color: #00769E;
background-color: null;
font-style: inherit;">&lt;qualpal.h&gt;</span></span>
<span id="cb1-2"></span>
<span id="cb1-3"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">using</span> <span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">namespace</span> qualpal<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb1-4"></span>
<span id="cb1-5">Qualpal qp<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">;</span></span>
<span id="cb1-6">qp<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>setInputColorspace<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">({</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">170</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">60</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">},</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.7</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">},</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.2</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.8</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">});</span></span>
<span id="cb1-7"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">auto</span> colorspace_pal <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> qp<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>generate<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">(</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">);</span></span></code></pre></div></div>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2025-10-22-qualpal/images/cpp-hsl.png" class="img-fluid figure-img" alt="Five swatches: mustard yellow, light blue, pink, dark maroon, and dark teal."></p>
<figcaption>Five colors from the HSL color space</figcaption>
</figure>
</div>
<p>In the next example, we change to using one of the built-in color palettes, in this case <em>Set2</em> from <em>ColorBrewer</em>&nbsp;<span class="citation" data-cites="harrower2003">(Harrower and Brewer 2003)</span> as input, and adapting the color palette to the color vision deficiency type deuteranomaly of severity 0.7 (70%).</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode cpp code-with-copy"><code class="sourceCode cpp"><span id="cb2-1">qp<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>setInputPalette<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">(</span><span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"ColorBrewer:Set2"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">).</span>setCvd<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">({</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">{</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"deutan"</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">,</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.7</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">}</span> <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">});</span></span>
<span id="cb2-2"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">auto</span> cvd_pal <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> qp<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">.</span>generate<span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">(</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span><span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">);</span></span></code></pre></div></div>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2025-10-22-qualpal/images/cpp-deutan.png" class="img-fluid figure-img" alt="Four swatches selected for deuteranomaly: teal, lavender, yellow, and coral."></p>
<figcaption>Four colors from the ColorBrewer Set2 palette with deuteranomaly adaptation</figcaption>
</figure>
</div>
<p>Extensive documentation, including a complete API reference, is available at <a href="https://jolars.github.io/qualpal/">jolars.github.io/qualpal</a>.</p>
</section>
<section id="the-r-package-qualpalr" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="the-r-package-qualpalr">The R Package (qualpalr)</h2>
<p>The R package, qualpalr, now uses the C++ library as a backend, and new releases of the C++ library are semi-automatically integrated into the R package. Only the R-specific parts remain in the qualpalr package, which means that development is now focused on the C++ library directly.</p>
<p>The main major change of the package is a switch in the character method of the main function of the package, <code>qualpal()</code>, which now assumes that the second argument is the name of a built-in palette. But backwards compatibility with the old behavior<sup>1</sup> is maintained by selectively handling the previous set of allowed input.</p>
<div class="no-row-height column-margin column-container"><div id="fn1"><p><sup>1</sup>&nbsp;Where the argument defined a subspace of the HSL color space.</p></div></div><p>In the following example, we generate a 4-color palette by picking colors from Vermeer’s <em>Girl with a Pearl Earring</em>. This example also showcases a new feature that allows users to optimize the palette against a given background color (in this case white).</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(qualpalr)</span>
<span id="cb3-2">pal <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">qualpal</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Vermeer:PearlEarring"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">bg =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"white"</span>)</span>
<span id="cb3-3">pal<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>hex</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>[1] "#80a0c7" "#100f14" "#a65141" "#b1934a"</code></pre>
</div>
</div>
<p>The default plot method shows a multi-dimensional scaling (MDS) plot of the colors in the color difference metric space, which gives an idea of how well-separated the colors are.</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb5" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb5-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(pal)</span></code></pre></div></div>
<div class="cell-output-display">
<div id="fig-mds" class="quarto-float quarto-figure quarto-figure-center anchored" alt="Four colors from Girl with a Pearl Earring shown as separated points in a multidimensional scaling plot of their perceptual color differences.">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-mds-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2025-10-22-qualpal/index_files/figure-html/fig-mds-1.png" class="img-fluid figure-img" alt="Four colors from Girl with a Pearl Earring shown as separated points in a multidimensional scaling plot of their perceptual color differences." width="672">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-mds-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: A multi-dimensional scaling (MDS) plot of colors in the color difference metric space.
</figcaption>
</figure>
</div>
</div>
</div>
<section id="new-vignette" class="level3">
<h3 class="anchored" data-anchor-id="new-vignette">New Vignette</h3>
<p>Another addition to the qualpalr package, which is relevant irrespective of how you choose to use Qualpal, is a new <a href="https://jolars.github.io/qualpalr/articles/comparisons">vignette on comparisons to alternatives</a>. So, in case you are interested in knowing how Qualpal compares to other alternatives, such as <a href="https://www.yunhaiwang.net/infoVis2020/palettailor/color-palette-generation.html">palettailor</a>&nbsp;<span class="citation" data-cites="lu2021">(Lu et al. 2021)</span>, <a href="https://gramaz.io/colorgorical/">Colorgorical</a>&nbsp;<span class="citation" data-cites="gramazio2016">(Gramazio et al. 2016)</span>, the aforementioned <a href="https://medialab.github.io/iwanthue/">iWantHue</a>, or glasbey&nbsp;<span class="citation" data-cites="mcinnes2025">(McInnes 2025)</span>, please check it out. As you might guess, Qualpal performs very well in these comparisons.</p>
</section>
</section>
<section id="the-cli-tool" class="level2">
<h2 class="anchored" data-anchor-id="the-cli-tool">The CLI Tool</h2>
<p>As a result of refactoring the package into a pure C++ library, it was also straightforward to create a command-line interface (CLI) tool for Qualpal, relying on the excellent <a href="https://github.com/CLIUtils/CLI11">CLI11 library</a>. This CLI tool is only available from source as of now, but I hope it will be packaged for various Linux distributions in the future.</p>
<p>Here’s an example of generating a 5-color palette from the HSL colorspace:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb6" style="background: #f1f3f5;"><pre class="sourceCode sh code-with-copy"><code class="sourceCode bash"><span id="cb6-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">qualpal</span> <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">-n</span> 5 <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">-i</span> colorspace <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"0:360"</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"0.4:0.8"</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"0.3:0.7"</span></span></code></pre></div></div>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2025-10-22-qualpal/images/cli-example.png" class="img-fluid figure-img" alt="Five CLI-generated swatches: lime green, cyan, dark blue, brown, and mauve."></p>
<figcaption>A palette of five colors generated from input colors as a subspace of the HSL colorspace.</figcaption>
</figure>
</div>
<p>Please see the instructions in the <a href="https://github.com/jolars/qualpal/blob/main/README.md">README</a> for how to build and use the CLI tool.</p>
</section>
<section id="the-web-app" class="level2">
<h2 class="anchored" data-anchor-id="the-web-app">The Web App</h2>
<p>One of the major motivations for refactoring Qualpal into a C++ library was to make it possible to serve it as a static web app by compiling the C++ code to WebAssembly (WASM). Although I love how easy it is to turn R code into web apps using Shiny, I have always been bothered by the hoops you have to jump through to deploy and manage Shiny apps, whereas the new Qualpal web app is hosted on GitHub pages as a static site and is served directly upon successful builds from GitHub Actions.</p>
<p>Running a server instance is also not free, so hosting this as a static web app means significant cost savings and automatically scales to any number of users.</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2025-10-22-qualpal/images/web-app.png" class="img-fluid figure-img" alt="Qualpal web app with color-space controls, a five-color palette, and example bar, scatter, line, and map plots."></p>
<figcaption>A screenshot of the Qualpal web app</figcaption>
</figure>
</div>
</section>
<section id="joss-publication" class="level2">
<h2 class="anchored" data-anchor-id="joss-publication">JOSS Publication</h2>
<p>Finally, I am happy to announce that Qualpal was just published in the Journal of Open Source Software (JOSS)!&nbsp;<span class="citation" data-cites="larsson2025c">(Larsson 2025)</span> I have for a long time been interested in submitting something to JOSS, which to me seems to have a great model for papers about software.</p>
<p>First, I think the reviewer system, which is entirely based around GitHub issues, is natural for a journal about software, since much software anyway is located in a public repository, and issues can be cross-referenced seamlessly. It is also completely transparent. Finally, I like the fact that papers are short, motivated by the fact that the software’s documentation should serve as the source of information about the software, rather than an academic paper (which is fixed).</p>
</section>
<section id="new-color-difference-metric" class="level2">
<h2 class="anchored" data-anchor-id="new-color-difference-metric">New Color Difference Metric</h2>
<p>Another change that was made as part of the recent work on Qualpal was the introduction of other color difference metric. In particular, Qualpal now supports the <a href="https://en.wikipedia.org/wiki/Color_difference#CIEDE2000">CIEDE2000 metric</a>&nbsp;<span class="citation" data-cites="sharma2005">(Sharma et al. 2005)</span>, which is the current standard set by the CIE organization for computing differences between colors. Qualpal previously used the DIN99d metric&nbsp;<span class="citation" data-cites="cui2002">(Cui et al. 2002)</span>, which is computationally appealing since, once the colors are converted into the DIN99d space, the color metric formula is simply Euclidean distance. But the tradeoff is that DIN99d is not as perceptually accurate, and I therefore decided o switch the default to CIEDE2000.</p>
<p>The result is that the palettes are now more distinct than before, at the cost of an increase in computation time. For most practical purposes, however, the difference in speed is negligible and Qualpal is still fast enough for this not to be even noticeable.</p>
</section>
<section id="roadmap" class="level2">
<h2 class="anchored" data-anchor-id="roadmap">Roadmap</h2>
<p>Coming back to the start of this post and the motivation for refactoring Qualpal as a stand-alone C++ library, this change means that it is now easier to create new bindings for Qualpal. The most obvious next step is therefore to create a Python package that wraps around Qualpal. Doing so should be quite straightforward and I will eventually do this myself, unless someone gets there first!</p>
<p>I am also happy for any kind of feedback regarding Qualpal, so please check out the <a href="https://github.com/jolars/qualpal">GitHub repository</a> for the project, where you can <a href="https://github.com/jolars/qualpal/issues">file issues</a> or <a href="https://github.com/jolars/qualpal/discussions">open up discussions</a> should you have any ideas on how the project could be improved or if you would like to contribute directly, which would be very much appreciated.</p>




</section>


<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-cui2002" class="csl-entry">
Cui, G., M. R. Luo, B. Rigg, G. Roesler, and K. Witt. 2002. <span>“Uniform Colour Spaces Based on the <span>DIN99</span> Colour-Difference Formula.”</span> <em>Color Research &amp; Application</em> 27 (4): 282–90. <a href="https://doi.org/10/cz7764">https://doi.org/10/cz7764</a>.
</div>
<div id="ref-gramazio2016" class="csl-entry">
Gramazio, Connor C., David H. Laidlaw, and Karen B. Schloss. 2016. <span>“Colorgorical: Creating Discriminable and Preferable Color Palettes for Information Visualization.”</span> <em><span>IEEE</span> Transactions on Visualization and Computer Graphics</em> 23 (1): 521–30. <a href="https://doi.org/10.1109/TVCG.2016.2598918">https://doi.org/10.1109/TVCG.2016.2598918</a>.
</div>
<div id="ref-harrower2003" class="csl-entry">
Harrower, Mark, and Cynthia A. Brewer. 2003. <span>“<span>ColorBrewer</span>.org: An Online Tool for Selecting Colour Schemes for Maps.”</span> <em>The Cartographic Journal</em> 40 (1): 27–37. <a href="https://doi.org/10.1179/000870403235002042">https://doi.org/10.1179/000870403235002042</a>.
</div>
<div id="ref-larsson2025c" class="csl-entry">
Larsson, Johan. 2025. <span>“Qualpal: Qualitative Color Palettes for Everyone.”</span> <em>Journal of Open Source Software</em> 10 (114): 8936. <a href="https://doi.org/10.21105/joss.08936">https://doi.org/10.21105/joss.08936</a>.
</div>
<div id="ref-lu2021" class="csl-entry">
Lu, Kecheng, Mi Feng, Xin Chen, et al. 2021. <span>“Palettailor: Discriminable Colorization for Categorical Data.”</span> <em><span>IEEE</span> Transactions on Visualization and Computer Graphics</em> 27 (02): 475–84. <a href="https://doi.org/10.1109/TVCG.2020.3030406">https://doi.org/10.1109/TVCG.2020.3030406</a>.
</div>
<div id="ref-mcinnes2025" class="csl-entry">
McInnes, Leland. 2025. <em>Glasbey</em>. V. 0.3.0. Released May 16. <a href="https://github.com/lmcinnes/glasbey">https://github.com/lmcinnes/glasbey</a>.
</div>
<div id="ref-sharma2005" class="csl-entry">
Sharma, Gaurav, Wencheng Wu, and Edul N. Dalal. 2005. <span>“The <span>CIEDE2000</span> Color-Difference Formula: <span>Implementation</span> Notes, Supplementary Test Data, and Mathematical Observations.”</span> <em>Color Research &amp; Application</em> 30 (1): 21–30. <a href="https://doi.org/10.1002/col.20070">https://doi.org/10.1002/col.20070</a>.
</div>
</div></section></div> ]]></description>
  <category>R</category>
  <category>C++</category>
  <category>Color</category>
  <category>Research</category>
  <category>Data visualization</category>
  <guid>https://jolars.co/blog/2025-10-22-qualpal/</guid>
  <pubDate>Wed, 22 Oct 2025 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2025-10-22-qualpal/images/image.jpg" medium="image" type="image/jpeg"/>
</item>
<item>
  <title>LUSEM’s Best Thesis Award 2024</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2025-05-06-lusem-award/</link>
  <description><![CDATA[ 





<p>It seems that I am on a lucky streak! I was also just<sup>1</sup> awarded Lund School of Economics’s award for best thesis in 2024.</p>
<div class="no-row-height column-margin column-container"><div id="fn1"><p><sup>1</sup>&nbsp;Used to be correct when I started drafting this post, but now it’s been a little more than a month actually.</p></div></div><p>You can read the news post <a href="https://www.lusem.lu.se/article/lusems-best-thesis-award-2024-goes-johan-larsson">here</a>, in which I answer some questions regarding the thesis.</p>
<p>Here is the nomination:</p>
<blockquote class="blockquote">
<p>In his dissertation, Johan Larsson develops new algorithms and optimization methods for sparse regression—a methodology used when the number of predictors is large relative to the number of observations. Special emphasis is placed on regularization methods, which introduce a penalty on model complexity to reduce the risk of overfitting. This is crucial in statistics and machine learning, where models with many variables often risk capturing random noise rather than meaningful signals. Regularization helps identify the most important variables, much like finding a needle in a haystack, making theoretical models more applicable to real-world data. The dissertation introduces new algorithms for sparse regression, where many predictors can be excluded without losing essential relationships, with a particular focus on regularization methods such as LASSO and SLOPE.</p>
</blockquote>
<p>The thesis itself can be found <a href="https://lup.lub.lu.se/search/publication/0b9c97e8-5f65-43eb-9f7a-c4f237568370">here</a>.</p>
<p>Again, I want to thank LUSEM and all of the people who helped me on the way.</p>





 ]]></description>
  <category>Thesis</category>
  <category>Awards</category>
  <category>Research</category>
  <category>Statistics</category>
  <category>LUSEM</category>
  <guid>https://jolars.co/blog/2025-05-06-lusem-award/</guid>
  <pubDate>Tue, 06 May 2025 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2025-05-06-lusem-award/lusem.png" medium="image" type="image/png" height="56" width="144"/>
</item>
<item>
  <title>Cramér Prize for Best PhD Thesis</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2025-02-05-cramer-prize/</link>
  <description><![CDATA[ 





<p>I am very happy to have just heard that my thesis was selected for the 2025 Cramér Prize for best thesis in statistics defended in 2024! The thesis is about optimization and algorithms for sparse regression and I have previously written about it in a <a href="https://jolars.co/blog/2024-05-22-phd-thesis/">blog post here</a> so I will not delve into details. But I am tremendously happy to have received this prize and want to thank my supervisors and committee for the prize.</p>
<p>The <a href="https://statistikframjandet.se/cramersallskapet/start/">Cramér Society</a> is a branch of the Swedish statistical society<sup>1</sup>. Each year they award a prize for the best PhD thesis in statistics (or mathematical statistics) defended in Sweden. The prize is named after Harald Cramér, a Swedish mathematician and statistician who made fundamental contributions to probability theory and statistics. He was a professor at Stockholm University from 1929 to 1958 and is particularly known for his work on mathematical statistics and probability theory.</p>
<div class="no-row-height column-margin column-container"><div id="fn1"><p><sup>1</sup>&nbsp;Statistikfrämjandet</p></div></div><p>The announcement can be found <a href="https://statistikframjandet.se/cramersallskapet/cramerpriset-2025-gar-till-johan-larsson/">here</a> but it is in Swedish, but I have translated it here:</p>
<blockquote class="blockquote">
<p>The Cramér Prize is awarded annually for the best doctoral thesis to a person who defended their PhD in statistics/mathematical statistics during the past calendar year. This year, the prize goes to Johan Larsson, who defended his thesis at the Department of Statistics at Lund University. The motivation for the decision reads as follows:</p>
<p>In his thesis “Optimization and algorithms in sparse regression”, Johan Larsson tackles challenges that typically arise in the analysis of datasets with a large number of predictors and relatively few observations. The thesis thereby addresses problems that are central to contemporary statistical learning. Through the development of prescreening methods and optimization algorithms, Johan improves regression modeling using established regularization methods, such as LASSO and SLOPE, in high-dimensional contexts. The thesis, which contains both theoretical and applied parts, is very well written and, in addition to the developed statistical methods, also contributes software intended for objective comparison of different optimization methods.</p>
<p>Information about previous years’ prize winners can be found at: &gt; <a href="https://statistikframjandet.se/cramersallskapet/cramerpriset/" class="uri">https://statistikframjandet.se/cramersallskapet/cramerpriset/</a></p>
</blockquote>
<p>The thesis itself can be found <a href="https://lup.lub.lu.se/search/publication/0b9c97e8-5f65-43eb-9f7a-c4f237568370">here</a>.</p>





 ]]></description>
  <category>Thesis</category>
  <category>Lasso</category>
  <category>Ridge regression</category>
  <category>Research</category>
  <category>Optimization</category>
  <category>Statistics</category>
  <guid>https://jolars.co/blog/2025-02-05-cramer-prize/</guid>
  <pubDate>Wed, 05 Feb 2025 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2025-02-05-cramer-prize/cramer-logo.png" medium="image" type="image/png" height="138" width="144"/>
</item>
<item>
  <title>New Paper on Feature Normalization and Regularized Regression</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2025-01-21-normreg/</link>
  <description><![CDATA[ 





<section id="the-lasso-elastic-net-and-ridge-regression" class="level2">
<h2 class="anchored" data-anchor-id="the-lasso-elastic-net-and-ridge-regression">The Lasso, Elastic Net, and Ridge Regression</h2>
<div class="callout callout-style-default callout-tip callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Tip
</div>
</div>
<div class="callout-body-container callout-body">
<p>The paper has now been published in <a href="https://openreview.net/forum?id=6xKyDBIwQ5">Transactions on Machine Learning Research (TMLR)</a>!&nbsp;<span class="citation" data-cites="larsson2025">(Larsson and Wallin 2025)</span> You can find the final version <a href="https://openreview.net/forum?id=6xKyDBIwQ5">on the TMLR website</a>. The content of this blog post is mostly unchanged from the arXiv version, but please refer to the published version for the final and authoritative account of our work.</p>
<p>I’ve also summarized the paper in a <a href="https://youtu.be/GYqYAy3-B1k">short video</a>, in case you prefer that format.</p>
</div>
</div>
<p>The lasso is probably the most well-known regularization method and the first one I encountered when I first learned about regularized regression methods. The model can be written as a special case of the elastic net, which is an optimization problem that takes the following form: <img src="https://latex.codecogs.com/png.latex?%5Coperatorname*%7Bminimize%7D_%7B%5Cbeta_0%20%5Cin%20%5Cmathbb%7BR%7D,%5Cbm%7B%5Cbeta%7D%20%5Cin%20%5Cmathbb%7BR%7D%5Ep%7D%20%5Cfrac%7B1%7D%7B2%7D%20%5ClVert%20%5Cbm%20y%20-%20%5Cbeta_0%20-%20%5Cbm%7BX%7D%5Cbm%7B%5Cbeta%7D%20%5CrVert%5E2_2%0A%20%20+%20%5Clambda_1%20%5ClVert%20%5Cbm%5Cbeta%20%5CrVert_1%0A%20%20+%20%5Cfrac%7B%5Clambda_2%7D%7B2%7D%5ClVert%20%5Cbm%20%5Cbeta%20%5CrVert_2%5E2,"> where <img src="https://latex.codecogs.com/png.latex?%5Cbm%7BX%7D"> is the matrix of features, <img src="https://latex.codecogs.com/png.latex?%5Cbm%7By%7D"> is the response, and <img src="https://latex.codecogs.com/png.latex?%5Cbeta_0"> and <img src="https://latex.codecogs.com/png.latex?%5Cbm%7B%5Cbeta%7D"> are the intercept and coefficients, respectively. Setting <img src="https://latex.codecogs.com/png.latex?%5Clambda_2%20=%200"> gives us the lasso, whereas <img src="https://latex.codecogs.com/png.latex?%5Clambda_1%20=%200"> gives us ridge regression: another special case of the elastic net.</p>
<p>In the equation above, <img src="https://latex.codecogs.com/png.latex?%5Clambda_1%20%5ClVert%20%5Cbm%5Cbeta%20%5CrVert_1%0A%20%20+%20%5Cfrac%7B%5Clambda_2%7D%7B2%7D%5ClVert%20%5Cbm%20%5Cbeta%20%5CrVert_2%5E2"> is a <em>regularization term</em> that penalizes coefficients by their magnitudes, and <img src="https://latex.codecogs.com/png.latex?%5Clambda_1"> and <img src="https://latex.codecogs.com/png.latex?%5Clambda_2"> control the strength of this penalization. The higher these are set, the more the coefficients are shrunk towards zero. A high enough value of <img src="https://latex.codecogs.com/png.latex?%5Clambda_1"> will make some or all the coefficients zero, which gives us a <em>sparse</em> model. This is the primary reason why the lasso has been so popular, since this sparsity leads to a model that is easier to interpret.</p>
</section>
<section id="normalization" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="normalization">Normalization</h2>
<p>Like most people who have been introduced to the lasso, I quickly learned that you need to normalize the features (<img src="https://latex.codecogs.com/png.latex?%5Cbm%7BX%7D">) before fitting the model since their scales affect the resulting coefficients. The larger the scale (as measured in variance or, equivalently, standard deviation), the smaller the effect of regularization becomes. The reason for this is that the coefficient can be smaller for an equivalent effect on the predicted response.</p>
<p>Many sources, including one of the first papers on the lasso by <span class="citation" data-cites="tibshirani1996">Tibshirani (1996)</span>, recommend that you <em>standardize</em> your data, which means centering and scaling each feature by its mean and standard deviation. If your features are normally distributed, this practice speaks to intuition: each feature’s distribution can be described fully by its mean and standard deviation, so standardizing it will create a standard normal distribution, ensuring that the effects of regularization will be fair across the full set of features. After having standardized, most people will eventually want to return the coefficients to the original scales of the features, but doing so is simple.</p>
<p>The problem with the procedure, however, is that not all features are normally distributed. What, for instance, should we do about binary features?<sup>1</sup> At this point you may wonder if this matters in practice, and the answer is that it does. Consider Figure&nbsp;1, which shows the lasso paths for four different data sets and under two types of normalization schemes: standardization and max–abs normalization. The latter of these scales the data to lie in <img src="https://latex.codecogs.com/png.latex?%5B-1,%201%5D,"> which preserves sparsity for binary data but makes it sensitive to outliers.</p>
<div class="no-row-height column-margin column-container"><div id="fn1"><p><sup>1</sup>&nbsp;Features that values in <img src="https://latex.codecogs.com/png.latex?%5C%7B0,1%5C%7D"> only as, for instance, whether or not you have a specific gene present in your DNA.</p></div></div><div id="fig-realdata-paths" class="quarto-float quarto-figure quarto-figure-center anchored page-columns page-full" alt="Lasso coefficient paths for triazines and w1a under standardization and max-abs scaling. The selected features and their relative coefficients change substantially with the scaling method.">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<div aria-describedby="fig-realdata-paths-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2025-01-21-normreg/images/realdata-paths.svg" class="img-fluid figure-img" alt="Lasso coefficient paths for triazines and w1a under standardization and max-abs scaling. The selected features and their relative coefficients change substantially with the scaling method." width="500">
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-fig margin-caption" id="fig-realdata-paths-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: Lasso paths for some real data sets. Notice that the paths differ heavily depending on which normalization type (standardization or max–abs) is used. The first five features to be selected in either normalization scheme are colored in the plots.
</figcaption>
</figure>
</div>
<p>The point of this figure is to illustrate that the choice of normalization matters in a critical way, leading to different models and affecting the conclusions you draw from it.</p>
</section>
<section id="the-non-existent-literature" class="level2">
<h2 class="anchored" data-anchor-id="the-non-existent-literature">The (Non-Existent) Literature</h2>
<p>Remarkably, this (strong) relationship between normalization and regularization has not been studied at all. When searching for motivation for whatever normalization approach a given paper used, I typically found that papers either just stated their method of normalization as a matter of fact or motivated it by being “standard”.</p>
<p>To me, this seems fine if you’re just researching simulated data that you’ve sampled from some normal distribution. But that’s rarely the case when dealing with real data, and never so when the data is binary. There are some more informal discussions on normalization, however, so I’d like to take some time to briefly review these here. For instance, the <a href="https://scikit-learn.org/stable/modules/preprocessing.html#scaling-sparse-data">current documentation for scikit-learn</a> recommends users to use <code>MaxAbsScaler</code> (max–abs normalization) to deal with sparse data (in order to preserve sparsity), but there is no discussion on the fact that this will affect the model (as we saw in Figure&nbsp;1). My feeling about this is that I would be very careful before I based my choice of normalization (and, implicitly, the choice of model) on the way the data is stored on my hard drive (sparse or dense), particularly since it is often simple to normalize the data during optimization without having to ever store the full matrix in a dense format. This is for instance what <a href="https://glmnet.stanford.edu">glmnet</a> does, which, on the other hand, only supports a single type of normalization (standardization).</p>
<p><a href="https://github.com/pbreheny/ncvreg/issues/18#issuecomment-689496385">In a comment to an issue for the <strong>ncvreg</strong> package</a>, Patrick Breheny, the author of said package, writes that you should definitely standardize dummy features. Finally, <a href="https://stats.stackexchange.com/questions/69568/whether-to-rescale-indicator-binary-dummy-predictors-for-lasso">there is also a question on stack exchange about this</a>, but no real conclusions to be drawn from it.</p>
<p>In spite of all this, lasso, ridge, and elastic net regression have been used frequently on binary data in spite of there being very little understanding of how these methods actually work in this situation.</p>
</section>
<section id="the-paper" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="the-paper">The Paper</h2>
<p>The paper that we have written about this is titled <em>The Choice of Normalization Influences Shrinkage in Regularized Regression</em>&nbsp;<span class="citation" data-cites="larsson2025">(Larsson and Wallin 2025)</span> and is now <a href="https://arxiv.org/abs/2501.03821">out on arXiv</a><sup>2</sup>. In it, we begin to address this apparent knowledge gap by studying this interplay between normalization and regularization in lasso, ridge, and elastic net regression. Our focus is on the case of binary features and mixes of binary and normally distributed features.</p>
<div class="no-row-height column-margin column-container"><div id="fn2"><p><sup>2</sup>&nbsp;You can see an abstract and citation info <a href="https://jolars.co/publications/normreg/">here</a> as well</p></div><div id="fn3"><p><sup>3</sup>&nbsp;Or equivalently, its mean.</p></div></div><p>Our first result is that the class balance (proportion of ones versus zeros<sup>3</sup>) of the binary feature directly influences shrinkage. For both ridge and the lasso, the effect is basically that the more imbalanced the feature is, the more the coefficient will be shrunk by the estimator. Note that this effect is a by-product of regularization and does not, for instance, occur with standard linear regression.</p>
<p>Interestingly, this effect from a given normalization scheme depends directly on which regularization method is used, which means that to mitigate this effect you will need different normalization strategies depending on which type of penalty we use in our model.</p>
<p>To study this more formally, we introduce a parameterization for scaling a feature, given by <img src="https://latex.codecogs.com/png.latex?s_j%20=%20(q_j%20-%20q_j%5E2)%5E%5Cdelta,"> where <img src="https://latex.codecogs.com/png.latex?q_j"> is the class balance of the <img src="https://latex.codecogs.com/png.latex?j">th feature. When <img src="https://latex.codecogs.com/png.latex?%5Cdelta%20=%200">, there would for instance be no scaling for the binary feature (as in max–abs normalization). If <img src="https://latex.codecogs.com/png.latex?%5Cdelta%20=%201/2">, we would scale by the <em>standard deviation</em> of the feature—as in standardization. If <img src="https://latex.codecogs.com/png.latex?%5Cdelta%20=%201">, then we would instead scale by its variance.</p>
<p>Throughout the paper we assume that our data comes from a linear model <img src="https://latex.codecogs.com/png.latex?%5Cbm%7By%7D%20=%20%5Cbm%7BX%5Cbeta%7D%20+%20%5Cbm%7B%5Cvarepsilon%7D,"> where <img src="https://latex.codecogs.com/png.latex?%5Cbm%7By%7D"> is the response, <img src="https://latex.codecogs.com/png.latex?%5Cbm%7BX%7D"> is the matrix of features, and <img src="https://latex.codecogs.com/png.latex?%5Cbm%7B%5Cvarepsilon%7D"> is the vector of errors, which we assume to be identically and independently distributed and, for many of our results, normally distributed.</p>
<p>These are classical and mostly non-controversial assumptions in this field. But we also make a strong<sup>4</sup> assumption, assuming that the features are orthogonal to one another, so that <img src="https://latex.codecogs.com/png.latex?%5Cbm%7BX%7D%5E%5Cintercal%20%5Cbm%7BX%7D"> is some diagonal matrix. In this case, the elastic net estimator admits a closed-form expression, which means that we can study the effect of varying the scaling parameter <img src="https://latex.codecogs.com/png.latex?%5Cdelta">.</p>
<div class="no-row-height column-margin column-container"><div id="fn4"><p><sup>4</sup>&nbsp;Although the assumption is strong, our empirical experiments suggest that our results likely extend to more general cases.</p></div></div></section>
<section id="biasvariance-trade-offs" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="biasvariance-trade-offs">Bias–Variance Trade-Offs</h2>
<p>What we show in our paper is that there is a bias–variance trade-off with respect to this normalization parameter, <img src="https://latex.codecogs.com/png.latex?%5Cdelta">. See Figure&nbsp;2 for a simple example of this, where we consider a two-dimensional problem with one binary feature and one normally distributed feature. We have kept the true coefficients fixed at one for each of the features, and only vary <img src="https://latex.codecogs.com/png.latex?q">: the class balance (proportion of ones and zeros in the binary feature). We consider the cases <img src="https://latex.codecogs.com/png.latex?%5Cdelta%20=%200"> (no scaling), <img src="https://latex.codecogs.com/png.latex?%5Cdelta%20=%201"> (standard deviation scaling), and <img src="https://latex.codecogs.com/png.latex?%5Cdelta%20=%201"> (variance scaling) and we see that there are only two settings that seem to mitigate this class-balance bias: in ridge and lasso regression, respectively, these are <img src="https://latex.codecogs.com/png.latex?%5Cdelta%20=%201/2"> and <img src="https://latex.codecogs.com/png.latex?1">.</p>
<div id="fig-mixed-data" class="quarto-float quarto-figure quarto-figure-center anchored page-columns page-full" alt="Ridge and lasso estimates versus binary class balance under three scaling schemes. Standard deviation scaling stabilizes ridge estimates, while variance scaling stabilizes lasso estimates but increases their variability.">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<div aria-describedby="fig-mixed-data-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2025-01-21-normreg/images/mixed-data.svg" class="img-fluid figure-img" alt="Ridge and lasso estimates versus binary class balance under three scaling schemes. Standard deviation scaling stabilizes ridge estimates, while variance scaling stabilizes lasso estimates but increases their variability." width="500">
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-fig margin-caption" id="fig-mixed-data-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: Lasso and ridge estimates for a two-dimensional problem where one feature is a binary feature with class balance <img src="https://latex.codecogs.com/png.latex?q_j"> (<img src="https://latex.codecogs.com/png.latex?%5Coperatorname%7BBernoulli%7D(q_j)">) and the other is quasi-normal with standard deviation 1/2, (<img src="https://latex.codecogs.com/png.latex?%5Coperatorname%7BNormal%7D(0,%200.5)">).
</figcaption>
</figure>
</div>
<p>This figure also shows that this type of variance scaling, while <em>reducing</em> bias, <em>increases</em> variance in the estimates. This is not particularly surprising, however, since an unbalanced feature necessarily provides less information than a balanced one.</p>
<p>Figure&nbsp;2 is purely an empirical result from a simulation, but under our particular assumptions we can work out this bias–variance trade-off exactly. In Figure&nbsp;3, we have done exactly that for the lasso. (The paper includes results for ridge regression and the elastic net as well.) In this figure, <img src="https://latex.codecogs.com/png.latex?%5Csigma_%5Cvarepsilon"> represents the standard deviation of the error term in our data—the measurement noise. And what we can deduce from this figure is that this bias–variance trade-off very much depends on the noise level. If the signal is strong, then we can reduce the mean-squared error (MSE) by employing this variance scaling, but if the problem is noisier, we do better (in a prediction error sense) by using standardization instead.</p>
<div id="fig-biasvar-lasso" class="quarto-float quarto-figure quarto-figure-center anchored page-columns page-full" alt="Lasso mean squared error, bias, and variance versus class imbalance at two noise levels. Variance scaling reduces bias but increases variance, particularly when noise is high.">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<div aria-describedby="fig-biasvar-lasso-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2025-01-21-normreg/images/biasvar-lasso.svg" class="img-fluid figure-img" alt="Lasso mean squared error, bias, and variance versus class imbalance at two noise levels. Variance scaling reduces bias but increases variance, particularly when noise is high." width="500">
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-fig margin-caption" id="fig-biasvar-lasso-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;3: Bias and variance
</figcaption>
</figure>
</div>
<p>To study if and how this choice of the normalization parameter <img src="https://latex.codecogs.com/png.latex?%5Cdelta"> might impact predictive performance in a real-data setting, we’ve also conducted experiments where we have varied both <img src="https://latex.codecogs.com/png.latex?%5Cdelta"> as well as the regularization strength (<img src="https://latex.codecogs.com/png.latex?%5Clambda">) for lasso and ridge models, recording hold-out error for each fit. The results are shown in Figure&nbsp;4, from which it is evident that the optimal value for <img src="https://latex.codecogs.com/png.latex?%5Cdelta"> is data-dependent, although standardization might make for a good default since it mitigates some of the class-balance bias without imposing too much variance.</p>
<div id="fig-hyperopt" class="quarto-float quarto-figure quarto-figure-center anchored page-columns page-full" alt="Heatmaps of test error across normalization and regularization strengths for ridge and lasso on a1a, w1a, and rhee2006. The best normalization strength varies by dataset and model.">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<div aria-describedby="fig-hyperopt-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2025-01-21-normreg/images/hyperopt.svg" class="img-fluid figure-img" alt="Heatmaps of test error across normalization and regularization strengths for ridge and lasso on a1a, w1a, and rhee2006. The best normalization strength varies by dataset and model." width="500">
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-fig margin-caption" id="fig-hyperopt-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;4: Normalized mean-squared error (NMSE) for the hold-out set for lasso and ridge regression on three different real datasets (a1a, w1a, and rhee2006). The dotted line marks the best value for <img src="https://latex.codecogs.com/png.latex?%5Cdelta"> as a function of <img src="https://latex.codecogs.com/png.latex?%5Clambda/%5Clambda_%5Ctext%7Bmax%7D"> (where <img src="https://latex.codecogs.com/png.latex?%5Clambda_%5Ctext%7Bmax%7D"> is the value at which all the coefficients are zero). The circle marks the optimal combination of <img src="https://latex.codecogs.com/png.latex?%5Cdelta"> and <img src="https://latex.codecogs.com/png.latex?%5Clambda">.
</figcaption>
</figure>
</div>
</section>
<section id="mixed-data" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="mixed-data">Mixed Data</h2>
<p>We spend a substantial amount of time in the paper to also discuss the problem of mixed data: data sets that include both binary and continuous features, although in the paper we restrict ourselves to study the case of normal features.</p>
<p>When dealing with regularized methods, this scenario imposes a tricky question, namely: how do we put binary and continuous features on the same scale? This question is critical because, as we have already seen, shrinkage from the lasso and company will depend directly on how we choose to normalize the features to deal with this.</p>
<p>To put this problem into perspective, let’s say that we standardize <em>all</em> our features and also assume that our binary features are <em>perfectly balanced</em> (so that <img src="https://latex.codecogs.com/png.latex?q_j%20=%201/2"> for all <img src="https://latex.codecogs.com/png.latex?j"> corresponding to a binary features). If all of this holds, then it actually turns out that the coefficients of the binary and normal features will be regularized by the same amount if flipping the binary feature from 0 to 1 corresponds to a change of one standard deviation in the normal feature. In other words, our choice of normalization imposes this particular choice of what a one-unit change in terms of a binary feature should be equivalent to in terms of a normal feature (or vice versa).</p>
<p>You may or may not think this is a reasonable approach to scale binary and normal features relative to one another, but I would be surprised if you thought that this was reasonable for <em>all</em> binary features, given that they often represent entirely different things. Some features are indeed truly binary in nature, but many are just too distant points on the same continuum. It is true that some binary features come from dichotomization of continuous variables, in which case you should be able to base your choice of scaling on the original continuous feature’s scale, but even in this case it is not the case that there is one single way to dichotomize a variable that ensures that they are put on the same scale.<sup>5</sup></p>
<div class="no-row-height column-margin column-container"><div id="fn5"><p><sup>5</sup>&nbsp;In any case, you should always be careful about dichotomizing your features since you are in effect throwing away information about your data.</p></div></div><p>The particular relative scaling imposed by standardization was actually the subject of a paper by <span class="citation" data-cites="gelman2008">Gelman (2008)</span>, although tackled from the perspective of presenting standardized coefficients in standard regression model settings. In this paper, he argues that the default of equating a one-unit change in a binary feature to a one-standard deviation change in the normal feature is typically <em>not</em> a good default and advocated for instead using <em>two</em> standard deviations. In our paper, we adopt this setting, but here I want to stress that there is nothing critical in our results that depend on this. But we want to stress that this choice should if possible be done actively.</p>
<p>Another interesting part about this is that if we switch normalization method to, say, maximum–absolute value normalization, then this relationship changes.<sup>6</sup> With another normalization method comes another relative scaling of binary and normal features. So, the choice of normalization does not just lead to a different behavior with respect to class balance, it also leads to an implicit weighting of binary and normal features relative to one another.</p>
<div class="no-row-height column-margin column-container"><div id="fn6"><p><sup>6</sup>&nbsp;Even if the binary features are perfectly balanced.</p></div></div></section>
<section id="the-weighted-elastic-net" class="level2">
<h2 class="anchored" data-anchor-id="the-weighted-elastic-net">The Weighted Elastic Net</h2>
<p>We have so far discussed the normalization in the context of the lasso and ridge regression. Careful readers might, however, have noticed that we have not yet said anything about the elastic net (save for a few words in the introduction). The reason is that it turns out to me impossible to fully mitigate the class-balance bias in the case of the elastic net through modifications to the normalization procedure, which you can almost guess from Figure&nbsp;2, since the modifications for ridge and lasso are different.</p>
<p>Thankfully there turns out to be a solution to this problem, which is to use the <em>weighted elastic net</em>, in which we modify the weights of each penalty factor instead of normalizing. The problem then becomes <img src="https://latex.codecogs.com/png.latex?%5Cfrac%7B1%7D%7B2%7D%20%5ClVert%20%5Cbm%7By%7D%20-%20%5Cbeta_0%20-%20%5Cbm%7BX%7D%5Cbm%7B%5Cbeta%7D%5CrVert_2%5E2%0A%20%20+%20%5Clambda_1%20%5Csum_%7Bj=1%7D%5Ep%20u_j%20%7C%5Cbeta_j%7C%0A%20%20+%20%5Cfrac%7B%5Clambda_2%7D%7B2%7D%20%5Csum_%7Bj=1%7D%5Ep%20v_j%20%5Cbeta_j%5E2."> I won’t cover any details here, but please see the paper for more information.</p>
</section>
<section id="summary" class="level2">
<h2 class="anchored" data-anchor-id="summary">Summary</h2>
<p>The main takeaway from this paper is that the choice of normalization matters greatly in the case of regularized regression, at least in the case of lasso, ridge, and elastic net regression. In spite of this fact, there is scant research on this topic, and the little information that is available through non-formal channels is typically anecdotal and not motivated by any theoretical or even empirical considerations.</p>
<p>We have focused on binary features in this paper and have shown that standard approaches such as standardization and max–abs normalization lead to biased estimates in terms of class balance (the proportion of ones) of these binary features, depending on whether a lasso or ridge penalty is used. I think this may come as a surprise to some and have real implications for data sets in which a given feature is rare but has a strong effect on the response. Consider, for instance, gene expression data where the presence of a rare gene might be crucial for predicting a disease. If you would apply the lasso this data set after having standardized it, then chances are that your model might not pick up on this effect at all.</p>
<p>I have covered a few highlights in this blog post, but there is much more in the paper itself, including a section on normalization in the case of interactions between the features as well as many more experiments (and of course much more theory). I think you’ll find the paper interesting and hope that it might be able to spur some future research on this topic, which is surprisingly understudied.</p>




</section>


<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-gelman2008" class="csl-entry">
Gelman, Andrew. 2008. <span>“Scaling Regression Inputs by Dividing by Two Standard Deviations.”</span> <em>Statistics in Medicine</em> 27 (15): 2865–73. <a href="https://doi.org/10.1002/sim.3107">https://doi.org/10.1002/sim.3107</a>.
</div>
<div id="ref-larsson2025" class="csl-entry">
Larsson, Johan, and Jonas Wallin. 2025. <span>“The Choice of Normalization Influences Shrinkage in Regularized Regression.”</span> <em>Transactions on Machine Learning Research</em>, November 26. <a href="https://openreview.net/forum?id=6xKyDBIwQ5">https://openreview.net/forum?id=6xKyDBIwQ5</a>.
</div>
<div id="ref-tibshirani1996" class="csl-entry">
Tibshirani, Robert. 1996. <span>“Regression Shrinkage and Selection via the Lasso.”</span> <em>The Journal of the Royal Statistical Society, Series B (Statistical Methodology)</em> 58 (1): 267–88. <a href="https://doi.org/10.1111/j.2517-6161.1996.tb02080.x">https://doi.org/10.1111/j.2517-6161.1996.tb02080.x</a>.
</div>
</div></section></div> ]]></description>
  <category>Research</category>
  <category>Lasso</category>
  <category>Ridge regression</category>
  <guid>https://jolars.co/blog/2025-01-21-normreg/</guid>
  <pubDate>Tue, 21 Jan 2025 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2025-01-21-normreg/image.png" medium="image" type="image/png" height="129" width="144"/>
</item>
<item>
  <title>Moloch: A Revival of the Metropolis LaTeX Beamer Theme</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2024-05-30-moloch/</link>
  <description><![CDATA[ 





<div class="callout callout-style-default callout-tip callout-titled">
<div class="callout-header d-flex align-content-center">
<div class="callout-icon-container">
<i class="callout-icon"></i>
</div>
<div class="callout-title-container flex-fill">
Tip
</div>
</div>
<div class="callout-body-container callout-body">
<p>Moloch has now been published in TUGboat&nbsp;<span class="citation" data-cites="larsson2026">(<span class="nocase">Larsson and samcarter</span> 2026)</span>! The article will be available for free on the TUGboat website when the next issue is published.</p>
</div>
</div>
<p>My beamer configuration for presentations has been in a state of flux for as long as I can remember. I have tried many different themes and configurations, and have typically tried to keep the theme minimalisic but at the same time functional and visually appealing. Nevertheless, I have frequently found myself scrapping my custom modifications and returning to the <a href="https://github.com/matze/mtheme">Metropolis theme</a>, which I think is the most well-designed theme that I have so far encountered for beamer.</p>
<p>The only problem is that Metropolis is no longer actively maintained. The latest update (at the time of writing) was six years ago and since then a number of issues have cropped up. Most of them are not major and can be circumvented through various hacks and workarounds, but I have grown increasingly frustrated with the separate file of Metropolis patches that I’ve had to keep around to fix these issues. Beamer itself in fact even includes several patches now in order to stop the theme from breaking (see <a href="https://github.com/josephwright/beamer/blob/c0d91f15165421646b5383546e6195187b7f97c9/base/beamerbasecompatibility.sty#L253">here</a>, <a href="https://github.com/josephwright/beamer/blob/c0d91f15165421646b5383546e6195187b7f97c9/base/beamerbasesection.sty#L209">here</a>, and <a href="https://github.com/josephwright/beamer/blob/c0d91f15165421646b5383546e6195187b7f97c9/base/beamerbaselocalstructure.sty#L29">here</a>.)</p>
<section id="moloch" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="moloch">Moloch</h2>
<p>This has now (since some months back actually) led me to fork Metropolis to try to fix these outstanding issues. I call the new theme <em>Moloch</em> (which is likely familiar to you if you know your Metropolis). The original design is still pretty much intact save for a few tweaks that I will summarize in Section&nbsp;3, which overall bring the theme closer to normal beamer behavior. The code for the theme has also been simplified and made more robust. Metropolis, for instance, made much use of <code>\patchcmd</code> from the etoolbox package to patch beamer theme internals in order to support modifications to, for instance, frame titles. This was what lead the theme to break in the first place as beamer introduced changes in these commands and I have thus opted to remove all this kind of patching in favor of relying on standard functionality from the beamer theme instead.</p>
<p>In fact, it is now possible to change the title format directly through beamer, for instance by calling <code>\setbeamertemplate{frametitle}{\MakeUppercase{\insertframetitle}}</code> to make titles upper-case.<sup>1</sup></p>
<div class="no-row-height column-margin column-container"><div id="fn1"><p><sup>1</sup>&nbsp;Thanks <a href="https://github.com/samcarter">samcarter</a> for informing me of this!</p></div><div id="fn2"><p><sup>2</sup>&nbsp;And see <a href="https://github.com/matze/mtheme/issues/371">this issue</a> for instance.</p></div></div><p>This comes at the price of sacrificing some features, such as toggling title formatting between uppercase, small caps, and regular text. But, as the Metropolis documentation itself noted,<sup>2</sup> these modifications were problematic in the first place and I therefore think that their removal is on the whole a good thing.</p>
<p>I’ve also removed the pgfplots theme that was included in Metropolis. I don’t mind the theme per se, but I don’t think it belongs in a general-purpose beamer theme.</p>
</section>
<section id="getting-started" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="getting-started">Getting Started</h2>
<p>The design of the theme does not stray far from the original Metropolis design (and will not do so in the future either). Below is a simple example of a few slides of the theme.</p>
<div class="quarto-figure quarto-figure-center page-columns page-full">
<figure class="figure page-columns page-full">
<p><a href="https://raw.githubusercontent.com/jolars/moloch/main/assets/screenshot.svg" class="lightbox" data-gallery="quarto-lightbox-gallery-1" title="The first four slides of a presentation using Moloch."><img src="https://raw.githubusercontent.com/jolars/moloch/main/assets/screenshot.svg" class="img-fluid figure-img" alt="The first four slides of a presentation using Moloch."></a></p>
<figcaption class="margin-caption">The first four slides of a presentation using Moloch.</figcaption>
</figure>
</div>
<p>Moloch is now <a href="https://ctan.org/pkg/moloch">on CTAN</a>, so you can install it with the TeXLive package manager by calling the following line of code:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb1-1"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">tlmgr</span> install moloch</span></code></pre></div></div>
<p>If you have TeXLive 2024 (or later), then Moloch is already included in the distribution and you don’t have to do anything to install it.</p>
<p>Using the theme is as simple as using any other beamer theme. Here is a simple example:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb2-1"><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">\documentclass</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">beamer</span>}</span>
<span id="cb2-2"></span>
<span id="cb2-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\usetheme</span>{moloch}</span>
<span id="cb2-4"></span>
<span id="cb2-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\title</span>{Your Title}</span>
<span id="cb2-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\author</span>{Your Name}</span>
<span id="cb2-7"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\institute</span>{Your Institute}</span>
<span id="cb2-8"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\date</span>{<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\today</span>}</span>
<span id="cb2-9"></span>
<span id="cb2-10"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\begin</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">document</span>}</span>
<span id="cb2-11"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\maketitle</span></span>
<span id="cb2-12"></span>
<span id="cb2-13"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\section</span>{First Section}</span>
<span id="cb2-14"></span>
<span id="cb2-15"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\begin</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">frame</span>}</span>
<span id="cb2-16">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\frametitle</span>{First Frame}</span>
<span id="cb2-17">  Hello, world!</span>
<span id="cb2-18"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\end</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">frame</span>}</span>
<span id="cb2-19"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\end</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">document</span>}</span></code></pre></div></div>
<p>See <a href="http://mirrors.ctan.org/macros/latex/contrib/beamer-contrib/themes/moloch/moloch.pdf">the package documentation</a> to learn more about the theme and its various options. If you’re used to Metropolis, then you mostly need to know that <code>\metroset</code> has been replaced by <code>\molochset</code> and that some things are no longer supported, which is precisely what we’ll dig into in the next section!</p>
</section>
<section id="sec-changes" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="sec-changes">Changes</h2>
<p>I’ve tried to outline the main changes that I can think of in the following sections.</p>
<section id="new-secondary-color" class="level3 page-columns page-full">
<h3 class="anchored" data-anchor-id="new-secondary-color">New Secondary Color</h3>
<p>I always thought the green color in Metropolis was lurid and not exactly color-blind friendly. I therefore changed it to a teal color that I think is a little more subdued and easier on the eyes. You can see the difference in the figure below. I hope you agree that the new color is an improvement!</p>
<div class="quarto-figure quarto-figure-center page-columns page-full">
<figure class="figure page-columns page-full">
<p><img src="https://jolars.co/blog/2024-05-30-moloch/new-secondary-color.svg" class="border img-fluid figure-img" style="width:100.0%" alt="Slide comparing the old green secondary text with the new teal text. Orange alert text remains unchanged."></p>
<figcaption class="margin-caption">The old versus the new secondary color.</figcaption>
</figure>
</div>
</section>
<section id="subtitles" class="level3 page-columns page-full">
<h3 class="anchored" data-anchor-id="subtitles">Subtitles</h3>
<p>Subtitles are now supported in Moloch. They were were not in Metropolis because the author <a href="https://github.com/matze/mtheme/issues/135">thought subtitles were a bad idea in general</a>. On the whole I agree that subtitles are usually best avoided, but I didn’t see any reason to impose this opinion on others. Subtitles are therefore supported in Moloch.</p>
<div class="quarto-figure quarto-figure-center page-columns page-full">
<figure class="figure page-columns page-full">
<p><img src="https://jolars.co/blog/2024-05-30-moloch/subtitles.png" class="img-fluid figure-img" alt="Slide header with the title Subtitles above the subtitle Are now supported!, both in white on a dark background."></p>
<figcaption class="margin-caption">Subtitles are supported in Moloch.</figcaption>
</figure>
</div>
</section>
<section id="frame-numbering" class="level3">
<h3 class="anchored" data-anchor-id="frame-numbering">Frame Numbering</h3>
<p>Metropolis sported its own frame numbering system. There was nothing wrong with this system except it necessitated a separate package (appendixframenumber) to get frame/page numbers to restart (and not count towards the total number) for appendix slides. Beamer has, however, improved its own system in recent years and there is no longer any need for a custom solution (or separate package) to support this functionality. As a result, Moloch just relies on beamer templates for the frame numbering. The design is <em>slightly</em> different, with smaller font size and somewhat different margins, but I only think this is for the better anyway.</p>
<p>Now, you can just change it via the standard beamer commands for frame numbering, like so:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb3-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\setbeamertemplate</span>{page number in head/foot}[appendixframenumber]</span></code></pre></div></div>
</section>
<section id="title-page-redesign" class="level3 page-columns page-full">
<h3 class="anchored" data-anchor-id="title-page-redesign">Title Page Redesign</h3>
<p>The title page has been redesigned. The primary changes are the following.</p>
<ol type="1">
<li>The institute is now positioned below the author (rather than the date), which I think makes more sense since the author and institute are closer related (in my mind at least). This was suggested in <a href="https://github.com/matze/mtheme/issues/180">an issue on the Metropolis repo</a>, but never adopted.</li>
<li>The titlegraphic now has margins added above and below. It was previously put in a zero-height <code>vbox</code>, which meant that it basically didn’t affect the page layout. Now it does and will push the titles and other content down. The new layout gives equal margins between top and bottom of the frame and the content, and adapts to the size of the title graphic. This may or may not be what you want, but in this case you can just wrap the graphic in a <code>vbox</code> of zero height yourself, so I see this as a less invasive default.</li>
<li>The margins around the elements on the title page were changed everywhere. Please see the screenshots below to see what I mean, but the main change is that there is less spacing between the title and the subtitle and even spacing above and below the orange line.</li>
</ol>
<div class="quarto-figure quarto-figure-center page-columns page-full">
<figure class="figure page-columns page-full">
<p><img src="https://jolars.co/blog/2024-05-30-moloch/metropolis-titlepage.svg" class="border img-fluid figure-img" style="width:100.0%" alt="Metropolis title slide with a logo at the upper right and the title, subtitle, author, date, and institute below."></p>
<figcaption class="margin-caption">The old title page from Metropolis</figcaption>
</figure>
</div>
<div class="quarto-figure quarto-figure-center page-columns page-full">
<figure class="figure page-columns page-full">
<p><img src="https://jolars.co/blog/2024-05-30-moloch/moloch-titlepage.svg" class="border img-fluid figure-img" style="width:100.0%" alt="Moloch title slide with more space above the title, the author grouped with the institute, and the date below them."></p>
<figcaption class="margin-caption">The new title page in Moloch</figcaption>
</figure>
</div>
<p>For reference, the code for generating the slides is given below.</p>
<details>
<summary>
Code
</summary>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb4" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb4-1"><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">\documentclass</span>[10pt]{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">beamer</span>}</span>
<span id="cb4-2"></span>
<span id="cb4-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\usetheme</span>{moloch}</span>
<span id="cb4-4"></span>
<span id="cb4-5"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\title</span>{Title}</span>
<span id="cb4-6"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\subtitle</span>{Subtitle}</span>
<span id="cb4-7"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\author</span>{Author}</span>
<span id="cb4-8"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\institute</span>{Institute}</span>
<span id="cb4-9"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\date</span>{<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\today</span>}</span>
<span id="cb4-10"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\titlegraphic</span>{<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\hfill\includegraphics</span>[height=2cm]{logo.pdf}}</span>
<span id="cb4-11"></span>
<span id="cb4-12"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\begin</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">document</span>}</span>
<span id="cb4-13">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\maketitle</span></span>
<span id="cb4-14"><span class="kw" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">\end</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">document</span>}</span></code></pre></div></div>
</details>
<p>I am open for suggestions and discussions on how to further improve the title page layout, or make customizing it easier.</p>
</section>
<section id="font-settings" class="level3">
<h3 class="anchored" data-anchor-id="font-settings">Font Settings</h3>
<p>Metropolis includes special handling of font settings. If you use LuaTeX or XeTeX, then Metropolis automatically checks if the Fira Sans font is available and sets it up for you. I like the Fira fonts myself and think that they are a nice choice for presentations, but I do not think that they should be set as part of the theme, especially since this means that you get different output by default if you run your document through pdfTeX instead, which I think is undesireable.</p>
<p>I’ve therefore disabled these font settings, but if you want to replicate the look of Metropolis when it comes to the fonts as well, then all you need is you use XeTeX or LuaTeX and set your font options according to the following example (or something similar).</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb5" style="background: #f1f3f5;"><pre class="sourceCode latex code-with-copy"><code class="sourceCode latex"><span id="cb5-1"><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">\usepackage</span>{<span class="ex" style="color: null;
background-color: null;
font-style: inherit;">fontspec</span>}</span>
<span id="cb5-2"></span>
<span id="cb5-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\setsansfont</span>[</span>
<span id="cb5-4">  ItalicFont={Fira Sans Light Italic},</span>
<span id="cb5-5">  BoldFont={Fira Sans},</span>
<span id="cb5-6">  BoldItalicFont={Fira Sans Italic}</span>
<span id="cb5-7">]{Fira Sans Light}</span>
<span id="cb5-8"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\setmonofont</span>[BoldFont={Fira Mono Medium}]{Fira Mono}</span>
<span id="cb5-9"></span>
<span id="cb5-10"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\AtBeginEnvironment</span>{tabular}{<span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">%</span></span>
<span id="cb5-11">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">\addfontfeature</span>{Numbers={Monospaced}}</span>
<span id="cb5-12">}</span></code></pre></div></div>
<p>If you want to have <code>\operatorname</code>, <code>\mathrm</code>, and company in the Fira font as well, then you’ll need to set <code>\setmainfont</code> as well.</p>
<p>Note that there is only a beta version of the Fira Math Light font available and that it is not at all complete, so unfortunately there is no good way to get a matching math font for Fira Sans Light at the moment. (Otherwise we could use <strong>unicode-math</strong> and <code>Fira Math Light</code>). This I think is another good argument for why Fira should not be set as the default font for the theme.</p>
</section>
<section id="no-more-automatic-paragraph-spacing" class="level3 page-columns page-full">
<h3 class="anchored" data-anchor-id="no-more-automatic-paragraph-spacing">No More Automatic Paragraph Spacing</h3>
<p>Unlike standard Beamer, in which <code>\parskip</code> (paragraph spacing, roughly speaking) is set to zero, Metropolis instead sets it to 0.5 em units. This means that in Metropolis, you don’t need to sprinkle <code>\medskip</code> (or whatever you use for paragraph spacing) in your slides to have them neatly separated.</p>
<p>As I noted in <a href="https://github.com/jolars/moloch/issues/8">this issue</a> and also <a href="https://github.com/jolars/moloch/issues/9">this one</a>, however, this has some undesireable side-effects,<sup>3</sup> such as introducing additional spacing between table captions and the table, for instance. As a consequence, I’ve therefore removed this setting from Moloch.</p>
<div class="no-row-height column-margin column-container"><div id="fn3"><p><sup>3</sup>&nbsp;Also see <a href="https://github.com/josephwright/beamer/issues/512">this issue</a> on the Beamer repo for more background.</p></div></div><p>As with many other changes, this puts Moloch more in line with the standard Beamer behavior, which I think is generally speaking a good thing and simplifies switching between themes.</p>
</section>
<section id="block-environments" class="level3 page-columns page-full">
<h3 class="anchored" data-anchor-id="block-environments">Block Environments</h3>
<p>Metropolis introduced a bit of custom logic to handle block environments. In particular, filled blocks environments were modified such that the main body text (for the frame) aligns with the boundaries of the box and not the text inside the box (which is the default behavior in beamer). See below for a comparison.</p>
<div class="quarto-figure quarto-figure-center page-columns page-full">
<figure class="figure page-columns page-full">
<p><img src="https://jolars.co/blog/2024-05-30-moloch/blocks-beamer.png" class="img-fluid figure-img" alt="Beamer slide where the left edges of the body text, block title, and text inside the shaded block align."></p>
<figcaption class="margin-caption">Block environment alignments in Beamer. Image credit: <a href="https://github.com/samcarter">samcarter</a>.</figcaption>
</figure>
</div>
<div class="quarto-figure quarto-figure-center page-columns page-full">
<figure class="figure page-columns page-full">
<p><img src="https://jolars.co/blog/2024-05-30-moloch/blocks-metro.png" class="img-fluid figure-img" alt="Metropolis slide where the shaded block extends left of the body text and its title and contents have different indentation."></p>
<figcaption class="margin-caption">Block environment alignments in Metropolis. Image credit: <a href="https://github.com/samcarter">samcarter</a>.</figcaption>
</figure>
</div>
<p>I think the proper choice is the default beamer behavior, especially since this otherwise means that the content inside the blocks look different if you switch to filled blocks. In addition, the spacing for the normal block environments in Metropolis <a href="https://github.com/matze/mtheme/issues/307">does not work properly</a>, so switching to the default behavior also solves this issue.</p>
</section>
<section id="build-system" class="level3">
<h3 class="anchored" data-anchor-id="build-system">Build System</h3>
<p>Moloch is part of CTAN and included in TeXLive 2024, so you typically do not need to concern yourself with installing the theme from source. But if you want to do so nonetheless, for instance to enable some new feature or fix from the development version, then Moloch now uses <a href="https://ctan.org/pkg/l3build">l3build</a> instead of a custom Makefile to handle the build process, which should make life easier for most people, and you simply just need to call these lines:</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb6" style="background: #f1f3f5;"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb6-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">git</span> clone https://github.com/jolars/moloch.git</span>
<span id="cb6-2"><span class="bu" style="color: null;
background-color: null;
font-style: inherit;">cd</span> moloch</span>
<span id="cb6-3"><span class="ex" style="color: null;
background-color: null;
font-style: inherit;">l3build</span> install</span></code></pre></div></div>
<p>In addition, it also means that the package now includes unit tests to make sure that nothing in the theme breaks unexpectedly.</p>
</section>
<section id="other-miscellaneous-changes" class="level3">
<h3 class="anchored" data-anchor-id="other-miscellaneous-changes">Other Miscellaneous Changes</h3>
<p>There are several other small changes. I’ve tried to list some of them here below.</p>
<ul>
<li><a href="https://github.com/matze/mtheme/pull/384">Progress bars work better for wide presentation</a></li>
<li><a href="https://github.com/matze/mtheme/pull/342">Removed custom appendix section modifications</a></li>
<li><a href="https://github.com/jolars/moloch/issues/5">No longer hardcode bibliography styling</a></li>
</ul>
</section>
</section>
<section id="roadmap" class="level2">
<h2 class="anchored" data-anchor-id="roadmap">Roadmap</h2>
<p>I currently don’t foresee any major changes to the theme and will likely upgrade it to a stable state in the near future. So you can count on the theme not to introduce any breaking changes. I think the original Metropolis design is great and I don’t want to stray too far from it.</p>
<p>That being said, one thing that I want to do is to make the colors in the theme easier to customize and perhaps introduce alternative color schemes. That also means bringing back the hi-contrast theme that was in Metropolis but that I removed from Moloch (for reasons that I can’t quite recall now..). In any case, I don’t intend to modify the default choices.</p>
<section id="contributing" class="level3">
<h3 class="anchored" data-anchor-id="contributing">Contributing</h3>
<p>If you feel that you can contribute, then please do! The project <a href="https://github.com/jolars/moloch">is on github</a> and you are welcome to <a href="https://github.com/jolars/moloch/issues">raise an issue</a> or <a href="https://github.com/jolars/moloch/discussions">start a new discussion</a> if there’s anything you think could be improved.</p>
</section>
<section id="acknowledgements" class="level3">
<h3 class="anchored" data-anchor-id="acknowledgements">Acknowledgements</h3>
<p><a href="https://github.com/samcarter">samcarter</a> helped out a lot with discussions and testing of the theme and also helped make transitioning from Metropolis to Moloch smoother. She will actually give a talk on the <a href="https://www.tug.org/tug2024/">TUG 2024 meeting</a> in Prague July 19-21 about the theme, so please check it out if you have the chance!</p>
<p>Finally: credit where credit is due. I want to stress that the vast majority of the code in Moloch was written by <a href="https://github.com/matze">Matthias Vogelsang</a>, who created the Metropolis package, and that my job has mostly been to patch up its rough spots.</p>




</section>
</section>


<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-larsson2026" class="csl-entry">
<span class="nocase">Larsson, Johan, and samcarter</span>. 2026. <span>“Moloch: A Minimalist, Feature-Rich <span>Beamer</span> Theme.”</span> <em><span>TUGboat</span></em> 47 (145): 67–74. <a href="https://doi.org/10.47397/tb/47-1/tb145larsson-moloch">https://doi.org/10.47397/tb/47-1/tb145larsson-moloch</a>.
</div>
</div></section></div> ]]></description>
  <category>LaTeX</category>
  <category>Software</category>
  <category>Presentations</category>
  <category>Beamer</category>
  <guid>https://jolars.co/blog/2024-05-30-moloch/</guid>
  <pubDate>Thu, 30 May 2024 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2024-05-30-moloch/moloch-logo.png" medium="image" type="image/png" height="78" width="144"/>
</item>
<item>
  <title>PhD Thesis</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2024-05-22-phd-thesis/</link>
  <description><![CDATA[ 





<p><strong>Spoiler alert:</strong> I passed my defense! 🎉</p>
<p>My PhD thesis is now published and available for download&nbsp;<span class="citation" data-cites="larsson2024">(Larsson 2024)</span>! It is the culmination of five years of research on optimization other related numerical algoritms for sparse regression, in particular the lasso and sorted l-one penalized estimation (SLOPE).</p>
<div id="fig-cover" class="lightbox quarto-float quarto-figure quarto-figure-center anchored page-columns page-full" alt="Cover of Optimization and Algorithms in Sparse Regression by Johan Larsson, with a layered illustration of elastic net coefficient paths.">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<div aria-describedby="fig-cover-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="front-cover.png" class="lightbox" data-gallery="quarto-lightbox-gallery-1" title="Figure&nbsp;1: The cover of my thesis. The image features a subset of the elastic net path for the famous diabetes data set."><img src="https://jolars.co/blog/2024-05-22-phd-thesis/front-cover.png" class="border img-fluid figure-img" alt="Cover of Optimization and Algorithms in Sparse Regression by Johan Larsson, with a layered illustration of elastic net coefficient paths." width="300"></a>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-fig margin-caption" id="fig-cover-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: The cover of my thesis. The image features a subset of the elastic net path for the famous diabetes data set.
</figcaption>
</figure>
</div>
<p>In the following sections I will give an overview over the papers that are included in the thesis. This a somewhat abridged version of the paper summary section in the actual thesis and comes without a lengthy introduction to the field and these topics. If you are interested in that, I suggest you read the thesis itself!</p>
<section id="paper-1" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="paper-1">Paper 1</h2>
<p>The first of the papers introduces <em>the strong screening rule for SLOPE</em>&nbsp;<span class="citation" data-cites="larsson2020b">(Larsson et al. 2020)</span>, which is the first screening rule for SLOPE. If you haven’t heard about screening rules before, they are algorithms that discard features (predictors/variables) prior to fitting the model. They are remarkably effective for sparse methods in the high-dimensional setting and typically offer speed ups of several orders of magnitude in the high-dimensional setting. They were first discovered for the lasso with <span class="citation" data-cites="elghaoui2010a">El Ghaoui et al. (2010)</span> and have since proven to be a key ingredient in making the lasso computationally efficient.</p>
<p>They are based on the following reasoning:</p>
<ol type="1">
<li>The solution to a sparse regression problem is, of course, <em>sparse</em>, particularly in the case when the number of features (<img src="https://latex.codecogs.com/png.latex?p">) outnumber the number of observations (<img src="https://latex.codecogs.com/png.latex?n">). For the lasso, for instance, the size of the support <em>must</em> in fact be no larger than <img src="https://latex.codecogs.com/png.latex?n">.</li>
<li>We can often guess quite accurately which features have little chance of being in the support, for instance by looking at the correlation between the features and the response or the solution to a problem with a larger (or smaller) penalty.<sup>1</sup></li>
<li>Even if we are wrong about which features are in the support, it is typically cheap to check if we made a mistake and refit with these features added back in.</li>
</ol>
<div class="no-row-height column-margin column-container"><div id="fn1"><p><sup>1</sup>&nbsp;This is typically the case when we are fitting a regularization path. We start with a penalty that’s large enough to make every coefficient zero and then progressively increase it.</p></div></div><p>This reasoning turns out to be pretty-much on spot and as a result screening rules have turned out to be critical for good performance for the lasso and related methods.</p>
<p>Screening rules are typically separated into <em>safe</em> and <em>heuristic</em> rules. Safe rules guarantee that discarded features are in fact not in the optimal solution, whereas heuristic rules do not. This division is something is something of a misnomer, however, since it is easy to check optimality conditions after fitting the model on the reduced set of features, catch any mistakes, and refit is necessary. And because safe rules sacrifice effectiveness for safety together with the fact that the optimality checks are not very expensive, it is my experience that heuristic rules typically offer better performance. They can even be used together.</p>
<p>The first heuristic screening rule for the lasso was introduced by <span class="citation" data-cites="tibshirani2012">Tibshirani et al. (2012)</span>: <em>the strong screening rule</em>. And in the first paper of my thesis, we extend this screening rule strategy to the problem of solving sorted (_1) penalized regression (SLOPE)&nbsp;<span class="citation" data-cites="bogdan2015">(Bogdan et al. 2015)</span>.</p>
<p>I have provided some results from the first paper in Table&nbsp;1. As you can see, screening improves performance considerably and offers no computational overhead even when it has little effect (as in the case of the physician data set).</p>
<div id="tbl-paper1-results" class="quarto-float quarto-figure quarto-figure-center anchored page-columns page-full">
<figure class="quarto-float quarto-float-tbl figure page-columns page-full">
<div aria-describedby="tbl-paper1-results-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<table class="table">
<colgroup>
<col style="width: 15%">
<col style="width: 18%">
<col style="width: 5%">
<col style="width: 8%">
<col style="width: 27%">
<col style="width: 23%">
</colgroup>
<thead>
<tr class="header">
<th>Dataset</th>
<th>Model</th>
<th style="text-align: right;"><img src="https://latex.codecogs.com/png.latex?n"></th>
<th style="text-align: right;"><img src="https://latex.codecogs.com/png.latex?p"></th>
<th style="text-align: right;">Time (No screening)</th>
<th style="text-align: right;">Time (Screening)</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>dorothea</td>
<td>Logistic</td>
<td style="text-align: right;">800</td>
<td style="text-align: right;">88119</td>
<td style="text-align: right;">914</td>
<td style="text-align: right;">14</td>
</tr>
<tr class="even">
<td>e2006-tfidf</td>
<td>Least squares</td>
<td style="text-align: right;">3308</td>
<td style="text-align: right;">150358</td>
<td style="text-align: right;">43353</td>
<td style="text-align: right;">4944</td>
</tr>
<tr class="odd">
<td>news20</td>
<td>Multinomial</td>
<td style="text-align: right;">1000</td>
<td style="text-align: right;">62061</td>
<td style="text-align: right;">5485</td>
<td style="text-align: right;">517</td>
</tr>
<tr class="even">
<td>physician</td>
<td>Poisson</td>
<td style="text-align: right;">4406</td>
<td style="text-align: right;">25</td>
<td style="text-align: right;">34</td>
<td style="text-align: right;">34</td>
</tr>
</tbody>
</table>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-tbl margin-caption" id="tbl-paper1-results-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Table&nbsp;1: Results from one of the experiments in the first paper&nbsp;<span class="citation" data-cites="larsson2020b">(Larsson et al. 2020)</span>, showing time taken to fit a full SLOPE path to a few different data sets.
</figcaption>
</figure>
</div>
</section>
<section id="paper-2" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="paper-2">Paper 2</h2>
<p>Screening rules are particularly effective when they are sequential, that is, operate along the regularization path.<sup>2</sup> But another possibility that had previously not been explored is the idea of screening not only for the next step on the path, but for <em>all</em> of the remaining steps as well. This is the idea behind <em>look-ahead screening rules</em>, which I introduce in the second paper of the thesis, which is a short paper&nbsp;<span class="citation" data-cites="larsson2021">(Larsson 2021)</span>. We use the Gap-Safe screening rule&nbsp;<span class="citation" data-cites="ndiaye2017">(Ndiaye et al. 2017)</span> here. As the name suggests, it is a safe screening rule. This means that if a feature is screened out, it is guaranteed to be zero in the solution.</p>
<div class="no-row-height column-margin column-container"><div id="fn2"><p><sup>2</sup>&nbsp;The regularization path starts at the point where all of the model’s coefficients are zero and proceed until they are almost not penalized at all.</p></div></div><p>As I show in the paper, the results are quite promising (Figure&nbsp;2), especially since you get this kind of screening essentially for free (if you’re screening anyway).</p>
<div id="fig-paper2" class="lightbox quarto-float quarto-figure quarto-figure-center anchored page-columns page-full" alt="Grid of 20 predictors across 90 regularization steps. Blue squares mark features that look-ahead screening can discard, mostly in the early steps.">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<div aria-describedby="fig-paper2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="paper2-highlight.png" class="lightbox" data-gallery="quarto-lightbox-gallery-2" title="Figure&nbsp;2: Look-ahead screening for 20 randomly selected features from the leukemia data set. Blue squares indicate that the respective feature can be discarded from the problem for that step of the regularization path."><img src="https://jolars.co/blog/2024-05-22-phd-thesis/paper2-highlight.png" class="img-fluid figure-img" alt="Grid of 20 predictors across 90 regularization steps. Blue squares mark features that look-ahead screening can discard, mostly in the early steps."></a>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-fig margin-caption" id="fig-paper2-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: Look-ahead screening for 20 randomly selected features from the <em>leukemia</em> data set. Blue squares indicate that the respective feature can be discarded from the problem for that step of the regularization path.
</figcaption>
</figure>
</div>
</section>
<section id="paper-3" class="level2">
<h2 class="anchored" data-anchor-id="paper-3">Paper 3</h2>
<p>Even though the strong rule for the lasso is highly effective in general, there is one area in which it struggles, namely, when features are highly correlated. <span class="citation" data-cites="tibshirani2012">Tibshirani et al. (2012)</span> in fact noted this themselves and motivated using a modified technique: the working-set strategy (where the model is initially fit using the ever-active set, rather than the strong set) because of this.</p>
<p>The reason for this is that the strong rule (and every other screening rules we know of), ignores information about how close the features are to becoming active. This is the motivation for the <em>Hessian screening rule</em> that we introduce in the third paper of the thesis&nbsp;<span class="citation" data-cites="larsson2022b">(Larsson and Wallin 2022)</span>. The name stems from the fact that we use second-order information about the optimization problem, which involves the Hessian matrix <img src="https://latex.codecogs.com/png.latex?X%5E%5Cintercal%20X">. The rule offers a better estimate of the correlation vector, which in practice leads to better screening performance.</p>
</section>
<section id="paper-4" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="paper-4">Paper 4</h2>
<p>An ongoing problem in literature on optimization (including screening rules) is that there are now so many methods to examine and so many different models and datasets on which to compare them on, that it has become difficult to keep track of which methods it is that actually do best on a given problem. You can easily find a paper A that studies optimization methods X and Y on datasets I and II and conclude that X is better than Y but then find another paper B, which studies methods X, Y, and Z on datasets I and III and conclude that, actually, Y is better than X and, by the way, Z happens to be best of them all. Then, later, you find paper C, which claims that Z actually is considerably worse than X, which in fact also performs better for data set IV. This confused state of affairs is typically the result of authors having benchmarked their methods using different hardware, programming languages for their implementations, hyperparameters for their methods, and convergence criteria, to name a few of the many possible sources of variation.</p>
<p>In short, there is a dire need for a framework through which this process can be made simple, reproducible, and transparent. This is the motivation behind the <strong>benchopt</strong> package, which we present in the fourth of this thesis’ papers&nbsp;<span class="citation" data-cites="moreau2022a">(Moreau et al. 2022)</span>.</p>
<p>The goal of benchopt is to make life easier for both researchers in optimization and users of optimization software. For a researcher who has developed a new optimization method for SLOPE, for instance, all you need to do is to write the code for your solver (optimization method) and plug it into the existing benchopt benchmark for SLOPE and run it. The package will then automatically compare your method with all the other methods in the benchmark and output table and plots of the results&nbsp;Figure&nbsp;3. If you instead are a user who is interested in using SLOPE for your applied work and want to know which algorithm to use, you can either browse the extensive database of results that other users have already uploaded or just download the benchmark and run it yourself on the data that you are interested in using it for.</p>
<div id="fig-paper4" class="lightbox quarto-float quarto-figure quarto-figure-center anchored page-columns page-full" alt="Benchopt workflow: combine objectives, datasets, and solvers, run benchmarks, save results as CSV, then generate static PDF plots or interactive HTML results for publication online.">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<div aria-describedby="fig-paper4-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="paper4-highlight.svg" class="lightbox" data-gallery="quarto-lightbox-gallery-3" title="Figure&nbsp;3: A schematic over how a benchmark is set up and run using benchopt. The benchmark consists of a set of files that define objectives, datasets, and solvers. When the user runs benchopt, the package combines all of the possible combinations of objectives, datasets, and solvers and outputs a neatly formatted database of the results."><img src="https://jolars.co/blog/2024-05-22-phd-thesis/paper4-highlight.svg" class="fig-cap-location-bottom img-fluid figure-img" alt="Benchopt workflow: combine objectives, datasets, and solvers, run benchmarks, save results as CSV, then generate static PDF plots or interactive HTML results for publication online."></a>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-fig margin-caption" id="fig-paper4-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;3: A schematic over how a benchmark is set up and run using benchopt. The benchmark consists of a set of files that define objectives, datasets, and solvers. When the user runs benchopt, the package combines all of the possible combinations of objectives, datasets, and solvers and outputs a neatly formatted database of the results.
</figcaption>
</figure>
</div>
</section>
<section id="paper-5" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="paper-5">Paper 5</h2>
<p>Proximal coordinate descent is a very efficient optimization algorithm for fitting the lasso, but it cannot handle the case when the penalty term is non-separable, which is the case in SLOPE. In practice, this has reduced the applicability of SLOPE to large data, which is unfortunate given the many appealing properties of the model.</p>
<p>In paper 5&nbsp;<span class="citation" data-cites="larsson2023">(Larsson et al. 2023)</span>, however, we present a way to circumvent this issue by using a hybrid of proximal coordinate and proximal gradient descent. Our main discovery is that if we fix the clusters and optimize over each cluster in turn, rather than each feature, the problem becomes separable, which means that coordinate descent can be used. And if we combine this with proximal gradient descent steps, which allow us to discover the clusters, then we can guarantee convergence and at the same time benefit from the efficiency of coordinate descent.</p>
<p>The solver is illustrated for a two-dimensional SLOPE problem in Figure&nbsp;4. The orange cross marks the optimum. Dashed lines indicate PGD steps and solid lines CD steps. Each dot marks a complete epoch, which may correspond to only a single coefficient update for the CD and hybrid solvers if the coefficients flip order. The CD algorithm converges quickly but is stuck after the third epoch. The hybrid and PGD algorithms, meanwhile, reach convergence after 67 and 156 epochs respectively.</p>
<div id="fig-paper5" class="lightbox quarto-float quarto-figure quarto-figure-center anchored page-columns page-full" alt="Optimization paths on a two-dimensional SLOPE problem. Coordinate descent stalls away from the optimum, while the hybrid method reaches it in 67 epochs and proximal gradient descent in 156.">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<div aria-describedby="fig-paper5-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="paper5-highlight.svg" class="lightbox" data-gallery="quarto-lightbox-gallery-4" title="Figure&nbsp;4: An illustration of the hybrid coordinate descent solver we developed for SLOPE, showing progress until convergence for the coordinate descent solver (CD) that we use as part of the hybrid method, our hybrid method, and proximal gradient descent (PGD)."><img src="https://jolars.co/blog/2024-05-22-phd-thesis/paper5-highlight.svg" class="img-fluid figure-img" alt="Optimization paths on a two-dimensional SLOPE problem. Coordinate descent stalls away from the optimum, while the hybrid method reaches it in 67 epochs and proximal gradient descent in 156." width="700"></a>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-fig margin-caption" id="fig-paper5-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;4: An illustration of the hybrid coordinate descent solver we developed for SLOPE, showing progress until convergence for the coordinate descent solver (CD) that we use as part of the hybrid method, our hybrid method, and proximal gradient descent (PGD).
</figcaption>
</figure>
</div>
</section>
<section id="paper-6" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="paper-6">Paper 6</h2>
<p>The final paper of the thesis is a working paper in which we tackle the issue of normalization of binary features. Normalization is necessary in order to put the features on the same scale when dealing with regularized methods. What “same scale” means, however, however, is not clear, yet has been met mostly with neglect in the literature. We think that this is both surprising and problematic given the almost universal use of normalization in regularized methods and the apparent and large effects it has on the solution paths.</p>
<p>In our paper, we begin to bridge this knowledge gap by studying normalization for the lasso and ridge regression when they are used on binary features (features that only contain values 0 or 1) or mix of binary and normally distributed features. What we find is that there is a large effect of normalization with respect to the class balance of the features: the proportion of ones to zeros (or vice versa). Both the lasso and the ridge estimators turn out to be sensitive to this class balance and, depending on the type of normalization used, have trouble recovering effects that are associated with binary features as long as their class balance is severe enough&nbsp;Figure&nbsp;4.</p>
<div id="fig-paper6" class="lightbox quarto-float quarto-figure quarto-figure-center anchored page-columns page-full" alt="Ridge and lasso coefficient estimates as a binary feature becomes more imbalanced. Standard deviation scaling stabilizes ridge estimates, while variance scaling stabilizes lasso estimates. The normal feature stays nearly constant.">
<figure class="quarto-float quarto-float-fig figure page-columns page-full">
<div aria-describedby="fig-paper6-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<a href="paper6-highlight.svg" class="lightbox" data-gallery="quarto-lightbox-gallery-5" title="Figure&nbsp;5: Estimated coefficients from lasso and ridge regression for a two-feature problem where one of the features has a quasi-normal distribution (values deterministically set via the quantile function), with standard deviation 1/2, and the other is a binary (quasi-Bernoulli) feature with class-balance q. The normal feature is standardized in every case, whereas the binary feature is scaled with (q - q^2)^\delta—its variance to the power of \delta. In other words, we have no scaling for \delta=0, standard deviation scaling when \delta=1/2, and variance-scaling when \delta = 1."><img src="https://jolars.co/blog/2024-05-22-phd-thesis/paper6-highlight.svg" class="img-fluid figure-img" alt="Ridge and lasso coefficient estimates as a binary feature becomes more imbalanced. Standard deviation scaling stabilizes ridge estimates, while variance scaling stabilizes lasso estimates. The normal feature stays nearly constant." width="700"></a>
</div>
<figcaption class="quarto-float-caption-margin quarto-float-caption quarto-float-fig margin-caption" id="fig-paper6-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;5: Estimated coefficients from lasso and ridge regression for a two-feature problem where one of the features has a quasi-normal distribution (values deterministically set via the quantile function), with standard deviation 1/2, and the other is a binary (quasi-Bernoulli) feature with class-balance <img src="https://latex.codecogs.com/png.latex?q">. The normal feature is standardized in every case, whereas the binary feature is scaled with <img src="https://latex.codecogs.com/png.latex?(q%20-%20q%5E2)%5E%5Cdelta">—its variance to the power of <img src="https://latex.codecogs.com/png.latex?%5Cdelta">. In other words, we have no scaling for <img src="https://latex.codecogs.com/png.latex?%5Cdelta=0">, standard deviation scaling when <img src="https://latex.codecogs.com/png.latex?%5Cdelta=1/2">, and variance-scaling when <img src="https://latex.codecogs.com/png.latex?%5Cdelta%20=%201">.
</figcaption>
</figure>
</div>
<p>I will offer more details on this paper once work on it has been completed, but I think the results are interesting and that this field is ripe for further exploration.</p>




</section>


<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-bogdan2015" class="csl-entry">
Bogdan, Małgorzata, Ewout van den Berg, Chiara Sabatti, Weijie Su, and Emmanuel J. Candès. 2015. <span>“<span>SLOPE</span> – Adaptive Variable Selection via Convex Optimization.”</span> <em>The Annals of Applied Statistics</em> 9 (3): 1103–40. <a href="https://doi.org/10.1214/15-AOAS842">https://doi.org/10.1214/15-AOAS842</a>.
</div>
<div id="ref-elghaoui2010a" class="csl-entry">
El Ghaoui, Laurent, Vivian Viallon, and Tarek Rabbani. 2010. <span>“Safe Feature Elimination for the <span>LASSO</span> and Sparse Supervised Learning Problems.”</span> <em><span class="nocase">arXiv</span>:1009.4219 [Cs, Math]</em>, September. <a href="https://arxiv.org/abs/1009.4219">https://arxiv.org/abs/1009.4219</a>.
</div>
<div id="ref-larsson2021" class="csl-entry">
Larsson, Johan. 2021. <span>“Look-Ahead Screening Rules for the Lasso.”</span> In <em>22nd <span>European</span> Young Statisticians Meeting - Proceedings</em>, edited by Andreas Makridis, Fotios S. Milienos, Panagiotis Papastamoulis, Christina Parpoula, and Athanasios Rakitzis. <span>Panteion university of social and political sciences</span>. <a href="https://www.eysm2021.panteion.gr/files/Proceedings_EYSM_2021.pdf">https://www.eysm2021.panteion.gr/files/Proceedings_EYSM_2021.pdf</a>.
</div>
<div id="ref-larsson2024" class="csl-entry">
Larsson, Johan. 2024. <span>“Optimization and Algorithms in Sparse Regression: Screening Rules, Coordinate Descent, and Normalization.”</span> PhD thesis, Department of Statistics, Lund University. <a href="https://lup.lub.lu.se/record/0b9c97e8-5f65-43eb-9f7a-c4f237568370">https://lup.lub.lu.se/record/0b9c97e8-5f65-43eb-9f7a-c4f237568370</a>.
</div>
<div id="ref-larsson2020b" class="csl-entry">
Larsson, Johan, Małgorzata Bogdan, and Jonas Wallin. 2020. <span>“The Strong Screening Rule for <span>SLOPE</span>.”</span> In <em>Advances in Neural Information Processing Systems 33</em>, edited by Hugo Larochelle, Marc’Aurelio Ranzato, Raia Hadsell, Maria-Florina Balcan, and Hsuan-Tien Lin, vol. 33. Curran Associates, Inc.<a href="
    https://papers.nips.cc/paper_files/paper/2020/hash/a7d8ae4569120b5bec12e7b6e9648b86-Abstract.html
  "> https://papers.nips.cc/paper_files/paper/2020/hash/a7d8ae4569120b5bec12e7b6e9648b86-Abstract.html</a>.
</div>
<div id="ref-larsson2023" class="csl-entry">
Larsson, Johan, Quentin Klopfenstein, Mathurin Massias, and Jonas Wallin. 2023. <span>“Coordinate Descent for <span>SLOPE</span>.”</span> In <em>Proceedings of the 26th International Conference on Artificial Intelligence and Statistics</em>, edited by Francisco Ruiz, Jennifer Dy, and Jan-Willem van de Meent, vol. 206. Proceedings of Machine Learning Research. PMLR. <a href="https://proceedings.mlr.press/v206/larsson23a.html">https://proceedings.mlr.press/v206/larsson23a.html</a>.
</div>
<div id="ref-larsson2022b" class="csl-entry">
Larsson, Johan, and Jonas Wallin. 2022. <span>“The <span>Hessian</span> Screening Rule.”</span> In <em>Advances in Neural Information Processing Systems 35</em>, edited by Sanmi Koyejo, Sidahmed Mohamed, Alekh Agarwal, Danielle Belgrave, Kyunghyun Cho, and Alice Oh, vol. 35. Curran Associates, Inc.<a href="
    https://papers.nips.cc/paper_files/paper/2022/hash/65a925049647eab0aa06a9faf1cd470b-Abstract-Conference.html
  "> https://papers.nips.cc/paper_files/paper/2022/hash/65a925049647eab0aa06a9faf1cd470b-Abstract-Conference.html</a>.
</div>
<div id="ref-moreau2022a" class="csl-entry">
Moreau, Thomas, Mathurin Massias, Alexandre Gramfort, et al. 2022. <span>“Benchopt: Reproducible, Efficient and Collaborative Optimization Benchmarks.”</span> In <em>Advances in Neural Information Processing Systems 35</em>, edited by S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, vol. 35. Curran Associates, Inc.<a href="
    https://proceedings.neurips.cc/paper\_files/paper/2022/hash/a30769d9b62c9b94b72e21e0ca73f338-Abstract-Conference.html
  "> https://proceedings.neurips.cc/paper\%5Ffiles/paper/2022/hash/a30769d9b62c9b94b72e21e0ca73f338-Abstract-Conference.html</a>.
</div>
<div id="ref-ndiaye2017" class="csl-entry">
Ndiaye, Eugene, Olivier Fercoq, Alexandre Gramfort, and Joseph Salmon. 2017. <span>“Gap <span>Safe</span> Screening Rules for Sparsity Enforcing Penalties.”</span> <em>Journal of Machine Learning Research</em> 18 (128): 1–33. <a href="https://jmlr.org/papers/v18/16-577.html">https://jmlr.org/papers/v18/16-577.html</a>.
</div>
<div id="ref-tibshirani2012" class="csl-entry">
Tibshirani, Robert, Jacob Bien, Jerome Friedman, et al. 2012. <span>“Strong Rules for Discarding Predictors in Lasso-Type Problems.”</span> <em>Journal of the Royal Statistical Society. Series B: Statistical Methodology</em> 74 (2): 245–66. <a href="https://doi.org/10/c4bb85">https://doi.org/10/c4bb85</a>.
</div>
</div></section></div> ]]></description>
  <category>Thesis</category>
  <category>Statistics</category>
  <category>Optimization</category>
  <guid>https://jolars.co/blog/2024-05-22-phd-thesis/</guid>
  <pubDate>Wed, 22 May 2024 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2024-05-22-phd-thesis/cover-image.png" medium="image" type="image/png" height="122" width="144"/>
</item>
<item>
  <title>New Julia Package: ProjectRoot</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2024-05-13-projectroot-jl-new/</link>
  <description><![CDATA[ 





<p>I have created my first <a href="https://julialang.org">Julia</a> package! It is called <a href="https://github.com/jolars/ProjectRoot.jl">ProjectRoot</a> and is a small utility package that helps with file referencing withing a project-oriented workflow.</p>
<p>I’ve stolen the idea of the package from the R and Python packages <a href="https://here.r-lib.org/">here</a> and <a href="https://github.com/chendaniely/pyprojroot">pyprojroot</a>, which are package that I have used frequently in the past to simplify file referencing for research projects, particularly when referencing data files or creating plot files in a project.</p>
<section id="installation" class="level2">
<h2 class="anchored" data-anchor-id="installation">Installation</h2>
<p>The package is on the general Julia registry, so it can be installed in Julia by calling</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb1-1">]add ProjectRoot</span></code></pre></div></div>
</section>
<section id="usage" class="level2">
<h2 class="anchored" data-anchor-id="usage">Usage</h2>
<p>The package is designed to be light on dependencies and carries only a single exported macro, <code>@projectroot</code>. And its usage is simple. Consider the following simple directory structure.</p>
<pre><code>MyProject
├── scripts
│   └── A.jl
├── src
│   └── B.jl
└── Project.toml</code></pre>
<p>If you want to refer to a file, say <code>src/B.jl</code>, you simply need to use</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb3-1"><span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">@projectroot</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"src"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"B.jl"</span>)</span></code></pre></div></div>
<p>anywhere in your project, for instance in <code>scripts/A.jl</code>.</p>
</section>
<section id="how-it-works" class="level2">
<h2 class="anchored" data-anchor-id="how-it-works">How it Works</h2>
<p>The <code>@projectroot</code> macro fetches the file from where it is called and then recursively searches upwards in the file hierarchy until it finds one of the following:</p>
<ol type="1">
<li>A <code>.projectroot</code> file</li>
<li>A <code>Project.toml</code> file</li>
<li>A <code>JuliaProject.toml</code> file</li>
<li>A <code>Manifest.toml</code> file</li>
<li>A <code>.git</code> folder</li>
<li>An <code>.svn</code> folder</li>
</ol>
<p>The search terminates when it finds one of these files or when you reach the root of the file system. And this is what <code>@projectroot</code> returns.</p>
<p>String interpolation is also supported, so you can use</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb4" style="background: #f1f3f5;"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb4-1">file <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">=</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"B.jl"</span></span>
<span id="cb4-2"><span class="pp" style="color: #AD0000;
background-color: null;
font-style: inherit;">@projectroot</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"src"</span>) <span class="op" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"/</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>(file)<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"</span></span></code></pre></div></div>
<p>and so on.</p>
</section>
<section id="repl" class="level2">
<h2 class="anchored" data-anchor-id="repl">REPL</h2>
<p>Calling <code>@projectroot</code> from the REPL uses the same logic as above, but the search starts from the current working directory instead.</p>
</section>
<section id="alternatives" class="level2">
<h2 class="anchored" data-anchor-id="alternatives">Alternatives</h2>
<p>There is already similar functionality in the excellent <a href="https://github.com/JuliaDynamics/DrWatson.jl">DrWatson</a> package. But I generally prescribe to the Unix philosophy (Doug McIlroy):</p>
<blockquote class="blockquote">
<p>Make each program do one thing well. To do a new job, build afresh rather than complicate old programs by adding new “features”.</p>
</blockquote>
<p>So if you just need a lightweight package in the same spirit as <code>here</code> and <code>pyprojroot</code>, then <code>ProjectRoot</code> might just be the right tool for you.</p>
</section>
<section id="contributing" class="level2">
<h2 class="anchored" data-anchor-id="contributing">Contributing</h2>
<p>As always, I am happy for any kind of contribution. This is my first Julia package and I still haven’t wrapped my head around all the intricacies of Julia and its package ecosystem. So if you have any suggestions, please let me know. The source code is stored in the GitHub repository at <a href="https://github.com/jolars/ProjectRoot.jl">jolars/ProjectRoot.jl</a> and you can find the documentation for the latest stable version <a href="https://jolars.github.io/ProjectRoot.jl/stable/">here</a>.</p>



</section>

 ]]></description>
  <category>Julia</category>
  <category>Software</category>
  <guid>https://jolars.co/blog/2024-05-13-projectroot-jl-new/</guid>
  <pubDate>Mon, 13 May 2024 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2024-05-13-projectroot-jl-new/projectroot-logo.svg" medium="image" type="image/svg+xml"/>
</item>
<item>
  <title>SLOPE 0.2.0</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2020-04-14-slope-0-2-0/</link>
  <description><![CDATA[ 





<section id="introduction-to-slope" class="level2 page-columns page-full">
<h2 class="anchored" data-anchor-id="introduction-to-slope">Introduction to SLOPE</h2>
<p>SLOPE <span class="citation" data-cites="bogdan2015">(Bogdan et al. 2015)</span> stands for sorted L1 penalized estimation and is a generalization of OSCAR <span class="citation" data-cites="bondell2008">(Bondell and Reich 2008)</span>. As the name suggests, SLOPE is a type of <img src="https://latex.codecogs.com/png.latex?%5Cell_1">-regularization. More specifically, SLOPE fits generalized linear models regularized with the sorted <img src="https://latex.codecogs.com/png.latex?%5Cell_1"> norm. The objective in SLOPE is</p>
<p><img src="https://latex.codecogs.com/png.latex?%5Coperatorname%7Bminimize%7D%5Cleft%5C%7B%20f(%5Cbeta)%20+%20J(%5Cbeta%20%5Cmid%20%5Clambda)%5Cright%5C%7D,"></p>
<p>where <img src="https://latex.codecogs.com/png.latex?f(%5Cbeta)"> is typically the log-likelihood of some model in the family of generalized linear models and</p>
<p><img src="https://latex.codecogs.com/png.latex?J(%5Cbeta%5Cmid%20%5Clambda)%20=%20%5Csum_%7Bi=1%7D%5Ep%20%5Clambda_i%7C%5Cbeta%7C_%7B(i)%7D"></p>
<p>is the sorted <img src="https://latex.codecogs.com/png.latex?%5Cell_1"> norm.</p>
<p>Some people will note that this penalty is a generalization of the standard <img src="https://latex.codecogs.com/png.latex?%5Cell_1"> norm penalty<sup>1</sup>. As such, SLOPE is a type of sparse regression—just like the lasso. Unlike the lasso, however, SLOPE gracefully handles correlated features. Whereas the lasso often discards all but a few among a set of correlated features <span class="citation" data-cites="jia2010">(Jia and Yu 2010)</span>, SLOPE instead <em>clusters</em> such features together by setting such clusters to have the same coefficient in absolut value.</p>
<div class="no-row-height column-margin column-container"><div id="fn1"><p><sup>1</sup>&nbsp;Simply set <img src="https://latex.codecogs.com/png.latex?%5Clambda_i%20=%20%5Clambda_j"> for all <img src="https://latex.codecogs.com/png.latex?i,j%20%5Cin%20%5C%7B1,%5Cdots,p%5C%7D"> and you get the lasso penalty.</p></div></div></section>
<section id="slope-0.2.0" class="level2">
<h2 class="anchored" data-anchor-id="slope-0.2.0">SLOPE 0.2.0</h2>
<p>SLOPE 0.2.0 is a new verison of the R package <a href="https://CRAN.R-project.org/package=SLOPE">SLOPE</a> featuring a range of improvements over the previous package. If you are completely new to the package, please start with the <a href="https://jolars.github.io/SLOPE/articles/introduction.html">introductory vignette</a>.</p>
<section id="more-model-families" class="level3">
<h3 class="anchored" data-anchor-id="more-model-families">More model families</h3>
<p>Previously, SLOPE only features ordinary least-squares regression. Now the package features logistic, Poisson, and multinomial regression on top of that. Just as in other similar packages, this is enabled simply by setting <code>family = "binomial"</code> for logistic regression, for instance.</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(SLOPE)</span>
<span id="cb1-2">fit <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">SLOPE</span>(wine<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>x, wine<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>y, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">family =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"multinomial"</span>)</span></code></pre></div></div>
</div>
</section>
<section id="regularization-path-fitting" class="level3">
<h3 class="anchored" data-anchor-id="regularization-path-fitting">Regularization path fitting</h3>
<p>By default, SLOPE now fits a full regularization path instead of only a single penalty sequence at once. This behavior is now analogous with the default behavior in glmnet.</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(fit)</span></code></pre></div></div>
<div class="cell-output-display">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2020-04-14-slope-0-2-0/index_files/figure-html/unnamed-chunk-3-1.png" class="img-fluid figure-img" alt="Coefficient paths for two multinomial wine classes. Colored predictor coefficients shrink toward zero as regularization increases." width="768"></p>
<figcaption>Coefficients from the regularization path for a multinomial model.</figcaption>
</figure>
</div>
</div>
</div>
</section>
<section id="predictor-screening-rules" class="level3">
<h3 class="anchored" data-anchor-id="predictor-screening-rules">Predictor screening rules</h3>
<p>The package now uses predictor screening rules to vastly improve performance in the <img src="https://latex.codecogs.com/png.latex?p%20%5Cgg%20n"> domain. Screening rules are part of what makes other related packages such as glmnet so efficient. In SLOPE, we use a variant of the strong screening rules for the lasso <span class="citation" data-cites="tibshirani2012">(Tibshirani et al. 2012)</span>.</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1">xy <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> SLOPE<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">randomProblem</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">100</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1000</span>)</span>
<span id="cb3-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">system.time</span>({<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">SLOPE</span>(xy<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>x, xy<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>y, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">screen =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)})</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>   user  system elapsed 
  1.198   0.004   0.159 </code></pre>
</div>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb5" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb5-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">system.time</span>({<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">SLOPE</span>(xy<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>x, xy<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>y, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">screen =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>)})</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>   user  system elapsed 
  2.781   0.006   0.364 </code></pre>
</div>
</div>
</section>
<section id="cross-validation-and-caret" class="level3">
<h3 class="anchored" data-anchor-id="cross-validation-and-caret">Cross-validation and caret</h3>
<p>There is now a function <code>trainSLOPE()</code>, which can be used to run cross-validation for optimal selection of <code>sigma</code> and <code>q</code>. Here, we run 8-fold cross-validation repeated 5 times.</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb7" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb7-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># 8-fold cross-validation repeated 5 times</span></span>
<span id="cb7-2">tune <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">trainSLOPE</span>(</span>
<span id="cb7-3">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">subset</span>(mtcars, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">select =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"mpg"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"drat"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"wt"</span>)),</span>
<span id="cb7-4">  mtcars<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>hp,</span>
<span id="cb7-5">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">q =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.1</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.2</span>),</span>
<span id="cb7-6">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">number =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">8</span>,</span>
<span id="cb7-7">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">repeats =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span></span>
<span id="cb7-8">)</span>
<span id="cb7-9"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(tune)</span></code></pre></div></div>
<div class="cell-output-display">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2020-04-14-slope-0-2-0/index_files/figure-html/unnamed-chunk-5-1.png" class="img-fluid figure-img" alt="Cross-validation mean squared error versus regularization for q values of 0.1 and 0.2. Shaded bands show uncertainty, and a dotted line marks the selected value." width="672"></p>
<figcaption>Cross-validation with SLOPE.</figcaption>
</figure>
</div>
</div>
</div>
<p>In addition, the package now also features a function <code>caretSLOPE()</code> that can be used via the excellent caret package, which enables a swath of resampling methods and comparisons.</p>
</section>
<section id="c-and-admm" class="level3">
<h3 class="anchored" data-anchor-id="c-and-admm">C++ and ADMM</h3>
<p>All of the performance-critical code for SLOPE has been rewritten in C++. In addition, the package now features an ADMM solver for <code>family = "gaussian"</code>, enabled by setting <code>solver = "admm"</code> in the call to <code>SLOPE()</code>. Preliminary testing shows that this solver is faster for many designs, particularly when there is high correlation among predictors.</p>
</section>
<section id="sparse-design-matrices" class="level3">
<h3 class="anchored" data-anchor-id="sparse-design-matrices">Sparse design matrices</h3>
<p>SLOPE now also allows sparse design matrcies of classes from the Matrix package.</p>
</section>
<section id="and-much-more" class="level3">
<h3 class="anchored" data-anchor-id="and-much-more">And much more…</h3>
<p>For a full list of changes, please see <a href="https://jolars.github.io/SLOPE/news/index.html#slope-020">the changelog</a>.</p>
</section>
</section>
<section id="references" class="level2">
<h2 class="anchored" data-anchor-id="references">References</h2>




</section>


<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-bogdan2015" class="csl-entry">
Bogdan, Małgorzata, Ewout van den Berg, Chiara Sabatti, Weijie Su, and Emmanuel J. Candès. 2015. <span>“<span>SLOPE</span> – Adaptive Variable Selection via Convex Optimization.”</span> <em>The Annals of Applied Statistics</em> 9 (3): 1103–40. <a href="https://doi.org/10.1214/15-AOAS842">https://doi.org/10.1214/15-AOAS842</a>.
</div>
<div id="ref-bondell2008" class="csl-entry">
Bondell, Howard D., and Brian J. Reich. 2008. <span>“Simultaneous Regression Shrinkage, Variable Selection, and Supervised Clustering of Predictors with <span>OSCAR</span>.”</span> <em>Biometrics</em> 64 (1): 115–23. <a href="https://doi.org/10.1111/j.1541-0420.2007.00843.x">https://doi.org/10.1111/j.1541-0420.2007.00843.x</a>.
</div>
<div id="ref-jia2010" class="csl-entry">
Jia, J., and B. Yu. 2010. <span>“On Model Selection Consistency of the Elastic Net When p <span><img src="https://latex.codecogs.com/png.latex?%3E%3E"></span> n.”</span> <em>Statistica Sinica</em> 20 (2): 595–611.
</div>
<div id="ref-tibshirani2012" class="csl-entry">
Tibshirani, Robert, Jacob Bien, Jerome Friedman, et al. 2012. <span>“Strong Rules for Discarding Predictors in Lasso-Type Problems.”</span> <em>Journal of the Royal Statistical Society. Series B: Statistical Methodology</em> 74 (2): 245–66. <a href="https://doi.org/10/c4bb85">https://doi.org/10/c4bb85</a>.
</div>
</div></section></div> ]]></description>
  <category>R</category>
  <category>SLOPE</category>
  <category>Statistics</category>
  <category>Software</category>
  <guid>https://jolars.co/blog/2020-04-14-slope-0-2-0/</guid>
  <pubDate>Tue, 14 Apr 2020 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2020-04-14-slope-0-2-0/slope.svg" medium="image" type="image/svg+xml"/>
</item>
<item>
  <title>Polygon Labeling with polylabelr</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2018-10-29-polygon-labeling-with-polylabelr/</link>
  <description><![CDATA[ 





<section id="labeling-euler-diagram-overlaps" class="level2">
<h2 class="anchored" data-anchor-id="labeling-euler-diagram-overlaps">Labeling Euler diagram overlaps</h2>
<p>The purpose of my R package <a href="https://github.com/jolars/eulerr">eulerr</a> is to fit and <em>visualize</em> Euler diagrams. Besides the various intricacies involved in fitting the diagrams, there are many interesting problems involved in their visualization. One of these is the labeling of the overlaps.</p>
<p>Naturally, simply positioning the labels at the shapes’ centers fails more often than not. Nevertheless, this stategy is employed by <strong>venneuler</strong>, for instance, and the plots usually demand manual tuning.</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># an example set combination</span></span>
<span id="cb1-2">s <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(</span>
<span id="cb1-3">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SE"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">13</span>,</span>
<span id="cb1-4">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Treat"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">28</span>,</span>
<span id="cb1-5">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Anti-CCP"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">101</span>,</span>
<span id="cb1-6">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"DAS28"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">91</span>,</span>
<span id="cb1-7">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SE&amp;Treat"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>,</span>
<span id="cb1-8">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SE&amp;DAS28"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">14</span>,</span>
<span id="cb1-9">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Treat&amp;Anti-CCP"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>,</span>
<span id="cb1-10">  <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"SE&amp;Anti-CCP&amp;DAS28"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span></span>
<span id="cb1-11">)</span>
<span id="cb1-12"></span>
<span id="cb1-13"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(venneuler, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">quietly =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span>
<span id="cb1-14">fit_venneuler <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">venneuler</span>(s)</span>
<span id="cb1-15"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(fit_venneuler)</span></code></pre></div></div>
<div class="cell-output-display">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2018-10-29-polygon-labeling-with-polylabelr/index_files/figure-html/venneuler-1.png" class="img-fluid figure-img" alt="Four overlapping circles labeled Treat, SE, Anti-CCP, and DAS28. Labels at circle centers do not identify all intersection regions." width="336"></p>
<figcaption>A plot from venneuler with suboptimal label placements.</figcaption>
</figure>
</div>
</div>
</div>
<p>Up til now, I solved this in <strong>eulerr</strong> by, for each overlap, filling one of the involved shapes (circles or ellipses) with points and then numerically optimizing the location of the point using a Nelder–Mead optimizer. However, given that the solution to finding the distance between a point and an ellipse—at least one that is rotated—itself requires a numerical solution <span class="citation" data-cites="eberly2013">(Eberly 2013)</span>, this procedure turned out to be quite inefficient.</p>
</section>
<section id="the-promise-of-polygons" class="level2">
<h2 class="anchored" data-anchor-id="the-promise-of-polygons">The promise of polygons</h2>
<p>R has powerful functionality for plotting in general, but lacks capabilities for drawing ellipses using curves. High-resolution polygons are thankfully a readily available remedy for this and have since several version back been used also in <strong>eulerr</strong>.</p>
<p>The upside of using polygons, however, are that they are usually much easier, even if sometimes inefficient, to work with. For instance, they make constructing separate shapes for each overlap a breeze using the polyclip package <span class="citation" data-cites="johnson2018">(Johnson and Baddeley 2018)</span>.</p>
<p>And because basically all shapes in digital maps are polygons, there happens to exist a multitude of other useful tools to deal with a wide variety of tasks related to polygons. One of these turned out to be precisely what I needed: polylabel <span class="citation" data-cites="mapbox2018">(Mapbox [2016] 2018)</span> from the Mapbox suite. Because the details of the library <a href="https://blog.mapbox.com/a-new-algorithm-for-finding-a-visual-center-of-a-polygon-7c77e6492fbc">have already been explained elsewhere</a> I will spare you the details, but briefly put it uses quadtree binning to divide the polygon into square bins, pruning away dead-ends. It is inefficient and will, according to the authors, find a point that is “guaranteed to be a global optimum within the given precision”.</p>
<p>Because it appeared to be such a valuable tool for R users, I decided to create a wrapper for the c++ header for polylabel and bundle it as a package for R users.</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># install.packages("polylabelr")</span></span>
<span id="cb2-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(polylabelr)</span>
<span id="cb2-3"></span>
<span id="cb2-4"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># a concave polygon with a hole</span></span>
<span id="cb2-5">x <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">6</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">9</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">10</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">12</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">NA</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>)</span>
<span id="cb2-6">y <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">NA</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>)</span>
<span id="cb2-7"></span>
<span id="cb2-8"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># locate the pole of inaccessibility</span></span>
<span id="cb2-9">p <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">poi</span>(x, y, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">precision =</span> <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.01</span>)</span>
<span id="cb2-10"></span>
<span id="cb2-11"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot.new</span>()</span>
<span id="cb2-12"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot.window</span>(</span>
<span id="cb2-13">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">range</span>(x, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">na.rm =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>),</span>
<span id="cb2-14">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">range</span>(y, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">na.rm =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>),</span>
<span id="cb2-15">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">asp =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span></span>
<span id="cb2-16">)</span>
<span id="cb2-17"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">polypath</span>(x, y, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">col =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"grey90"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">rule =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"evenodd"</span>)</span>
<span id="cb2-18"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">points</span>(p, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">cex =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">pch =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">16</span>)</span></code></pre></div></div>
<div class="cell-output-display">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2018-10-29-polygon-labeling-with-polylabelr/index_files/figure-html/polylabelr-1.png" class="img-fluid figure-img" alt="A concave polygon with a triangular hole. A black point marks the pole of inaccessibility inside its broad right-hand region." width="336"></p>
<figcaption>Locating poles of inaccessibility with polylabel.</figcaption>
</figure>
</div>
</div>
</div>
<p>The package <a href="https://CRAN.R-project.org/package=polylabelr">is availabe on cran</a>, the source code is located at <a href="https://github.com/jolars/polylabelr" class="uri">https://github.com/jolars/polylabelr</a> and is documented at <a href="https://jolars.github.io/polylabelr/" class="uri">https://jolars.github.io/polylabelr/</a>.</p>
</section>
<section id="euler-diagrams" class="level2">
<h2 class="anchored" data-anchor-id="euler-diagrams">Euler diagrams</h2>
<p>To come back around to where we started at, <strong>polylabelr</strong> has now been employed in the development branch of <strong>eulerr</strong> where it is used to quickly and appropriately figure out locations for the labels of the diagram.</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(eulerr)</span>
<span id="cb3-2"></span>
<span id="cb3-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">euler</span>(s))</span></code></pre></div></div>
<div class="cell-output-display">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2018-10-29-polygon-labeling-with-polylabelr/index_files/figure-html/eulerr-1.png" class="img-fluid figure-img" alt="Euler diagram of Anti-CCP, DAS28, SE, and Treat, with labels positioned within their respective regions." width="336"></p>
<figcaption>An Euler diagram with appropriate label placement.</figcaption>
</figure>
</div>
</div>
</div>
</section>
<section id="references" class="level2">
<h2 class="anchored" data-anchor-id="references">References</h2>




</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-eberly2013" class="csl-entry">
Eberly, David. 2013. <span>“Distance from a Point to an Ellipse, an Ellipsoid, or a Hyperellipsoid.”</span> <span>Geometric Tools</span>, June 28. <a href="https://www.geometrictools.com/Documentation/DistancePointEllipseEllipsoid.pdf">https://www.geometrictools.com/Documentation/DistancePointEllipseEllipsoid.pdf</a>.
</div>
<div id="ref-johnson2018" class="csl-entry">
Johnson, Angus, and Adrian Baddeley. 2018. <em>Polyclip: Polygon Clipping</em>. V. 1.9-1. Released. <a href="https://CRAN.R-project.org/package=polyclip">https://CRAN.R-project.org/package=polyclip</a>.
</div>
<div id="ref-mapbox2018" class="csl-entry">
Mapbox. (2016) 2018. <em>A Fast Algorithm for Finding the Pole of Inaccessibility of a Polygon (in <span>JavaScript</span> and <span>C</span>++): <span>Mapbox/Polylabel</span></em>. V. 1.0.3. July 8; <span>Mapbox</span>, released October 29. <a href="https://github.com/mapbox/polylabel">https://github.com/mapbox/polylabel</a>.
</div>
</div></section></div> ]]></description>
  <category>R</category>
  <category>Geometry</category>
  <category>Polylabelr</category>
  <guid>https://jolars.co/blog/2018-10-29-polygon-labeling-with-polylabelr/</guid>
  <pubDate>Mon, 29 Oct 2018 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2018-10-29-polygon-labeling-with-polylabelr/polylabelr.png" medium="image" type="image/png" height="60" width="144"/>
</item>
<item>
  <title>Finding the Farthest Points in a Point Cloud</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2016-10-30-farthest-points/</link>
  <description><![CDATA[ 





<p>My R package <a href="https://github.com/jolars/qualpalr">qualpalr</a> selects qualitative colors by projecting a bunch of colors (as points) to the three-dimensional DIN99d color space wherein the distance between any pair colors approximate their differences in appearance. The package then tries to choose the <code>n</code> colors so that the minimal pairwise distance among them is maximized, that is, we want the most similar pair of colors to be as dissimilar as possible.</p>
<p>This turns out to be much less trivial that one would suspect, which posts on <a href="http://scicomp.stackexchange.com/questions/20030/selecting-most-scattered-points-from-a-set-of-points">Computational Science</a>, <a href="https://se.mathworks.com/matlabcentral/answers/42622-how-can-i-choose-a-subset-of-k-points-the-farthest-apart">MATLAB Central</a>, <a href="http://stackoverflow.com/questions/27971223/finding-largest-minimum-distance-among-k-objects-in-n-possible-distinct-position">Stack Overflow</a>, and and <a href="http://cs.stackexchange.com/questions/22767/choosing-a-subset-to-maximize-the-minimum-distance-between-points">Computer Science</a> can attest to.</p>
<p>Up til now, qualpalr solved this problem with a greedy approach. If we, for instance, want to find <code>n</code> points we did the following.</p>
<pre><code>M &lt;- Compute a distance matrix of all points in the sample
X &lt;- Select the two most distant points from M
for i = 3:n
    X(i) &lt;- Select point in M that maximize the
            mindistance to all points in X</code></pre>
<p>In R, this code looked like this (in two dimensions):</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set.seed</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>)</span>
<span id="cb2-2"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># find n points</span></span>
<span id="cb2-3">n <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span></span>
<span id="cb2-4">mat  <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">matrix</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">runif</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">100</span>), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ncol =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>)</span>
<span id="cb2-5"></span>
<span id="cb2-6">dmat <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as.matrix</span>(stats<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">dist</span>(mat))</span>
<span id="cb2-7">ind <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">integer</span>(n)</span>
<span id="cb2-8">ind[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>] <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as.vector</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">arrayInd</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">which.max</span>(dmat), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.dim =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">dim</span>(dmat)))</span>
<span id="cb2-9"></span>
<span id="cb2-10"><span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> (i <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span>n) {</span>
<span id="cb2-11">  mm <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> dmat[ind, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>ind, drop <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>]</span>
<span id="cb2-12">  k <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">which.max</span>(mm[(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ncol</span>(mm) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nrow</span>(mm) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">max.col</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">t</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>mm))])</span>
<span id="cb2-13">  ind[i] <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as.numeric</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">dimnames</span>(mm)[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>]][k])</span>
<span id="cb2-14">}</span>
<span id="cb2-15"></span>
<span id="cb2-16"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(mat, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">asp =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">xlab =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ylab =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>)</span>
<span id="cb2-17"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(mat, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">asp =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">xlab =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ylab =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>)</span>
<span id="cb2-18"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">points</span>(mat[ind, ], <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">pch =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">19</span>)</span>
<span id="cb2-19"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">text</span>(mat[ind, ], <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">adj =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.5</span>))</span></code></pre></div></div>
<div class="cell quarto-layout-panel" data-layout-ncol="2" data-fig-lab="greedy-approach">
<div class="quarto-layout-row">
<div class="quarto-layout-cell" style="flex-basis: 50.0%;justify-content: flex-start;">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2016-10-30-farthest-points/index_files/figure-html/unnamed-chunk-1-1.png" class="img-fluid figure-img" alt="Fifty points scattered across a unit square before selection by the greedy algorithm." width="384"></p>
<figcaption>Point cloud</figcaption>
</figure>
</div>
</div>
<div class="quarto-layout-cell" style="flex-basis: 50.0%;justify-content: flex-start;">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2016-10-30-farthest-points/index_files/figure-html/unnamed-chunk-1-2.png" class="img-fluid figure-img" alt="The greedy algorithm selects three points near the upper left, lower right, and upper right of the point cloud." width="384"></p>
<figcaption>Points selected by the greedy algorithm</figcaption>
</figure>
</div>
</div>
</div>
</div>
<p>While this greedy procedure is fast and works well for large values of <code>n</code> it is quite inefficient in the example above. It is plain to see that there are other subsets of 3 points that would have a larger minimum distance but because we base our selection on the previous 2 points that were selected to be maximally distant, the algorithm has to pick a suboptimal third point. The minimum distance in our example is 0.7641338.</p>
<p>The solution I came up with is based on a solution from Schlomer et al. <span class="citation" data-cites="schlomer2011">(Schlömer et al. 2011)</span> who devised of an algorithm to partition a sets of points into subsets whilst maximizing the minimal distance. They used <a href="https://en.wikipedia.org/wiki/Delaunay_triangulation">delaunay triangulations</a> but I decided to simply use the distance matrix instead. The algorithm works as follows.</p>
<pre><code>M &lt;- Compute a distance matrix of all points in the sample
S &lt;- Sample n points randomly from M
repeat
    for i = 1:n
        M    &lt;- Add S(i) back into M
        S(i) &lt;- Find point in M\S with max mindistance to any point in S
                until M did not change</code></pre>
<p>Iteratively, we put one point from our candidate subset (S) back into the original se (M) and check all distances between the points in S to those in M to find the point with the highest minimum distance. Rinse and repeat until we are only putting back the same points we started the loop with, which always happens. Let’s see how this works on the same data set we used above.</p>
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb4" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb4-1">r <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sample.int</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nrow</span>(dmat), n)</span>
<span id="cb4-2"></span>
<span id="cb4-3"><span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">repeat</span> {</span>
<span id="cb4-4">  r_old <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> r</span>
<span id="cb4-5">  <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> (i <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span>n) {</span>
<span id="cb4-6">    mm <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> dmat[r[<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>i], <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>r[<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>i], drop <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>]</span>
<span id="cb4-7">    k <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">which.max</span>(mm[(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ncol</span>(mm) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nrow</span>(mm) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">max.col</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">t</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>mm))])</span>
<span id="cb4-8">    r[i] <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as.numeric</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">dimnames</span>(mm)[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>]][k])</span>
<span id="cb4-9">  }</span>
<span id="cb4-10">  <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">if</span> (<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">identical</span>(r_old, r)) <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">break</span></span>
<span id="cb4-11">}</span>
<span id="cb4-12"></span>
<span id="cb4-13"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(mat, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">asp =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">xlab =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ylab =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>)</span>
<span id="cb4-14"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(mat, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">asp =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">xlab =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ylab =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">""</span>)</span>
<span id="cb4-15"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">points</span>(mat[r, ], <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">pch =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">19</span>)</span>
<span id="cb4-16"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">text</span>(mat[r, ], <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">adj =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span><span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">1.5</span>))</span></code></pre></div></div>
<div class="cell quarto-layout-panel" data-layout-ncol="2" data-fig-lab="new-approach">
<div class="quarto-layout-row">
<div class="quarto-layout-cell" style="flex-basis: 50.0%;justify-content: flex-start;">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2016-10-30-farthest-points/index_files/figure-html/unnamed-chunk-2-1.png" class="img-fluid figure-img" alt="The same fifty-point cloud before selection by the iterative algorithm." width="384"></p>
<figcaption>Point cloud</figcaption>
</figure>
</div>
</div>
<div class="quarto-layout-cell" style="flex-basis: 50.0%;justify-content: flex-start;">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2016-10-30-farthest-points/index_files/figure-html/unnamed-chunk-2-2.png" class="img-fluid figure-img" alt="The iterative algorithm selects points near the upper left, upper right, and bottom center, increasing the minimum pairwise distance." width="384"></p>
<figcaption>Points selected by the new algorithm</figcaption>
</figure>
</div>
</div>
</div>
</div>
<p>Here, we end up with a minimum distance of 0.8619587. In qualpalr, this means that we now achieve slightly more distinct colors.</p>
<section id="performance" class="level2">
<h2 class="anchored" data-anchor-id="performance">Performance</h2>
<p>The new algorithm is slightly slower than the old, greedy approach and slightly more verbose</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb5" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb5-1">f_greedy <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">function</span>(data, n) {</span>
<span id="cb5-2">  dmat <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as.matrix</span>(stats<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">dist</span>(data))</span>
<span id="cb5-3">  ind <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">integer</span>(n)</span>
<span id="cb5-4">  ind[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>] <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as.vector</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">arrayInd</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">which.max</span>(dmat), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">.dim =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">dim</span>(dmat)))</span>
<span id="cb5-5">  <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> (i <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span>n) {</span>
<span id="cb5-6">    mm <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> dmat[ind, <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>ind, drop <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>]</span>
<span id="cb5-7">    k <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">which.max</span>(mm[(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ncol</span>(mm) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nrow</span>(mm) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">max.col</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">t</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>mm))])</span>
<span id="cb5-8">    ind[i] <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as.numeric</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">dimnames</span>(mm)[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>]][k])</span>
<span id="cb5-9">  }</span>
<span id="cb5-10">  ind</span>
<span id="cb5-11">}</span>
<span id="cb5-12"></span>
<span id="cb5-13">f_new <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">function</span>(dat, n) {</span>
<span id="cb5-14">  dmat <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as.matrix</span>(stats<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">dist</span>(data))</span>
<span id="cb5-15">  r <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sample.int</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nrow</span>(dmat), n)</span>
<span id="cb5-16">  <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">repeat</span> {</span>
<span id="cb5-17">    r_old <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> r</span>
<span id="cb5-18">    <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">for</span> (i <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">in</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span>n) {</span>
<span id="cb5-19">      mm <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> dmat[r[<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>i], <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>r[<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>i], drop <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>]</span>
<span id="cb5-20">      k <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">which.max</span>(mm[(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">ncol</span>(mm) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">*</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">nrow</span>(mm) <span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">+</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">max.col</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">t</span>(<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">-</span>mm))])</span>
<span id="cb5-21">      r[i] <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">as.numeric</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">dimnames</span>(mm)[[<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>]][k])</span>
<span id="cb5-22">    }</span>
<span id="cb5-23">    <span class="cf" style="color: #003B4F;
background-color: null;
font-weight: bold;
font-style: inherit;">if</span> (<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">identical</span>(r_old, r)) <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">return</span>(r)</span>
<span id="cb5-24">  }</span>
<span id="cb5-25">}</span></code></pre></div></div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb6" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb6-1">n <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span></span>
<span id="cb6-2">data <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">matrix</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">runif</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">900</span>), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">ncol =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>)</span>
<span id="cb6-3">microbenchmark<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">microbenchmark</span>(</span>
<span id="cb6-4">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">f_greedy</span>(data, n),</span>
<span id="cb6-5">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">f_new</span>(data, n),</span>
<span id="cb6-6">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">times =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1000</span>L</span>
<span id="cb6-7">)</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>Unit: microseconds
              expr      min       lq     mean    median       uq      max neval
 f_greedy(data, n)  799.503  887.881 1158.959  990.9285 1143.117 39747.68  1000
    f_new(data, n) 1066.954 1508.136 1893.722 1710.8860 2002.331 13596.49  1000
 cld
  a 
   b</code></pre>
</div>
</div>
<p>The newest development version of qualpalr now uses this updated algorithm which has also been generalized and included as a new function in my R package <a href="https://github.com/jolars/euclidr">euclidr</a> called <code>farthest_points</code>.</p>
</section>
<section id="references" class="level2">
<h2 class="anchored" data-anchor-id="references">References</h2>




</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-schlomer2011" class="csl-entry">
Schlömer, Thomas, Daniel Heck, and Oliver Deussen. 2011. <span>“Farthest-Point Optimized Point Sets with Maximized Minimum Distance.”</span> <em>Proceedings of the <span>ACM</span> <span>SIGGRAPH</span> Symposium on High Performance Graphics</em> (New York, NY, USA), <span>HPG</span> ’11, August 5, 135–42. <a href="https://doi.org/10.1145/2018323.2018345">https://doi.org/10.1145/2018323.2018345</a>.
</div>
</div></section></div> ]]></description>
  <category>R</category>
  <category>Qualpalr</category>
  <category>Data visualization</category>
  <category>Geometry</category>
  <guid>https://jolars.co/blog/2016-10-30-farthest-points/</guid>
  <pubDate>Sun, 30 Oct 2016 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2016-10-30-farthest-points/farthest-points.png" medium="image" type="image/png" height="141" width="144"/>
</item>
<item>
  <title>Introducing eulerr</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2016-10-19-introducing-eulerr/</link>
  <description><![CDATA[ 





<p><strong>eulerr</strong> is an <a href="https://www.r-project.org">R</a> package that generates area-proportional euler diagrams to display set relationships (intersections, unions, and disjoints) with circles. <a href="https://en.wikipedia.org/wiki/Euler_diagram">Euler diagrams</a> are Venn diagrams without the requirement that all set interactions be present (whether they are empty or not). That is, depending on input, eulerr will sometimes produce Venn diagrams but sometimes not.</p>
<section id="background" class="level2">
<h2 class="anchored" data-anchor-id="background">Background</h2>
<p>R features a number of packages that produce Euler and/or Venn diagrams; some of the more prominent ones (on CRAN) are</p>
<ul>
<li><a href="https://cran.r-project.org/package=eVenn">eVenn</a>,</li>
<li><a href="https://cran.r-project.org/package=VennDiagram">VennDiagram</a>,</li>
<li><a href="https://cran.r-project.org/package=venn">venn</a>,</li>
<li><a href="https://cran.r-project.org/package=colorfulVennPlot">colorfulVennPlot</a>, and</li>
<li><a href="https://cran.r-project.org/package=venneuler">venneuler</a>.</li>
</ul>
<p>The last of these (venneuler) serves as the primary inspiration for this package, along with the refinements that Ben Fredrickson has presented on his <a href="http://www.benfrederickson.com/">blog</a> and made available in his javascript <a href="https://github.com/benfred/venn.js">venn.js</a>.</p>
<p>venneuler, however, is written in java, preventing R users from browsing the source code (unless they are also literate in java) or contributing. Furthermore, venneuler is known to produce imperfect output for set configurations that have perfect solutions. Consider, for instance, the following example in which the intersection between <code>A</code> and <code>B</code> is unwanted.</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(venneuler, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">quietly =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span>
<span id="cb1-2">venn_fit <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">venneuler</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">A =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">75</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">B =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">50</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"A&amp;B"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>))</span>
<span id="cb1-3"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(venn_fit)</span></code></pre></div></div>
<div class="cell-output-display">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2016-10-19-introducing-eulerr/index_files/figure-html/unnamed-chunk-2-1.png" class="img-fluid figure-img" alt="Two circles labeled A and B overlap slightly, although the specified intersection is zero." width="384"></p>
<figcaption>venneuler plot with unwanted overlap.</figcaption>
</figure>
</div>
</div>
</div>
</section>
<section id="enter-eulerr" class="level2">
<h2 class="anchored" data-anchor-id="enter-eulerr">Enter eulerr</h2>
<p>eulerr is based on the improvements to <strong>venneuler</strong> that Ben Fredrickson introcued with <strong>venn.js</strong> but has been coded from scratch, uses different optimizers, and returns the residuals and stress statistic that venneuler features.</p>
<section id="input" class="level3">
<h3 class="anchored" data-anchor-id="input">Input</h3>
<p>Currently, it is possible to provide input to <code>eulerr</code> as either</p>
<ul>
<li>a named numeric vector or</li>
<li>a matrix of logicals with columns representing sets and rows the set relationships for each observation.</li>
</ul>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(eulerr)</span>
<span id="cb2-2"></span>
<span id="cb2-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Input in the form of a named numeric vector</span></span>
<span id="cb2-4">fit1 <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">euler</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"A"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">25</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"B"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"C"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>,</span>
<span id="cb2-5">                <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"A&amp;B"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"A&amp;C"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"B&amp;C"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>,</span>
<span id="cb2-6">                <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"A&amp;B&amp;C"</span> <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">=</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>))</span>
<span id="cb2-7"></span>
<span id="cb2-8"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Input as a matrix of logicals</span></span>
<span id="cb2-9"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">set.seed</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>)</span>
<span id="cb2-10">mat <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span></span>
<span id="cb2-11">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">cbind</span>(</span>
<span id="cb2-12">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">A =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sample</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>, <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>, <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">size =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">50</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">replace =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>),</span>
<span id="cb2-13">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">B =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sample</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>, <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">size =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">50</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">replace =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>),</span>
<span id="cb2-14">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">C =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">sample</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>, <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>, <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>, <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">FALSE</span>), <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">size =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">50</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">replace =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>)</span>
<span id="cb2-15">  )</span>
<span id="cb2-16">fit2 <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">euler</span>(mat)</span></code></pre></div></div>
</div>
</section>
<section id="fit" class="level3">
<h3 class="anchored" data-anchor-id="fit">Fit</h3>
<p>We inspect our results by printing the eulerr object</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1">fit2</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>      original fitted residuals regionError
A           13     13         0       0.008
B            4      4         0       0.002
C            0      0         0       0.000
A&amp;B         17     17         0       0.010
A&amp;C          5      5         0       0.003
B&amp;C          1      0         1       0.024
A&amp;B&amp;C        2      2         0       0.001

diagError: 0.024 
stress:    0.002 </code></pre>
</div>
</div>
<p>or directly access and plot the residuals.</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb5" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb5-1"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Cleveland dot plot of the residuals</span></span>
<span id="cb5-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">dotchart</span>(<span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">resid</span>(fit2))</span>
<span id="cb5-3"></span>
<span id="cb5-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">abline</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">v =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">lty =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>)</span></code></pre></div></div>
<div class="cell-output-display">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2016-10-19-introducing-eulerr/index_files/figure-html/residual_plot-1.png" class="img-fluid figure-img" alt="Dot plot of residuals for seven set combinations. The B and C intersection has the largest positive residual; the other residuals are near zero." width="384"></p>
<figcaption>Residuals for the eulerr fit.</figcaption>
</figure>
</div>
</div>
</div>
<p>This shows us that the <code>A&amp;B&amp;C</code> intersection is somewhat overrepresented in <code>fit2</code>. Given that these residuals are on the scale of the original values, however, the residuals are arguably of little concern.</p>
<p>For an overall measure of the fit of the solution, we use the same stress statistic that Leland Wilkinson presented in his academic paper on venneuler <span class="citation" data-cites="wilkinson2012">(Wilkinson 2012)</span>, which is given by the sums of squared residuals divided by the total sums of squares:</p>
<p><img src="https://latex.codecogs.com/png.latex?%5Cfrac%7B%5Csum_%7Bi=1%7D%5En%20(f_i%20-%20y_i)%5E2%7D%7B%5Csum_%7Bi=1%7D%5En%20(y_i%20-%20%5Cbar%7By%7D)%5E2%7D."></p>
<p>We fetch it from the <code>stress</code> attribute of the <code>eulerr</code> object.</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb6" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb6-1">fit2<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>stress</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>[1] 0.00198</code></pre>
</div>
</div>
<p>We can now be confident that eulerr provides a reasonable representation of our input. Were it otherwise, we would do best to stop here and look for another way to visualize our data. (I suggest the excellent <a href="https://cran.r-project.org/package=UpSetR">UpSetR</a> package.)</p>
</section>
<section id="plotting" class="level3">
<h3 class="anchored" data-anchor-id="plotting">Plotting</h3>
<p>No we get to the fun part: plotting our diagram. This is easy, as well as highly customizable, with eulerr.</p>
<div class="cell" data-layout-align="center">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb8" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb8-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(fit2)</span>
<span id="cb8-2"></span>
<span id="cb8-3"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Change fill colors, border type (remove) and fontface.</span></span>
<span id="cb8-4"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(</span>
<span id="cb8-5">  fit2,</span>
<span id="cb8-6">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fills =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"dodgerblue4"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"plum2"</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"seashell2"</span>),</span>
<span id="cb8-7">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">edges =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">list</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">lty =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span><span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">:</span><span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">3</span>),</span>
<span id="cb8-8">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">labels =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">list</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">font =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">2</span>)</span>
<span id="cb8-9">)</span></code></pre></div></div>
<div class="cell-output-display">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2016-10-19-introducing-eulerr/index_files/figure-html/eulerr_plot-1.png" class="img-fluid figure-img" alt="Euler diagram of three overlapping circles labeled A, B, and C, with pale fills and solid outlines." width="240"></p>
<figcaption>eulerr plots can be modified in many ways.</figcaption>
</figure>
</div>
</div>
<div class="cell-output-display">
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://jolars.co/blog/2016-10-19-introducing-eulerr/index_files/figure-html/eulerr_plot-2.png" class="img-fluid figure-img" alt="The same three-set Euler diagram with dark blue, pink, and cream fills, different border styles, and bold labels." width="240"></p>
<figcaption>eulerr plots can be modified in many ways.</figcaption>
</figure>
</div>
</div>
</div>
<p>eulerr’s default color palette is taken from <a href="https://cran.r-project.org/package=qualpalr">qualpalr</a> – another package that I have developed – which uses color difference algorithms to generate distinct qualitative color palettes.</p>
</section>
</section>
<section id="details" class="level2">
<h2 class="anchored" data-anchor-id="details">Details</h2>
<p>Details of the implementation will be left for a future vignette but almost completely resemble the approach documented <a href="http://www.benfrederickson.com/better-venn-diagrams/">here</a>.</p>
</section>
<section id="thanks" class="level2">
<h2 class="anchored" data-anchor-id="thanks">Thanks</h2>
<p>eulerr would not be possible without Ben Fredrickson’s work on <a href="http://www.benfrederickson.com">venn.js</a> or Leland Wilkinson’s <a href="https://cran.r-project.org/package=venneuler">venneuler</a>.</p>
</section>
<section id="references" class="level2">
<h2 class="anchored" data-anchor-id="references">References</h2>




</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-wilkinson2012" class="csl-entry">
Wilkinson, L. 2012. <span>“Exact and Approximate Area-Proportional Circular <span>Venn</span> and <span>Euler</span> Diagrams.”</span> <em><span>IEEE</span> Transactions on Visualization and Computer Graphics</em> 18 (2): 321–31. <a href="https://doi.org/10.1109/TVCG.2011.56">https://doi.org/10.1109/TVCG.2011.56</a>.
</div>
</div></section></div> ]]></description>
  <category>R</category>
  <category>Eulerr</category>
  <category>Euler diagrams</category>
  <category>Data visualization</category>
  <guid>https://jolars.co/blog/2016-10-19-introducing-eulerr/</guid>
  <pubDate>Wed, 19 Oct 2016 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2016-10-19-introducing-eulerr/eulerr.svg" medium="image" type="image/svg+xml"/>
</item>
<item>
  <title>Introducing qualpalr</title>
  <dc:creator>Johan Larsson</dc:creator>
  <link>https://jolars.co/blog/2016-10-15-introducing-qualpalr/</link>
  <description><![CDATA[ 





<section id="introduction" class="level2">
<h2 class="anchored" data-anchor-id="introduction">Introduction</h2>
<p>With the advent of <a href="http://colorbrewer2.org/">colorbrewer</a> there now exists good options to generate color palettes for sequential, diverging, and qualitative data. In R, these palettes can be accessed via the popular <a href="https://cran.r-project.org/package=RColorBrewer">RColorBrewer</a> package. Those palettes, however, are limited to a fixed number of colors. This isn’t much of a problem for sequential of diverging data since we can interpolate colors to any range we desire:</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb1-1">pal <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> RColorBrewer<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">::</span><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">brewer.pal</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">4</span>, <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"PuBuGn"</span>)</span>
<span id="cb1-2">color_ramp <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">colorRampPalette</span>(pal, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">space =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"Lab"</span>) </span></code></pre></div></div>
</div>
<p>There is not, however, an analogue for qualitative color palettes that will get you beyond the limits of 8–12 colors of colorbrewer’s qualitative color palettes. There is also no customization in colorbrewer. Other R packages, such as <a href="https://cran.r-project.org/package=colorspace">colorspace</a> offer this, but they are primarily adapted to sequential and diverging data – not qualitative data.</p>
<p>This is where qualpalr comes in. qualpalr provides the user with a convenient way of generating distinct qualitative color palettes, primarily for use in R graphics. Given <code>n</code> (the number of colors to generate), along with a subset in the <a href="https://en.wikipedia.org/wiki/HSL_and_HSV">hsl color space</a> (a cylindrical representation of the RGB color space) <code>qualpalr</code> attempts to find the <code>n</code> colors in the provided color subspace that <em>maximize the smallest pairwise color difference</em>. This is done by projecting the color subset from the HSL color space to the DIN99d space. DIN99d is (approximately) perceptually uniform, that is, the euclidean distance between two colors in the space is proportional to their perceived difference.</p>
</section>
<section id="examples" class="level2">
<h2 class="anchored" data-anchor-id="examples">Examples</h2>
<p><code>qualpalr</code> relies on one basic function, <code>qualpal()</code>, which takes as its input <code>n</code> (the number of colors to generate) and <code>colorspace</code>, which can be either</p>
<ul>
<li>a list of numeric vectors <code>h</code> (hue from -360 to 360), <code>s</code> (saturation from 0 to 1), and <code>l</code> (lightness from 0 to 1), all of length 2, specifying a min and max, or</li>
<li>a character vector specifying one of the predefined color subspaces, which at the time of writing are <em>pretty</em>, <em>pretty_dark</em>, <em>rainbow</em>, and <em>pastels</em>.</li>
</ul>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb2-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(qualpalr)</span>
<span id="cb2-2">pal <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">qualpal</span>(</span>
<span id="cb2-3">  <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">n =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>,</span>
<span id="cb2-4">  <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">list</span>(</span>
<span id="cb2-5">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">h =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">360</span>),</span>
<span id="cb2-6">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">s =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.4</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.6</span>),</span>
<span id="cb2-7">    <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">l =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.5</span>, <span class="fl" style="color: #AD0000;
background-color: null;
font-style: inherit;">0.85</span>)</span>
<span id="cb2-8">  )</span>
<span id="cb2-9">)</span>
<span id="cb2-10"></span>
<span id="cb2-11"><span class="co" style="color: #5E5E5E;
background-color: null;
font-style: inherit;"># Adapt the color space to deuteranopia</span></span>
<span id="cb2-12">pal <span class="ot" style="color: #003B4F;
background-color: null;
font-style: inherit;">&lt;-</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">qualpal</span>(<span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">n =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">5</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">colorspace =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"pretty"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">cvd =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"deutan"</span>)</span></code></pre></div></div>
</div>
<p>The resulting object, <code>pal</code>, is a list with several color tables and a distance matrix based on the din99d color difference formula.</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb3-1">pal</span></code></pre></div></div>
<div class="cell-output cell-output-stdout">
<pre><code>---------------------------------------- 
Colors in the HSL color space 

        Hue Saturation Lightness
#73CA6F 117       0.46      0.61
#D37DAD 327       0.50      0.66
#C6DBE8 203       0.42      0.84
#6C7DCC 229       0.48      0.61
#D0A373  31       0.50      0.63

 ---------------------------------------- 
DIN99d color difference distance matrix 

        #73CA6F #D37DAD #C6DBE8 #6C7DCC
#D37DAD      28                        
#C6DBE8      19      21                
#6C7DCC      27      19      19        
#D0A373      19      18      20      25</code></pre>
</div>
</div>
<p>Methods for <code>pairs</code> and <code>plot</code> have been written for <code>qualpal</code> objects to help visualize the results.</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb5" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb5-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">plot</span>(pal)</span></code></pre></div></div>
<div class="cell-output-display">
<div id="fig-multidim" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-multidim-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2016-10-15-introducing-qualpalr/index_files/figure-html/fig-multidim-1.png" class="img-fluid figure-img" alt="Five palette colors shown as separated points in a multidimensional scaling plot of DIN99d color differences." width="480">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-multidim-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;1: Multidimensional scaling plot
</figcaption>
</figure>
</div>
</div>
</div>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb6" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb6-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">pairs</span>(pal, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">colorspace =</span> <span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"DIN99d"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">asp =</span> <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">1</span>)</span></code></pre></div></div>
<div class="cell-output-display">
<div id="fig-pairs" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-pairs-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2016-10-15-introducing-qualpalr/index_files/figure-html/fig-pairs-1.png" class="img-fluid figure-img" alt="Scatterplot matrix showing the five palette colors along the lightness and two chromatic coordinates of DIN99d space." width="480">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-pairs-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2: Pairs plot in the din99d color space
</figcaption>
</figure>
</div>
</div>
</div>
<p>The colors are normally used in R by fetching the <code>hex</code> attribute of the palette. And so it is straightforward to use the output to, say, color the provinces of France (Figure&nbsp;3).</p>
<div class="cell">
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb7" style="background: #f1f3f5;"><pre class="sourceCode r code-with-copy"><code class="sourceCode r"><span id="cb7-1"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">library</span>(maps)</span>
<span id="cb7-2"><span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">map</span>(<span class="st" style="color: #20794D;
background-color: null;
font-style: inherit;">"france"</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">fill =</span> <span class="cn" style="color: #8f5902;
background-color: null;
font-style: inherit;">TRUE</span>, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">col =</span> pal<span class="sc" style="color: #5E5E5E;
background-color: null;
font-style: inherit;">$</span>hex, <span class="at" style="color: #657422;
background-color: null;
font-style: inherit;">mar =</span> <span class="fu" style="color: #4758AB;
background-color: null;
font-style: inherit;">c</span>(<span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>, <span class="dv" style="color: #AD0000;
background-color: null;
font-style: inherit;">0</span>))</span></code></pre></div></div>
<div class="cell-output-display">
<div id="fig-france" class="quarto-float quarto-figure quarto-figure-center anchored">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-france-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<img src="https://jolars.co/blog/2016-10-15-introducing-qualpalr/index_files/figure-html/fig-france-1.png" class="img-fluid figure-img" alt="Map of France with regions filled in the five-color qualpalr palette: blue, pink, tan, green, and pale blue." width="480">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-france-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;3: A map of France colored via qualpalr
</figcaption>
</figure>
</div>
</div>
</div>
</section>
<section id="details" class="level2">
<h2 class="anchored" data-anchor-id="details">Details</h2>
<p><code>qualpal</code> begins by generating a point cloud out of the HSL color subspace provided by the user, using a quasi-random torus sequence from <a href="https://cran.r-project.org/package=randtoolbox">randtoolbox</a>. Here is the color subset in HSL with settings <code>h = c(-200, 120), s = c(0.3, 0.8), l = c(0.4, 0.9)</code>.</p>
<div class="cell">
<div id="fig-hsl-space" class="cell-output-display quarto-float quarto-figure quarto-figure-center anchored no-overflow-x">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-hsl-space-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div id="rgl90957" style="width:100%;height:650px;" class="rglWebGL html-widget" aria-labelledby="rgl90957-aria"></div>
<script type="application/json" data-for="rgl90957">{"x":{"material":{"color":"#000000","alpha":1,"lit":true,"ambient":"#000000","specular":"#FFFFFF","emission":"#000000","shininess":50,"smooth":true,"front":"filled","back":"filled","size":3,"lwd":1,"fog":true,"point_antialias":false,"line_antialias":false,"texture":null,"textype":"rgb","texmode":"modulate","texmipmap":false,"texminfilter":"linear","texmagfilter":"linear","texenvmap":false,"depth_mask":true,"depth_test":"less","isTransparent":false,"polygon_offset":[0,0],"margin":"","floating":false,"tag":"","blend":["src_alpha","one_minus_src_alpha"]},"rootSubscene":1,"objects":{"7":{"id":7,"type":"points","material":{"lit":false},"vertices":"0","colors":"1","centers":"2","ignoreExtent":false,"flags":34816},"9":{"id":9,"type":"text","material":{"lit":false,"margin":0,"edge":[0,1,1]},"vertices":"3","colors":"4","texts":[["HSL"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"5","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"10":{"id":10,"type":"text","material":{"lit":false,"margin":0,"floating":true,"edge":[0,1,1]},"vertices":"6","colors":"7","texts":[["x"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"8","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"11":{"id":11,"type":"text","material":{"lit":false,"margin":1,"floating":true,"edge":[1,1,1]},"vertices":"9","colors":"10","texts":[["y"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"11","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"12":{"id":12,"type":"text","material":{"lit":false,"margin":2,"floating":true,"edge":[1,1,1]},"vertices":"12","colors":"13","texts":[["L"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"14","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"5":{"id":5,"type":"light","vertices":[[0,0,1]],"colors":[[1,1,1,1],[1,1,1,1],[1,1,1,1]],"viewpoint":true,"finite":false},"4":{"id":4,"type":"background","material":{},"colors":"15","centers":"16","sphere":false,"fogtype":"none","fogscale":1,"flags":32768},"6":{"id":6,"type":"background","material":{"lit":false,"back":"lines"},"colors":"17","centers":"18","sphere":false,"fogtype":"none","fogscale":1,"flags":32768},"8":{"id":8,"type":"bboxdeco","material":{"front":"lines","back":"lines"},"vertices":"19","colors":"20","axes":{"mode":["pretty","pretty","pretty"],"step":[0.5,0.5,0.1000000014901161],"nticks":[5,5,5],"marklen":[15,15,15],"expand":[1.029999971389771,1.029999971389771,1.029999971389771]},"draw_front":true,"flags":32769},"1":{"id":1,"type":"subscene","par3d":{"antialias":8,"FOV":30,"ignoreExtent":false,"listeners":1,"mouseMode":{"none":"none","left":"trackball","right":"zoom","middle":"fov","wheel":"pull"},"observer":[0,0,5.620292663574219],"modelMatrix":[[0.8383641839027405,0,0,0.002952601062133908],[0,0.2854519784450531,2.49704909324646,-1.623473525047302],[0,-0.7842727899551392,0.9088515639305115,-6.209969997406006],[0,0,0,1]],"projMatrix":[[3.732050895690918,0,0,0],[0,3.732050895690918,0,0],[0,0,-3.863703489303589,-20.26050758361816],[0,0,-1,0]],"skipRedraw":false,"userMatrix":[[1,0,0,0],[0,0.3420201433256682,0.9396926207859085,0],[0,-0.9396926207859085,0.3420201433256682,0],[0,0,0,1]],"userProjection":[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],"scale":[0.8383641839027405,0.8346056938171387,2.657304048538208],"viewport":{"x":0,"y":0,"width":1,"height":1},"zoom":1,"bbox":[-0.7943815588951111,0.7873378396034241,-0.7930490374565125,0.7957932949066162,0.4004882872104645,0.8995116949081421],"windowRect":[0,0,256,256],"family":"sans","font":1,"cex":1,"useFreeType":true,"fontname":"NULL","maxClipPlanes":2147483647,"glVersion":"NA","activeSubscene":0},"embeddings":{"viewport":"replace","projection":"replace","model":"replace","mouse":"replace"},"objects":[6,8,7,9,10,11,12,5],"subscenes":[],"flags":36113}},"crosstalk":{"key":[],"group":[],"id":[],"options":[]},"width":480,"height":480,"buffer":{"accessors":[{"bufferView":0,"componentType":5126,"count":1000,"type":"VEC3"},{"bufferView":1,"componentType":5121,"count":1000,"type":"VEC4","normalized":true},{"bufferView":2,"componentType":5126,"count":1000,"type":"VEC3"},{"bufferView":3,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":4,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":5,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":6,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":7,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":8,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":9,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":10,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":11,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":12,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":13,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":14,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":15,"componentType":5126,"count":1,"type":"VEC4"},{"bufferView":16,"componentType":5121,"count":1,"type":"VEC3"},{"bufferView":17,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":18,"componentType":5121,"count":1,"type":"VEC3"},{"bufferView":19,"componentType":5126,"count":10,"type":"VEC3"},{"bufferView":20,"componentType":5121,"count":1,"type":"VEC4"}],"bufferViews":[{"buffer":0,"byteLength":12000,"byteOffset":0},{"buffer":0,"byteLength":4000,"byteOffset":12000},{"buffer":0,"byteLength":12000,"byteOffset":16000},{"buffer":0,"byteLength":12,"byteOffset":28000},{"buffer":0,"byteLength":4,"byteOffset":28012},{"buffer":0,"byteLength":12,"byteOffset":28016},{"buffer":0,"byteLength":12,"byteOffset":28028},{"buffer":0,"byteLength":4,"byteOffset":28040},{"buffer":0,"byteLength":12,"byteOffset":28044},{"buffer":0,"byteLength":12,"byteOffset":28056},{"buffer":0,"byteLength":4,"byteOffset":28068},{"buffer":0,"byteLength":12,"byteOffset":28072},{"buffer":0,"byteLength":12,"byteOffset":28084},{"buffer":0,"byteLength":4,"byteOffset":28096},{"buffer":0,"byteLength":12,"byteOffset":28100},{"buffer":0,"byteLength":16,"byteOffset":28112},{"buffer":0,"byteLength":3,"byteOffset":28128},{"buffer":0,"byteLength":4,"byteOffset":28131},{"buffer":0,"byteLength":3,"byteOffset":28135},{"buffer":0,"byteLength":120,"byteOffset":28140},{"buffer":0,"byteLength":4,"byteOffset":28260}],"buffers":[{"byteLength":28264,"bytes":"qSoAP9MW175mZiY/1rfXPk0CtT5mZkY/uKa7vsGCIr9mZgY/MpTXPXrTGL9mZjY/q4IIPhmM\nQT/NzOw+Exz0PgAAAABmZhY/NEInvzSCc75mZlY/skrjvnC4vr5mZg4/gZY0Pw51gz5mZk4/\ntCSXvU9L1j5mZi4/zcysPjGmFb/NzNw+mK+3vYI3Ar9mZl4/l+62PntsHj9mZh4/ALoXP1Tl\nXL7NzPw+SLxIv41s3aRmZj4//u8hv3pu5L1mZlI/EbRHPzXaDL5mZhI/h/g6Pq1sAD/NzOQ+\nsmpMJDlROb9mZjI/wR2VPra1sb5mZiI/1ABwvtLZJD9mZmI/yIADP77Ylz5mZkI/ZOL5vnnm\nFL9mZgI/OKjcvvvKfr5mZio/8b8xP5W8+j3NzNQ+P7UuJGJiHj9mZgo/4OKHPhOsOr9mZko/\n3u9FvvT0B7/NzPQ+rC30PhCAET9mZjo/nTasPtbaRr5mZlo/2IInvzdL7D1mZho/9jkOv1cX\nRz1mZjQ/ZRwrP6aUn77NzOg+XelUPt0ImD5mZhQ/IKouvtn2Ir9mZlQ/lvhSPuQ24r5mZgQ/\ncPZ5vWGRMj9mZkQ/CXUXP9BUIj5mZmQ/vtwhv6Os4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/\nZoYOP+XyNb07sAq/ZoY+PxL3mz7LpCk/zQz9Pk+5ID+0gii+ZoYeP9MbS7+WF5e9ZoZePxdy\nHb/Nbyy+ZoYyP8lHST9NCIS9zQzlPjzRCD7BfgI/ZoYSP02NiD0QkDe/ZoZSP+MEoT6rRZ++\nZoYCPyIblb4KoR0/ZoZCP8eI9T6s7a0+ZoZiP0g63L5GGR+/ZoYiPwB9zL5O2pC+ZoZKP74c\nLT9TmD0+ZoYKP1i6aL20bBw/zQzVPiQjqT4rzjK/ZoYqP8gpEb6TdAq/ZoYaP8ki1z6Xaxs/\nZoZaP6s+qz7lbx2+ZoY6P5hoKL+A8Fw9zQz1Pnv3Dr/FPsM9ZoZUP6MwJT+SWby+ZoYUPyJQ\ngD5Wn5o+zQzpPkOPZb7fZCC/ZoY0P6eNMT5t1e++ZoYkP/JVfLtquDQ/ZoZkP1sdHD+NP+M9\nZoZEP+KpK7+Guci+ZoYEP77rlL6pdLO+ZoYsPwAAwH8AAABAAAAAQAAAAAEAAMB/AAAAQAAA\nAEAAAMB/AACAQAAAgD8AAAABAADAfwAAgEAAAIA/AADAfwAAgEAAAIA/AAAAAQAAwH8AAIBA\nAACAPwAAwH8AAIBAAACAPwAAAAEAAMB/AACAQAAAgD+ZmJg+mZiYPpmYmD4AAIA/AAAAAQEB\nAQAAAAAAAAAAvwAAwH8AAMB/AAAAAAAAwH8AAMB/AAAAPwAAwH8AAMB/AADAfwAAAL8AAMB/\nAADAfwAAAAAAAMB/AADAfwAAAD8AAMB/AADAfwAAwH8AAAA/AADAfwAAwH+amRk/AADAfwAA\nwH8zMzM/AADAfwAAwH/NzEw/AAAAAQ=="}]},"context":{"shiny":false,"rmarkdown":null},"vertexShader":"#line 2 1\n// File 1 is the vertex shader\n#ifdef GL_ES\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n#endif\n\nattribute vec3 aPos;\nattribute vec4 aCol;\nuniform mat4 mvMatrix;\nuniform mat4 prMatrix;\nvarying vec4 vCol;\nvarying vec4 vPosition;\n\n#ifdef NEEDS_VNORMAL\nattribute vec3 aNorm;\nuniform mat4 normMatrix;\nvarying vec4 vNormal;\n#endif\n\n#if defined(HAS_TEXTURE) || defined (IS_TEXT)\nattribute vec2 aTexcoord;\nvarying vec2 vTexcoord;\n#endif\n\n#ifdef FIXED_SIZE\nuniform vec3 textScale;\n#endif\n\n#ifdef FIXED_QUADS\nattribute vec3 aOfs;\n#endif\n\n#ifdef IS_TWOSIDED\n#ifdef HAS_NORMALS\nvarying float normz;\nuniform mat4 invPrMatrix;\n#else\nattribute vec3 aPos1;\nattribute vec3 aPos2;\nvarying float normz;\n#endif\n#endif // IS_TWOSIDED\n\n#ifdef FAT_LINES\nattribute vec3 aNext;\nattribute vec2 aPoint;\nvarying vec2 vPoint;\nvarying float vLength;\nuniform float uAspect;\nuniform float uLwd;\n#endif\n\n#ifdef USE_ENVMAP\nvarying vec3 vReflection;\n#endif\n\nvoid main(void) {\n  \n#ifndef IS_BRUSH\n#if defined(NCLIPPLANES) || !defined(FIXED_QUADS) || defined(HAS_FOG) || defined(USE_ENVMAP)\n  vPosition = mvMatrix * vec4(aPos, 1.);\n#endif\n  \n#ifndef FIXED_QUADS\n  gl_Position = prMatrix * vPosition;\n#endif\n#endif // !IS_BRUSH\n  \n#ifdef IS_POINTS\n  gl_PointSize = POINTSIZE;\n#endif\n  \n  vCol = aCol;\n  \n// USE_ENVMAP implies NEEDS_VNORMAL\n\n#ifdef NEEDS_VNORMAL\n  vNormal = normMatrix * vec4(-aNorm, dot(aNorm, aPos));\n#endif\n\n#ifdef USE_ENVMAP\n  vReflection = normalize(reflect(vPosition.xyz/vPosition.w, \n                        normalize(vNormal.xyz/vNormal.w)));\n#endif\n  \n#ifdef IS_TWOSIDED\n#ifdef HAS_NORMALS\n  /* normz should be calculated *after* projection */\n  normz = (invPrMatrix*vNormal).z;\n#else\n  vec4 pos1 = prMatrix*(mvMatrix*vec4(aPos1, 1.));\n  pos1 = pos1/pos1.w - gl_Position/gl_Position.w;\n  vec4 pos2 = prMatrix*(mvMatrix*vec4(aPos2, 1.));\n  pos2 = pos2/pos2.w - gl_Position/gl_Position.w;\n  normz = pos1.x*pos2.y - pos1.y*pos2.x;\n#endif\n#endif // IS_TWOSIDED\n  \n#ifdef NEEDS_VNORMAL\n  vNormal = vec4(normalize(vNormal.xyz), 1);\n#endif\n  \n#if defined(HAS_TEXTURE) || defined(IS_TEXT)\n  vTexcoord = aTexcoord;\n#endif\n  \n#if defined(FIXED_SIZE) && !defined(ROTATING)\n  vec4 pos = prMatrix * mvMatrix * vec4(aPos, 1.);\n  pos = pos/pos.w;\n  gl_Position = pos + vec4(aOfs*textScale, 0.);\n#endif\n  \n#if defined(IS_SPRITES) && !defined(FIXED_SIZE)\n  vec4 pos = mvMatrix * vec4(aPos, 1.);\n  pos = pos/pos.w + vec4(aOfs,  0.);\n  gl_Position = prMatrix*pos;\n#endif\n  \n#ifdef FAT_LINES\n  /* This code was inspired by Matt Deslauriers' code in \n   https://mattdesl.svbtle.com/drawing-lines-is-hard */\n  vec2 aspectVec = vec2(uAspect, 1.0);\n  mat4 projViewModel = prMatrix * mvMatrix;\n  vec4 currentProjected = projViewModel * vec4(aPos, 1.0);\n  currentProjected = currentProjected/currentProjected.w;\n  vec4 nextProjected = projViewModel * vec4(aNext, 1.0);\n  vec2 currentScreen = currentProjected.xy * aspectVec;\n  vec2 nextScreen = (nextProjected.xy / nextProjected.w) * aspectVec;\n  float len = uLwd;\n  vec2 dir = vec2(1.0, 0.0);\n  vPoint = aPoint;\n  vLength = length(nextScreen - currentScreen)/2.0;\n  vLength = vLength/(vLength + len);\n  if (vLength > 0.0) {\n    dir = normalize(nextScreen - currentScreen);\n  }\n  vec2 normal = vec2(-dir.y, dir.x);\n  dir.x /= uAspect;\n  normal.x /= uAspect;\n  vec4 offset = vec4(len*(normal*aPoint.x*aPoint.y - dir), 0.0, 0.0);\n  gl_Position = currentProjected + offset;\n#endif\n  \n#ifdef IS_BRUSH\n  gl_Position = vec4(aPos, 1.);\n#endif\n}","fragmentShader":"#line 2 2\n// File 2 is the fragment shader\n#ifdef GL_ES\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n#endif\nvarying vec4 vCol; // carries alpha\nvarying vec4 vPosition;\n#if defined(HAS_TEXTURE) || defined (IS_TEXT)\nvarying vec2 vTexcoord;\nuniform sampler2D uSampler;\n#endif\n\n#ifdef HAS_FOG\nuniform int uFogMode;\nuniform vec3 uFogColor;\nuniform vec4 uFogParms;\n#endif\n\n#if defined(IS_LIT) && !defined(FIXED_QUADS)\nvarying vec4 vNormal;\n#endif\n\n#if NCLIPPLANES > 0\nuniform vec4 vClipplane[NCLIPPLANES];\n#endif\n\n#if NLIGHTS > 0\nuniform mat4 mvMatrix;\n#endif\n\n#ifdef IS_LIT\nuniform vec3 emission;\nuniform float shininess;\n#if NLIGHTS > 0\nuniform vec3 ambient[NLIGHTS];\nuniform vec3 specular[NLIGHTS]; // light*material\nuniform vec3 diffuse[NLIGHTS];\nuniform vec3 lightDir[NLIGHTS];\nuniform bool viewpoint[NLIGHTS];\nuniform bool finite[NLIGHTS];\n#endif\n#endif // IS_LIT\n\n#ifdef IS_TWOSIDED\nuniform bool front;\nvarying float normz;\n#endif\n\n#ifdef FAT_LINES\nvarying vec2 vPoint;\nvarying float vLength;\n#endif\n\n#ifdef USE_ENVMAP\nvarying vec3 vReflection;\n#endif\n\nvoid main(void) {\n  vec4 fragColor;\n#ifdef FAT_LINES\n  vec2 point = vPoint;\n  bool neg = point.y < 0.0;\n  point.y = neg ? (point.y + vLength)/(1.0 - vLength) :\n                 -(point.y - vLength)/(1.0 - vLength);\n#if defined(IS_TRANSPARENT) && defined(IS_LINESTRIP)\n  if (neg && length(point) <= 1.0) discard;\n#endif\n  point.y = min(point.y, 0.0);\n  if (length(point) > 1.0) discard;\n#endif // FAT_LINES\n  \n#ifdef ROUND_POINTS\n  vec2 coord = gl_PointCoord - vec2(0.5);\n  if (length(coord) > 0.5) discard;\n#endif\n  \n#if NCLIPPLANES > 0\n  for (int i = 0; i < NCLIPPLANES; i++)\n    if (dot(vPosition, vClipplane[i]) < 0.0) discard;\n#endif\n    \n#ifdef FIXED_QUADS\n    vec3 n = vec3(0., 0., 1.);\n#elif defined(IS_LIT)\n    vec3 n = normalize(vNormal.xyz);\n#endif\n    \n#ifdef IS_TWOSIDED\n    if ((normz <= 0.) != front) discard;\n#endif\n\n#ifdef IS_LIT\n    vec3 eye = normalize(-vPosition.xyz/vPosition.w);\n    vec3 lightdir;\n    vec4 colDiff;\n    vec3 halfVec;\n    vec4 lighteffect = vec4(emission, 0.);\n    vec3 col;\n    float nDotL;\n#ifdef FIXED_QUADS\n    n = -faceforward(n, n, eye);\n#endif\n    \n#if NLIGHTS > 0\n    // Simulate two-sided lighting\n    if (n.z < 0.0)\n      n = -n;\n    for (int i=0;i<NLIGHTS;i++) {\n      colDiff = vec4(vCol.rgb * diffuse[i], vCol.a);\n      lightdir = lightDir[i];\n      if (!viewpoint[i]) {\n        if (finite[i]) {\n          lightdir = (mvMatrix * vec4(lightdir, 1.)).xyz;\n        } else {\n          lightdir = (mvMatrix * vec4(lightdir, 0.)).xyz;\n        }\n      }\n      if (!finite[i]) {\n        halfVec = normalize(lightdir + eye);\n      } else {\n        lightdir = normalize(lightdir - vPosition.xyz/vPosition.w);\n        halfVec = normalize(lightdir + eye);\n      }\n      col = ambient[i];\n      nDotL = dot(n, lightdir);\n      col = col + max(nDotL, 0.) * colDiff.rgb;\n      col = col + pow(max(dot(halfVec, n), 0.), shininess) * specular[i];\n      lighteffect = lighteffect + vec4(col, colDiff.a);\n    }\n#endif\n    \n#else // not IS_LIT\n    vec4 colDiff = vCol;\n    vec4 lighteffect = colDiff;\n#endif\n    \n#ifdef IS_TEXT\n    vec4 textureColor = lighteffect*texture2D(uSampler, vTexcoord);\n#endif\n    \n#ifdef HAS_TEXTURE\n\n// These calculations use the definitions from \n// https://docs.gl/gl3/glTexEnv\n\n#ifdef USE_ENVMAP\n    float m = 2.0 * sqrt(dot(vReflection, vReflection) + 2.0*vReflection.z + 1.0);\n    vec4 textureColor = texture2D(uSampler, vReflection.xy / m + vec2(0.5, 0.5));\n#else\n    vec4 textureColor = texture2D(uSampler, vTexcoord);\n#endif\n\n#ifdef TEXTURE_rgb\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(textureColor.rgb, lighteffect.a);\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = lighteffect*vec4(textureColor.rgb, 1.);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - textureColor.rgb) * lighteffect.rgb, lighteffect.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(lighteffect.rgb + textureColor.rgb, lighteffect.a);\n#endif\n\n#endif //TEXTURE_rgb\n        \n#ifdef TEXTURE_rgba\n\n#ifdef TEXMODE_replace\n// already done\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = lighteffect*textureColor;\n#endif\n\n#ifdef TEXMODE_decal\n    textureColor = vec4((1. - textureColor.a)*lighteffect.rgb) +\n                     textureColor.a*textureColor.rgb, \n                     lighteffect.a);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - textureColor.rgb) * lighteffect.rgb,\n                    lighteffect.a*textureColor.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(lighteffect.rgb + textureColor.rgb,\n                    lighteffect.a*textureColor.a);\n#endif\n    \n#endif //TEXTURE_rgba\n    \n#ifdef TEXTURE_alpha\n    float luminance = dot(vec3(1.,1.,1.),textureColor.rgb)/3.;\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(lighteffect.rgb, luminance);\n#endif \n\n#if defined(TEXMODE_modulate) || defined(TEXMODE_blend) || defined(TEXMODE_add)\n    textureColor = vec4(lighteffect.rgb, lighteffect.a*luminance);\n#endif\n \n#endif // TEXTURE_alpha\n    \n// The TEXTURE_luminance values are not from that reference    \n#ifdef TEXTURE_luminance\n    float luminance = dot(vec3(1.,1.,1.),textureColor.rgb)/3.;\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(luminance, luminance, luminance, lighteffect.a);\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = vec4(luminance*lighteffect.rgb, lighteffect.a);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - luminance)*lighteffect.rgb,\n                        lighteffect.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(luminance + lighteffect.rgb, lighteffect.a);\n#endif\n\n#endif // TEXTURE_luminance\n \n    \n#ifdef TEXTURE_luminance_alpha\n    float luminance = dot(vec3(1.,1.,1.),textureColor.rgb)/3.;\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(luminance, luminance, luminance, textureColor.a);\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = vec4(luminance*lighteffect.rgb, \n                        textureColor.a*lighteffect.a);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - luminance)*lighteffect.rgb,\n                        textureColor.a*lighteffect.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(luminance + lighteffect.rgb, \n                        textureColor.a*lighteffect.a);\n\n#endif\n\n#endif // TEXTURE_luminance_alpha\n    \n    fragColor = textureColor;\n\n#elif defined(IS_TEXT)\n    if (textureColor.a < 0.1)\n      discard;\n    else\n      fragColor = textureColor;\n#else\n    fragColor = lighteffect;\n#endif // HAS_TEXTURE\n    \n#ifdef HAS_FOG\n    // uFogParms elements: x = near, y = far, z = fogscale, w = (1-sin(FOV/2))/(1+sin(FOV/2))\n    // In Exp and Exp2: use density = density/far\n    // fogF will be the proportion of fog\n    // Initialize it to the linear value\n    float fogF;\n    if (uFogMode > 0) {\n      fogF = (uFogParms.y - vPosition.z/vPosition.w)/(uFogParms.y - uFogParms.x);\n      if (uFogMode > 1)\n        fogF = mix(uFogParms.w, 1.0, fogF);\n      fogF = fogF*uFogParms.z;\n      if (uFogMode == 2)\n        fogF = 1.0 - exp(-fogF);\n      // Docs are wrong: use (density*c)^2, not density*c^2\n      // https://gitlab.freedesktop.org/mesa/mesa/-/blob/master/src/mesa/swrast/s_fog.c#L58\n      else if (uFogMode == 3)\n        fogF = 1.0 - exp(-fogF*fogF);\n      fogF = clamp(fogF, 0.0, 1.0);\n      gl_FragColor = vec4(mix(fragColor.rgb, uFogColor, fogF), fragColor.a);\n    } else gl_FragColor = fragColor;\n#else\n    gl_FragColor = fragColor;\n#endif // HAS_FOG\n    \n}","players":[],"webGLoptions":{"preserveDrawingBuffer":true}},"evals":[],"jsHooks":[]}</script>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-hsl-space-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;4: Points in the HSL space
</figcaption>
</figure>
</div>
</div>
<p>The function then proceeds by projecting these colors into the sRGB space (Figure&nbsp;5).</p>
<div class="cell">
<div id="fig-rgb-space" class="cell-output-display quarto-float quarto-figure quarto-figure-center anchored no-overflow-x">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-rgb-space-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div id="rgl66578" style="width:100%;height:650px;" class="rglWebGL html-widget" aria-labelledby="rgl66578-aria"></div>
<script type="application/json" data-for="rgl66578">{"x":{"material":{"color":"#000000","alpha":1,"lit":true,"ambient":"#000000","specular":"#FFFFFF","emission":"#000000","shininess":50,"smooth":true,"front":"filled","back":"filled","size":3,"lwd":1,"fog":true,"point_antialias":false,"line_antialias":false,"texture":null,"textype":"rgb","texmode":"modulate","texmipmap":false,"texminfilter":"linear","texmagfilter":"linear","texenvmap":false,"depth_mask":true,"depth_test":"less","isTransparent":false,"polygon_offset":[0,0],"margin":"","floating":false,"tag":"","blend":["src_alpha","one_minus_src_alpha"]},"rootSubscene":1,"objects":{"19":{"id":19,"type":"points","material":{"lit":false},"vertices":"0","colors":"1","centers":"2","ignoreExtent":false,"flags":34816},"21":{"id":21,"type":"text","material":{"lit":false,"margin":0,"edge":[0,1,1]},"vertices":"3","colors":"4","texts":[["RGB"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"5","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"22":{"id":22,"type":"text","material":{"lit":false,"margin":0,"floating":true,"edge":[0,1,1]},"vertices":"6","colors":"7","texts":[["R"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"8","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"23":{"id":23,"type":"text","material":{"lit":false,"margin":1,"floating":true,"edge":[1,1,1]},"vertices":"9","colors":"10","texts":[["G"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"11","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"24":{"id":24,"type":"text","material":{"lit":false,"margin":2,"floating":true,"edge":[1,1,1]},"vertices":"12","colors":"13","texts":[["B"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"14","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"5":{"id":5,"type":"light","vertices":[[0,0,1]],"colors":[[1,1,1,1],[1,1,1,1],[1,1,1,1]],"viewpoint":true,"finite":false},"6":{"id":6,"type":"background","material":{"lit":false,"back":"lines"},"colors":"15","centers":"16","sphere":false,"fogtype":"none","fogscale":1,"flags":32768},"20":{"id":20,"type":"bboxdeco","material":{"front":"lines","back":"lines"},"vertices":"17","colors":"18","axes":{"mode":["pretty","pretty","pretty"],"step":[0.2000000029802322,0.2000000029802322,0.2000000029802322],"nticks":[5,5,5],"marklen":[15,15,15],"expand":[1.029999971389771,1.029999971389771,1.029999971389771]},"draw_front":true,"flags":32769},"1":{"id":1,"type":"subscene","par3d":{"antialias":8,"FOV":30,"ignoreExtent":false,"listeners":1,"mouseMode":{"none":"none","left":"trackball","right":"zoom","middle":"fov","wheel":"pull"},"observer":[0,0,3.777960538864136],"modelMatrix":[[1.002808213233948,0,0,-0.5355870127677917],[0,0.3417933881282806,0.937694787979126,-0.6778346300125122],[0,-0.9390696287155151,0.3412930071353912,-3.461941003799438],[0,0,0,1]],"projMatrix":[[3.732050657272339,0,0,0],[0,3.732050657272339,0,0],[0,0,-3.863703012466431,-13.61910820007324],[0,0,-1,0]],"skipRedraw":false,"userMatrix":[[1,0,0,0],[0,0.3420201433256682,0.9396926207859085,0],[0,-0.9396926207859085,0.3420201433256682,0],[0,0,0,1]],"userProjection":[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],"scale":[1.002808213233948,0.9993370175361633,0.9978739619255066],"viewport":{"x":0,"y":0,"width":1,"height":1},"zoom":1,"bbox":[0.0896475538611412,0.9785268306732178,0.08316178619861603,0.9751285910606384,0.08336060494184494,0.976635217666626],"windowRect":[0,0,256,256],"family":"sans","font":1,"cex":1,"useFreeType":true,"fontname":"NULL","maxClipPlanes":2147483647,"glVersion":"NA","activeSubscene":0},"embeddings":{"viewport":"replace","projection":"replace","model":"replace","mouse":"replace"},"objects":[6,20,19,21,22,23,24,5],"subscenes":[],"flags":36113}},"crosstalk":{"key":[],"group":[],"id":[],"options":[]},"width":480,"height":480,"buffer":{"accessors":[{"bufferView":0,"componentType":5126,"count":1000,"type":"VEC3"},{"bufferView":1,"componentType":5121,"count":1000,"type":"VEC4","normalized":true},{"bufferView":2,"componentType":5126,"count":1000,"type":"VEC3"},{"bufferView":3,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":4,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":5,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":6,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":7,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":8,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":9,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":10,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":11,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":12,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":13,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":14,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":15,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":16,"componentType":5121,"count":1,"type":"VEC3"},{"bufferView":17,"componentType":5126,"count":12,"type":"VEC3"},{"bufferView":18,"componentType":5121,"count":1,"type":"VEC4"}],"bufferViews":[{"buffer":0,"byteLength":12000,"byteOffset":0},{"buffer":0,"byteLength":4000,"byteOffset":12000},{"buffer":0,"byteLength":12000,"byteOffset":16000},{"buffer":0,"byteLength":12,"byteOffset":28000},{"buffer":0,"byteLength":4,"byteOffset":28012},{"buffer":0,"byteLength":12,"byteOffset":28016},{"buffer":0,"byteLength":12,"byteOffset":28028},{"buffer":0,"byteLength":4,"byteOffset":28040},{"buffer":0,"byteLength":12,"byteOffset":28044},{"buffer":0,"byteLength":12,"byteOffset":28056},{"buffer":0,"byteLength":4,"byteOffset":28068},{"buffer":0,"byteLength":12,"byteOffset":28072},{"buffer":0,"byteLength":12,"byteOffset":28084},{"buffer":0,"byteLength":4,"byteOffset":28096},{"buffer":0,"byteLength":12,"byteOffset":28100},{"buffer":0,"byteLength":4,"byteOffset":28112},{"buffer":0,"byteLength":3,"byteOffset":28116},{"buffer":0,"byteLength":144,"byteOffset":28120},{"buffer":0,"byteLength":4,"byteOffset":28264}],"buffers":[{"byteLength":28268,"bytes":"WfVgP+iu1z5i6zk/exRmP8P1UD9SuCY/CBA1PggQNT7LiF8/k0VFP+LICT/rA2M/57IUP+lL\nUT8cB9w9ZL9IP9IayD7SGsg+5Xk5P5EKYD/nUnM/uyKZPnLp8D5vO1A/aaJzPxD9QT9kKik/\nCtciP3sUUT9SuAs/hes4Px+FDz6F6zg/eZ1YP54LTT8uwW8/kCRkP5AkZD96ULE+dB9OP2G1\nOj7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mnf8PgHaQz+aeXQ/yzJ5P1Mf\nAT8ztko/eu1jP2bfTD80a8E9Oi0ZPtXELj/yNkw/tquxPvxSWD/fxjE/7UVzP2gHOj/JCpY+\n5bIdP+IxHz/TZWw/+aYYP9nYcz+rl2U/8zNRP0rAtz4/1M0+qCxpPx9aMD/k40U/rrJkP0jj\nXD8wZ8Q+FKZgPtHlvT5r5Ss/h50kPlg/Yj+Z99A+AJFsPwV//T4PlMM+xUJTP7Qxdj/w3nE/\nGds+P2sZVD9i8yA/CP81P5GbJj7pZUs//MI+PwLlOz/LJ20/rTNlP6paZD9FZIk+hrETPwFB\nIj+/fBM/l5eNPsiQEz8TTQI/ur9mPxh2Qz8+q+0+LjdSP61SZD/E63c/CSFRP8ZjaT8gVSw/\nB6kfP/91Ej6khgM/TW9kP0KBBj9AyBI/i4tSPwAAwH8AAABAAAAAQAAAAAEAAMB/AAAAQAAA\nAEAAAMB/AACAQAAAgD8AAAABAADAfwAAgEAAAIA/AADAfwAAgEAAAIA/AAAAAQAAwH8AAIBA\nAACAPwAAwH8AAIBAAACAPwAAAAEAAMB/AACAQAAAgD8BAQEBAAAAAM3MTD4AAMB/AADAf83M\nzD4AAMB/AADAf5qZGT8AAMB/AADAf83MTD8AAMB/AADAfwAAwH/NzEw+AADAfwAAwH/NzMw+\nAADAfwAAwH+amRk/AADAfwAAwH/NzEw/AADAfwAAwH8AAMB/zcxMPgAAwH8AAMB/zczMPgAA\nwH8AAMB/mpkZPwAAwH8AAMB/zcxMPwAAAAE="}]},"context":{"shiny":false,"rmarkdown":null},"vertexShader":"#line 2 1\n// File 1 is the vertex shader\n#ifdef GL_ES\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n#endif\n\nattribute vec3 aPos;\nattribute vec4 aCol;\nuniform mat4 mvMatrix;\nuniform mat4 prMatrix;\nvarying vec4 vCol;\nvarying vec4 vPosition;\n\n#ifdef NEEDS_VNORMAL\nattribute vec3 aNorm;\nuniform mat4 normMatrix;\nvarying vec4 vNormal;\n#endif\n\n#if defined(HAS_TEXTURE) || defined (IS_TEXT)\nattribute vec2 aTexcoord;\nvarying vec2 vTexcoord;\n#endif\n\n#ifdef FIXED_SIZE\nuniform vec3 textScale;\n#endif\n\n#ifdef FIXED_QUADS\nattribute vec3 aOfs;\n#endif\n\n#ifdef IS_TWOSIDED\n#ifdef HAS_NORMALS\nvarying float normz;\nuniform mat4 invPrMatrix;\n#else\nattribute vec3 aPos1;\nattribute vec3 aPos2;\nvarying float normz;\n#endif\n#endif // IS_TWOSIDED\n\n#ifdef FAT_LINES\nattribute vec3 aNext;\nattribute vec2 aPoint;\nvarying vec2 vPoint;\nvarying float vLength;\nuniform float uAspect;\nuniform float uLwd;\n#endif\n\n#ifdef USE_ENVMAP\nvarying vec3 vReflection;\n#endif\n\nvoid main(void) {\n  \n#ifndef IS_BRUSH\n#if defined(NCLIPPLANES) || !defined(FIXED_QUADS) || defined(HAS_FOG) || defined(USE_ENVMAP)\n  vPosition = mvMatrix * vec4(aPos, 1.);\n#endif\n  \n#ifndef FIXED_QUADS\n  gl_Position = prMatrix * vPosition;\n#endif\n#endif // !IS_BRUSH\n  \n#ifdef IS_POINTS\n  gl_PointSize = POINTSIZE;\n#endif\n  \n  vCol = aCol;\n  \n// USE_ENVMAP implies NEEDS_VNORMAL\n\n#ifdef NEEDS_VNORMAL\n  vNormal = normMatrix * vec4(-aNorm, dot(aNorm, aPos));\n#endif\n\n#ifdef USE_ENVMAP\n  vReflection = normalize(reflect(vPosition.xyz/vPosition.w, \n                        normalize(vNormal.xyz/vNormal.w)));\n#endif\n  \n#ifdef IS_TWOSIDED\n#ifdef HAS_NORMALS\n  /* normz should be calculated *after* projection */\n  normz = (invPrMatrix*vNormal).z;\n#else\n  vec4 pos1 = prMatrix*(mvMatrix*vec4(aPos1, 1.));\n  pos1 = pos1/pos1.w - gl_Position/gl_Position.w;\n  vec4 pos2 = prMatrix*(mvMatrix*vec4(aPos2, 1.));\n  pos2 = pos2/pos2.w - gl_Position/gl_Position.w;\n  normz = pos1.x*pos2.y - pos1.y*pos2.x;\n#endif\n#endif // IS_TWOSIDED\n  \n#ifdef NEEDS_VNORMAL\n  vNormal = vec4(normalize(vNormal.xyz), 1);\n#endif\n  \n#if defined(HAS_TEXTURE) || defined(IS_TEXT)\n  vTexcoord = aTexcoord;\n#endif\n  \n#if defined(FIXED_SIZE) && !defined(ROTATING)\n  vec4 pos = prMatrix * mvMatrix * vec4(aPos, 1.);\n  pos = pos/pos.w;\n  gl_Position = pos + vec4(aOfs*textScale, 0.);\n#endif\n  \n#if defined(IS_SPRITES) && !defined(FIXED_SIZE)\n  vec4 pos = mvMatrix * vec4(aPos, 1.);\n  pos = pos/pos.w + vec4(aOfs,  0.);\n  gl_Position = prMatrix*pos;\n#endif\n  \n#ifdef FAT_LINES\n  /* This code was inspired by Matt Deslauriers' code in \n   https://mattdesl.svbtle.com/drawing-lines-is-hard */\n  vec2 aspectVec = vec2(uAspect, 1.0);\n  mat4 projViewModel = prMatrix * mvMatrix;\n  vec4 currentProjected = projViewModel * vec4(aPos, 1.0);\n  currentProjected = currentProjected/currentProjected.w;\n  vec4 nextProjected = projViewModel * vec4(aNext, 1.0);\n  vec2 currentScreen = currentProjected.xy * aspectVec;\n  vec2 nextScreen = (nextProjected.xy / nextProjected.w) * aspectVec;\n  float len = uLwd;\n  vec2 dir = vec2(1.0, 0.0);\n  vPoint = aPoint;\n  vLength = length(nextScreen - currentScreen)/2.0;\n  vLength = vLength/(vLength + len);\n  if (vLength > 0.0) {\n    dir = normalize(nextScreen - currentScreen);\n  }\n  vec2 normal = vec2(-dir.y, dir.x);\n  dir.x /= uAspect;\n  normal.x /= uAspect;\n  vec4 offset = vec4(len*(normal*aPoint.x*aPoint.y - dir), 0.0, 0.0);\n  gl_Position = currentProjected + offset;\n#endif\n  \n#ifdef IS_BRUSH\n  gl_Position = vec4(aPos, 1.);\n#endif\n}","fragmentShader":"#line 2 2\n// File 2 is the fragment shader\n#ifdef GL_ES\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n#endif\nvarying vec4 vCol; // carries alpha\nvarying vec4 vPosition;\n#if defined(HAS_TEXTURE) || defined (IS_TEXT)\nvarying vec2 vTexcoord;\nuniform sampler2D uSampler;\n#endif\n\n#ifdef HAS_FOG\nuniform int uFogMode;\nuniform vec3 uFogColor;\nuniform vec4 uFogParms;\n#endif\n\n#if defined(IS_LIT) && !defined(FIXED_QUADS)\nvarying vec4 vNormal;\n#endif\n\n#if NCLIPPLANES > 0\nuniform vec4 vClipplane[NCLIPPLANES];\n#endif\n\n#if NLIGHTS > 0\nuniform mat4 mvMatrix;\n#endif\n\n#ifdef IS_LIT\nuniform vec3 emission;\nuniform float shininess;\n#if NLIGHTS > 0\nuniform vec3 ambient[NLIGHTS];\nuniform vec3 specular[NLIGHTS]; // light*material\nuniform vec3 diffuse[NLIGHTS];\nuniform vec3 lightDir[NLIGHTS];\nuniform bool viewpoint[NLIGHTS];\nuniform bool finite[NLIGHTS];\n#endif\n#endif // IS_LIT\n\n#ifdef IS_TWOSIDED\nuniform bool front;\nvarying float normz;\n#endif\n\n#ifdef FAT_LINES\nvarying vec2 vPoint;\nvarying float vLength;\n#endif\n\n#ifdef USE_ENVMAP\nvarying vec3 vReflection;\n#endif\n\nvoid main(void) {\n  vec4 fragColor;\n#ifdef FAT_LINES\n  vec2 point = vPoint;\n  bool neg = point.y < 0.0;\n  point.y = neg ? (point.y + vLength)/(1.0 - vLength) :\n                 -(point.y - vLength)/(1.0 - vLength);\n#if defined(IS_TRANSPARENT) && defined(IS_LINESTRIP)\n  if (neg && length(point) <= 1.0) discard;\n#endif\n  point.y = min(point.y, 0.0);\n  if (length(point) > 1.0) discard;\n#endif // FAT_LINES\n  \n#ifdef ROUND_POINTS\n  vec2 coord = gl_PointCoord - vec2(0.5);\n  if (length(coord) > 0.5) discard;\n#endif\n  \n#if NCLIPPLANES > 0\n  for (int i = 0; i < NCLIPPLANES; i++)\n    if (dot(vPosition, vClipplane[i]) < 0.0) discard;\n#endif\n    \n#ifdef FIXED_QUADS\n    vec3 n = vec3(0., 0., 1.);\n#elif defined(IS_LIT)\n    vec3 n = normalize(vNormal.xyz);\n#endif\n    \n#ifdef IS_TWOSIDED\n    if ((normz <= 0.) != front) discard;\n#endif\n\n#ifdef IS_LIT\n    vec3 eye = normalize(-vPosition.xyz/vPosition.w);\n    vec3 lightdir;\n    vec4 colDiff;\n    vec3 halfVec;\n    vec4 lighteffect = vec4(emission, 0.);\n    vec3 col;\n    float nDotL;\n#ifdef FIXED_QUADS\n    n = -faceforward(n, n, eye);\n#endif\n    \n#if NLIGHTS > 0\n    // Simulate two-sided lighting\n    if (n.z < 0.0)\n      n = -n;\n    for (int i=0;i<NLIGHTS;i++) {\n      colDiff = vec4(vCol.rgb * diffuse[i], vCol.a);\n      lightdir = lightDir[i];\n      if (!viewpoint[i]) {\n        if (finite[i]) {\n          lightdir = (mvMatrix * vec4(lightdir, 1.)).xyz;\n        } else {\n          lightdir = (mvMatrix * vec4(lightdir, 0.)).xyz;\n        }\n      }\n      if (!finite[i]) {\n        halfVec = normalize(lightdir + eye);\n      } else {\n        lightdir = normalize(lightdir - vPosition.xyz/vPosition.w);\n        halfVec = normalize(lightdir + eye);\n      }\n      col = ambient[i];\n      nDotL = dot(n, lightdir);\n      col = col + max(nDotL, 0.) * colDiff.rgb;\n      col = col + pow(max(dot(halfVec, n), 0.), shininess) * specular[i];\n      lighteffect = lighteffect + vec4(col, colDiff.a);\n    }\n#endif\n    \n#else // not IS_LIT\n    vec4 colDiff = vCol;\n    vec4 lighteffect = colDiff;\n#endif\n    \n#ifdef IS_TEXT\n    vec4 textureColor = lighteffect*texture2D(uSampler, vTexcoord);\n#endif\n    \n#ifdef HAS_TEXTURE\n\n// These calculations use the definitions from \n// https://docs.gl/gl3/glTexEnv\n\n#ifdef USE_ENVMAP\n    float m = 2.0 * sqrt(dot(vReflection, vReflection) + 2.0*vReflection.z + 1.0);\n    vec4 textureColor = texture2D(uSampler, vReflection.xy / m + vec2(0.5, 0.5));\n#else\n    vec4 textureColor = texture2D(uSampler, vTexcoord);\n#endif\n\n#ifdef TEXTURE_rgb\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(textureColor.rgb, lighteffect.a);\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = lighteffect*vec4(textureColor.rgb, 1.);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - textureColor.rgb) * lighteffect.rgb, lighteffect.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(lighteffect.rgb + textureColor.rgb, lighteffect.a);\n#endif\n\n#endif //TEXTURE_rgb\n        \n#ifdef TEXTURE_rgba\n\n#ifdef TEXMODE_replace\n// already done\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = lighteffect*textureColor;\n#endif\n\n#ifdef TEXMODE_decal\n    textureColor = vec4((1. - textureColor.a)*lighteffect.rgb) +\n                     textureColor.a*textureColor.rgb, \n                     lighteffect.a);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - textureColor.rgb) * lighteffect.rgb,\n                    lighteffect.a*textureColor.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(lighteffect.rgb + textureColor.rgb,\n                    lighteffect.a*textureColor.a);\n#endif\n    \n#endif //TEXTURE_rgba\n    \n#ifdef TEXTURE_alpha\n    float luminance = dot(vec3(1.,1.,1.),textureColor.rgb)/3.;\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(lighteffect.rgb, luminance);\n#endif \n\n#if defined(TEXMODE_modulate) || defined(TEXMODE_blend) || defined(TEXMODE_add)\n    textureColor = vec4(lighteffect.rgb, lighteffect.a*luminance);\n#endif\n \n#endif // TEXTURE_alpha\n    \n// The TEXTURE_luminance values are not from that reference    \n#ifdef TEXTURE_luminance\n    float luminance = dot(vec3(1.,1.,1.),textureColor.rgb)/3.;\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(luminance, luminance, luminance, lighteffect.a);\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = vec4(luminance*lighteffect.rgb, lighteffect.a);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - luminance)*lighteffect.rgb,\n                        lighteffect.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(luminance + lighteffect.rgb, lighteffect.a);\n#endif\n\n#endif // TEXTURE_luminance\n \n    \n#ifdef TEXTURE_luminance_alpha\n    float luminance = dot(vec3(1.,1.,1.),textureColor.rgb)/3.;\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(luminance, luminance, luminance, textureColor.a);\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = vec4(luminance*lighteffect.rgb, \n                        textureColor.a*lighteffect.a);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - luminance)*lighteffect.rgb,\n                        textureColor.a*lighteffect.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(luminance + lighteffect.rgb, \n                        textureColor.a*lighteffect.a);\n\n#endif\n\n#endif // TEXTURE_luminance_alpha\n    \n    fragColor = textureColor;\n\n#elif defined(IS_TEXT)\n    if (textureColor.a < 0.1)\n      discard;\n    else\n      fragColor = textureColor;\n#else\n    fragColor = lighteffect;\n#endif // HAS_TEXTURE\n    \n#ifdef HAS_FOG\n    // uFogParms elements: x = near, y = far, z = fogscale, w = (1-sin(FOV/2))/(1+sin(FOV/2))\n    // In Exp and Exp2: use density = density/far\n    // fogF will be the proportion of fog\n    // Initialize it to the linear value\n    float fogF;\n    if (uFogMode > 0) {\n      fogF = (uFogParms.y - vPosition.z/vPosition.w)/(uFogParms.y - uFogParms.x);\n      if (uFogMode > 1)\n        fogF = mix(uFogParms.w, 1.0, fogF);\n      fogF = fogF*uFogParms.z;\n      if (uFogMode == 2)\n        fogF = 1.0 - exp(-fogF);\n      // Docs are wrong: use (density*c)^2, not density*c^2\n      // https://gitlab.freedesktop.org/mesa/mesa/-/blob/master/src/mesa/swrast/s_fog.c#L58\n      else if (uFogMode == 3)\n        fogF = 1.0 - exp(-fogF*fogF);\n      fogF = clamp(fogF, 0.0, 1.0);\n      gl_FragColor = vec4(mix(fragColor.rgb, uFogColor, fogF), fragColor.a);\n    } else gl_FragColor = fragColor;\n#else\n    gl_FragColor = fragColor;\n#endif // HAS_FOG\n    \n}","players":[],"webGLoptions":{"preserveDrawingBuffer":true}},"evals":[],"jsHooks":[]}</script>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-rgb-space-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;5: The colors in the RGB space
</figcaption>
</figure>
</div>
</div>
<p>It then continues by projecting the colors, first into the XYZ space, then CIELab (not shown here), and then finally the DIN99d space (Figure&nbsp;6).</p>
<div class="cell">
<div id="fig-din99d-space" class="cell-output-display quarto-float quarto-figure quarto-figure-center anchored no-overflow-x">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-din99d-space-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div id="rgl33817" style="width:100%;height:650px;" class="rglWebGL html-widget" aria-labelledby="rgl33817-aria"></div>
<script type="application/json" data-for="rgl33817">{"x":{"material":{"color":"#000000","alpha":1,"lit":true,"ambient":"#000000","specular":"#FFFFFF","emission":"#000000","shininess":50,"smooth":true,"front":"filled","back":"filled","size":3,"lwd":1,"fog":true,"point_antialias":false,"line_antialias":false,"texture":null,"textype":"rgb","texmode":"modulate","texmipmap":false,"texminfilter":"linear","texmagfilter":"linear","texenvmap":false,"depth_mask":true,"depth_test":"less","isTransparent":false,"polygon_offset":[0,0],"margin":"","floating":false,"tag":"","blend":["src_alpha","one_minus_src_alpha"]},"rootSubscene":1,"objects":{"31":{"id":31,"type":"points","material":{"lit":false},"vertices":"0","colors":"1","centers":"2","ignoreExtent":false,"flags":34816},"33":{"id":33,"type":"text","material":{"lit":false,"margin":0,"edge":[0,1,1]},"vertices":"3","colors":"4","texts":[["DIN99d"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"5","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"34":{"id":34,"type":"text","material":{"lit":false,"margin":0,"floating":true,"edge":[0,1,1]},"vertices":"6","colors":"7","texts":[["L99d"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"8","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"35":{"id":35,"type":"text","material":{"lit":false,"margin":1,"floating":true,"edge":[1,1,1]},"vertices":"9","colors":"10","texts":[["a99d"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"11","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"36":{"id":36,"type":"text","material":{"lit":false,"margin":2,"floating":true,"edge":[1,1,1]},"vertices":"12","colors":"13","texts":[["b99d"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"14","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"5":{"id":5,"type":"light","vertices":[[0,0,1]],"colors":[[1,1,1,1],[1,1,1,1],[1,1,1,1]],"viewpoint":true,"finite":false},"6":{"id":6,"type":"background","material":{"lit":false,"back":"lines"},"colors":"15","centers":"16","sphere":false,"fogtype":"none","fogscale":1,"flags":32768},"32":{"id":32,"type":"bboxdeco","material":{"front":"lines","back":"lines"},"vertices":"17","colors":"18","axes":{"mode":["pretty","pretty","pretty"],"step":[10,20,20],"nticks":[5,5,5],"marklen":[15,15,15],"expand":[1.029999971389771,1.029999971389771,1.029999971389771]},"draw_front":true,"flags":32769},"1":{"id":1,"type":"subscene","par3d":{"antialias":8,"FOV":30,"ignoreExtent":false,"listeners":1,"mouseMode":{"none":"none","left":"trackball","right":"zoom","middle":"fov","wheel":"pull"},"observer":[0,0,325.2228393554688],"modelMatrix":[[1.115169644355774,0,0,-69.56121826171875],[0,0.3409429788589478,0.8615754246711731,-0.06915782392024994],[0,-0.9367331266403198,0.3135878145694733,-322.4158325195312],[0,0,0,1]],"projMatrix":[[3.732050657272339,0,0,0],[0,3.732050657272339,0,0],[0,0,-3.863702774047852,-1172.390625],[0,0,-1,0]],"skipRedraw":false,"userMatrix":[[1,0,0,0],[0,0.3420201433256682,0.9396926207859085,0],[0,-0.9396926207859085,0.3420201433256682,0],[0,0,0,1]],"userProjection":[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],"scale":[1.115169644355774,0.9968505501747131,0.9168694019317627],"viewport":{"x":0,"y":0,"width":1,"height":1},"zoom":1,"bbox":[27.97290229797363,96.78160095214844,-35.81810760498047,41.15769577026367,-42.82153701782227,40.86908721923828],"windowRect":[0,0,256,256],"family":"sans","font":1,"cex":1,"useFreeType":true,"fontname":"NULL","maxClipPlanes":2147483647,"glVersion":"NA","activeSubscene":0},"embeddings":{"viewport":"replace","projection":"replace","model":"replace","mouse":"replace"},"objects":[6,32,31,33,34,35,36,5],"subscenes":[],"flags":36113}},"crosstalk":{"key":[],"group":[],"id":[],"options":[]},"width":480,"height":480,"buffer":{"accessors":[{"bufferView":0,"componentType":5126,"count":1000,"type":"VEC3"},{"bufferView":1,"componentType":5121,"count":1000,"type":"VEC4","normalized":true},{"bufferView":2,"componentType":5126,"count":1000,"type":"VEC3"},{"bufferView":3,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":4,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":5,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":6,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":7,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":8,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":9,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":10,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":11,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":12,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":13,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":14,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":15,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":16,"componentType":5121,"count":1,"type":"VEC3"},{"bufferView":17,"componentType":5126,"count":16,"type":"VEC3"},{"bufferView":18,"componentType":5121,"count":1,"type":"VEC4"}],"bufferViews":[{"buffer":0,"byteLength":12000,"byteOffset":0},{"buffer":0,"byteLength":4000,"byteOffset":12000},{"buffer":0,"byteLength":12000,"byteOffset":16000},{"buffer":0,"byteLength":12,"byteOffset":28000},{"buffer":0,"byteLength":4,"byteOffset":28012},{"buffer":0,"byteLength":12,"byteOffset":28016},{"buffer":0,"byteLength":12,"byteOffset":28028},{"buffer":0,"byteLength":4,"byteOffset":28040},{"buffer":0,"byteLength":12,"byteOffset":28044},{"buffer":0,"byteLength":12,"byteOffset":28056},{"buffer":0,"byteLength":4,"byteOffset":28068},{"buffer":0,"byteLength":12,"byteOffset":28072},{"buffer":0,"byteLength":12,"byteOffset":28084},{"buffer":0,"byteLength":4,"byteOffset":28096},{"buffer":0,"byteLength":12,"byteOffset":28100},{"buffer":0,"byteLength":4,"byteOffset":28112},{"buffer":0,"byteLength":3,"byteOffset":28116},{"buffer":0,"byteLength":192,"byteOffset":28120},{"buffer":0,"byteLength":4,"byteOffset":28312}],"buffers":[{"byteLength":28316,"bytes":"Z1iCQs2QAkLkKVvBF2CsQrv8aED5LaJB9/MTQsMjCkHK/yfCkpGKQkHlnUHg2MbBUl2fQlyn\nlcFFNBRCXTJoQqrg8UHQDyJBMtmwQiJ0dsHkgjPBC1ZcQudJ08ATjPvBkgqoQtZOd0EXkHNB\nKK2iQiWElsFDDK9B/X5FQq5SBkIGIcLBK9+rQsglk0AsAHfBmBWzQhCdtMBxXxNCkuJKQuwn\nGkLg0g1AiCq1QrT95cFsSZXAV/eyQt0nmMHzdezAT1RjQiJgHEI8sCFBHSGOQobmK8E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AgwgAAwH8AAMB/AACgwQAAwH8AAMB/AAAAAAAAwH8AAMB/\nAACgQQAAwH8AAMB/AAAgQgAAAAE="}]},"context":{"shiny":false,"rmarkdown":null},"vertexShader":"#line 2 1\n// File 1 is the vertex shader\n#ifdef GL_ES\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n#endif\n\nattribute vec3 aPos;\nattribute vec4 aCol;\nuniform mat4 mvMatrix;\nuniform mat4 prMatrix;\nvarying vec4 vCol;\nvarying vec4 vPosition;\n\n#ifdef NEEDS_VNORMAL\nattribute vec3 aNorm;\nuniform mat4 normMatrix;\nvarying vec4 vNormal;\n#endif\n\n#if defined(HAS_TEXTURE) || defined (IS_TEXT)\nattribute vec2 aTexcoord;\nvarying vec2 vTexcoord;\n#endif\n\n#ifdef FIXED_SIZE\nuniform vec3 textScale;\n#endif\n\n#ifdef FIXED_QUADS\nattribute vec3 aOfs;\n#endif\n\n#ifdef IS_TWOSIDED\n#ifdef HAS_NORMALS\nvarying float normz;\nuniform mat4 invPrMatrix;\n#else\nattribute vec3 aPos1;\nattribute vec3 aPos2;\nvarying float normz;\n#endif\n#endif // IS_TWOSIDED\n\n#ifdef FAT_LINES\nattribute vec3 aNext;\nattribute vec2 aPoint;\nvarying vec2 vPoint;\nvarying float vLength;\nuniform float uAspect;\nuniform float uLwd;\n#endif\n\n#ifdef USE_ENVMAP\nvarying vec3 vReflection;\n#endif\n\nvoid main(void) {\n  \n#ifndef IS_BRUSH\n#if defined(NCLIPPLANES) || !defined(FIXED_QUADS) || defined(HAS_FOG) || defined(USE_ENVMAP)\n  vPosition = mvMatrix * vec4(aPos, 1.);\n#endif\n  \n#ifndef FIXED_QUADS\n  gl_Position = prMatrix * vPosition;\n#endif\n#endif // !IS_BRUSH\n  \n#ifdef IS_POINTS\n  gl_PointSize = POINTSIZE;\n#endif\n  \n  vCol = aCol;\n  \n// USE_ENVMAP implies NEEDS_VNORMAL\n\n#ifdef NEEDS_VNORMAL\n  vNormal = normMatrix * vec4(-aNorm, dot(aNorm, aPos));\n#endif\n\n#ifdef USE_ENVMAP\n  vReflection = normalize(reflect(vPosition.xyz/vPosition.w, \n                        normalize(vNormal.xyz/vNormal.w)));\n#endif\n  \n#ifdef IS_TWOSIDED\n#ifdef HAS_NORMALS\n  /* normz should be calculated *after* projection */\n  normz = (invPrMatrix*vNormal).z;\n#else\n  vec4 pos1 = prMatrix*(mvMatrix*vec4(aPos1, 1.));\n  pos1 = pos1/pos1.w - gl_Position/gl_Position.w;\n  vec4 pos2 = prMatrix*(mvMatrix*vec4(aPos2, 1.));\n  pos2 = pos2/pos2.w - gl_Position/gl_Position.w;\n  normz = pos1.x*pos2.y - pos1.y*pos2.x;\n#endif\n#endif // IS_TWOSIDED\n  \n#ifdef NEEDS_VNORMAL\n  vNormal = vec4(normalize(vNormal.xyz), 1);\n#endif\n  \n#if defined(HAS_TEXTURE) || defined(IS_TEXT)\n  vTexcoord = aTexcoord;\n#endif\n  \n#if defined(FIXED_SIZE) && !defined(ROTATING)\n  vec4 pos = prMatrix * mvMatrix * vec4(aPos, 1.);\n  pos = pos/pos.w;\n  gl_Position = pos + vec4(aOfs*textScale, 0.);\n#endif\n  \n#if defined(IS_SPRITES) && !defined(FIXED_SIZE)\n  vec4 pos = mvMatrix * vec4(aPos, 1.);\n  pos = pos/pos.w + vec4(aOfs,  0.);\n  gl_Position = prMatrix*pos;\n#endif\n  \n#ifdef FAT_LINES\n  /* This code was inspired by Matt Deslauriers' code in \n   https://mattdesl.svbtle.com/drawing-lines-is-hard */\n  vec2 aspectVec = vec2(uAspect, 1.0);\n  mat4 projViewModel = prMatrix * mvMatrix;\n  vec4 currentProjected = projViewModel * vec4(aPos, 1.0);\n  currentProjected = currentProjected/currentProjected.w;\n  vec4 nextProjected = projViewModel * vec4(aNext, 1.0);\n  vec2 currentScreen = currentProjected.xy * aspectVec;\n  vec2 nextScreen = (nextProjected.xy / nextProjected.w) * aspectVec;\n  float len = uLwd;\n  vec2 dir = vec2(1.0, 0.0);\n  vPoint = aPoint;\n  vLength = length(nextScreen - currentScreen)/2.0;\n  vLength = vLength/(vLength + len);\n  if (vLength > 0.0) {\n    dir = normalize(nextScreen - currentScreen);\n  }\n  vec2 normal = vec2(-dir.y, dir.x);\n  dir.x /= uAspect;\n  normal.x /= uAspect;\n  vec4 offset = vec4(len*(normal*aPoint.x*aPoint.y - dir), 0.0, 0.0);\n  gl_Position = currentProjected + offset;\n#endif\n  \n#ifdef IS_BRUSH\n  gl_Position = vec4(aPos, 1.);\n#endif\n}","fragmentShader":"#line 2 2\n// File 2 is the fragment shader\n#ifdef GL_ES\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n#endif\nvarying vec4 vCol; // carries alpha\nvarying vec4 vPosition;\n#if defined(HAS_TEXTURE) || defined (IS_TEXT)\nvarying vec2 vTexcoord;\nuniform sampler2D uSampler;\n#endif\n\n#ifdef HAS_FOG\nuniform int uFogMode;\nuniform vec3 uFogColor;\nuniform vec4 uFogParms;\n#endif\n\n#if defined(IS_LIT) && !defined(FIXED_QUADS)\nvarying vec4 vNormal;\n#endif\n\n#if NCLIPPLANES > 0\nuniform vec4 vClipplane[NCLIPPLANES];\n#endif\n\n#if NLIGHTS > 0\nuniform mat4 mvMatrix;\n#endif\n\n#ifdef IS_LIT\nuniform vec3 emission;\nuniform float shininess;\n#if NLIGHTS > 0\nuniform vec3 ambient[NLIGHTS];\nuniform vec3 specular[NLIGHTS]; // light*material\nuniform vec3 diffuse[NLIGHTS];\nuniform vec3 lightDir[NLIGHTS];\nuniform bool viewpoint[NLIGHTS];\nuniform bool finite[NLIGHTS];\n#endif\n#endif // IS_LIT\n\n#ifdef IS_TWOSIDED\nuniform bool front;\nvarying float normz;\n#endif\n\n#ifdef FAT_LINES\nvarying vec2 vPoint;\nvarying float vLength;\n#endif\n\n#ifdef USE_ENVMAP\nvarying vec3 vReflection;\n#endif\n\nvoid main(void) {\n  vec4 fragColor;\n#ifdef FAT_LINES\n  vec2 point = vPoint;\n  bool neg = point.y < 0.0;\n  point.y = neg ? (point.y + vLength)/(1.0 - vLength) :\n                 -(point.y - vLength)/(1.0 - vLength);\n#if defined(IS_TRANSPARENT) && defined(IS_LINESTRIP)\n  if (neg && length(point) <= 1.0) discard;\n#endif\n  point.y = min(point.y, 0.0);\n  if (length(point) > 1.0) discard;\n#endif // FAT_LINES\n  \n#ifdef ROUND_POINTS\n  vec2 coord = gl_PointCoord - vec2(0.5);\n  if (length(coord) > 0.5) discard;\n#endif\n  \n#if NCLIPPLANES > 0\n  for (int i = 0; i < NCLIPPLANES; i++)\n    if (dot(vPosition, vClipplane[i]) < 0.0) discard;\n#endif\n    \n#ifdef FIXED_QUADS\n    vec3 n = vec3(0., 0., 1.);\n#elif defined(IS_LIT)\n    vec3 n = normalize(vNormal.xyz);\n#endif\n    \n#ifdef IS_TWOSIDED\n    if ((normz <= 0.) != front) discard;\n#endif\n\n#ifdef IS_LIT\n    vec3 eye = normalize(-vPosition.xyz/vPosition.w);\n    vec3 lightdir;\n    vec4 colDiff;\n    vec3 halfVec;\n    vec4 lighteffect = vec4(emission, 0.);\n    vec3 col;\n    float nDotL;\n#ifdef FIXED_QUADS\n    n = -faceforward(n, n, eye);\n#endif\n    \n#if NLIGHTS > 0\n    // Simulate two-sided lighting\n    if (n.z < 0.0)\n      n = -n;\n    for (int i=0;i<NLIGHTS;i++) {\n      colDiff = vec4(vCol.rgb * diffuse[i], vCol.a);\n      lightdir = lightDir[i];\n      if (!viewpoint[i]) {\n        if (finite[i]) {\n          lightdir = (mvMatrix * vec4(lightdir, 1.)).xyz;\n        } else {\n          lightdir = (mvMatrix * vec4(lightdir, 0.)).xyz;\n        }\n      }\n      if (!finite[i]) {\n        halfVec = normalize(lightdir + eye);\n      } else {\n        lightdir = normalize(lightdir - vPosition.xyz/vPosition.w);\n        halfVec = normalize(lightdir + eye);\n      }\n      col = ambient[i];\n      nDotL = dot(n, lightdir);\n      col = col + max(nDotL, 0.) * colDiff.rgb;\n      col = col + pow(max(dot(halfVec, n), 0.), shininess) * specular[i];\n      lighteffect = lighteffect + vec4(col, colDiff.a);\n    }\n#endif\n    \n#else // not IS_LIT\n    vec4 colDiff = vCol;\n    vec4 lighteffect = colDiff;\n#endif\n    \n#ifdef IS_TEXT\n    vec4 textureColor = lighteffect*texture2D(uSampler, vTexcoord);\n#endif\n    \n#ifdef HAS_TEXTURE\n\n// These calculations use the definitions from \n// https://docs.gl/gl3/glTexEnv\n\n#ifdef USE_ENVMAP\n    float m = 2.0 * sqrt(dot(vReflection, vReflection) + 2.0*vReflection.z + 1.0);\n    vec4 textureColor = texture2D(uSampler, vReflection.xy / m + vec2(0.5, 0.5));\n#else\n    vec4 textureColor = texture2D(uSampler, vTexcoord);\n#endif\n\n#ifdef TEXTURE_rgb\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(textureColor.rgb, lighteffect.a);\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = lighteffect*vec4(textureColor.rgb, 1.);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - textureColor.rgb) * lighteffect.rgb, lighteffect.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(lighteffect.rgb + textureColor.rgb, lighteffect.a);\n#endif\n\n#endif //TEXTURE_rgb\n        \n#ifdef TEXTURE_rgba\n\n#ifdef TEXMODE_replace\n// already done\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = lighteffect*textureColor;\n#endif\n\n#ifdef TEXMODE_decal\n    textureColor = vec4((1. - textureColor.a)*lighteffect.rgb) +\n                     textureColor.a*textureColor.rgb, \n                     lighteffect.a);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - textureColor.rgb) * lighteffect.rgb,\n                    lighteffect.a*textureColor.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(lighteffect.rgb + textureColor.rgb,\n                    lighteffect.a*textureColor.a);\n#endif\n    \n#endif //TEXTURE_rgba\n    \n#ifdef TEXTURE_alpha\n    float luminance = dot(vec3(1.,1.,1.),textureColor.rgb)/3.;\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(lighteffect.rgb, luminance);\n#endif \n\n#if defined(TEXMODE_modulate) || defined(TEXMODE_blend) || defined(TEXMODE_add)\n    textureColor = vec4(lighteffect.rgb, lighteffect.a*luminance);\n#endif\n \n#endif // TEXTURE_alpha\n    \n// The TEXTURE_luminance values are not from that reference    \n#ifdef TEXTURE_luminance\n    float luminance = dot(vec3(1.,1.,1.),textureColor.rgb)/3.;\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(luminance, luminance, luminance, lighteffect.a);\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = vec4(luminance*lighteffect.rgb, lighteffect.a);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - luminance)*lighteffect.rgb,\n                        lighteffect.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(luminance + lighteffect.rgb, lighteffect.a);\n#endif\n\n#endif // TEXTURE_luminance\n \n    \n#ifdef TEXTURE_luminance_alpha\n    float luminance = dot(vec3(1.,1.,1.),textureColor.rgb)/3.;\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(luminance, luminance, luminance, textureColor.a);\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = vec4(luminance*lighteffect.rgb, \n                        textureColor.a*lighteffect.a);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - luminance)*lighteffect.rgb,\n                        textureColor.a*lighteffect.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(luminance + lighteffect.rgb, \n                        textureColor.a*lighteffect.a);\n\n#endif\n\n#endif // TEXTURE_luminance_alpha\n    \n    fragColor = textureColor;\n\n#elif defined(IS_TEXT)\n    if (textureColor.a < 0.1)\n      discard;\n    else\n      fragColor = textureColor;\n#else\n    fragColor = lighteffect;\n#endif // HAS_TEXTURE\n    \n#ifdef HAS_FOG\n    // uFogParms elements: x = near, y = far, z = fogscale, w = (1-sin(FOV/2))/(1+sin(FOV/2))\n    // In Exp and Exp2: use density = density/far\n    // fogF will be the proportion of fog\n    // Initialize it to the linear value\n    float fogF;\n    if (uFogMode > 0) {\n      fogF = (uFogParms.y - vPosition.z/vPosition.w)/(uFogParms.y - uFogParms.x);\n      if (uFogMode > 1)\n        fogF = mix(uFogParms.w, 1.0, fogF);\n      fogF = fogF*uFogParms.z;\n      if (uFogMode == 2)\n        fogF = 1.0 - exp(-fogF);\n      // Docs are wrong: use (density*c)^2, not density*c^2\n      // https://gitlab.freedesktop.org/mesa/mesa/-/blob/master/src/mesa/swrast/s_fog.c#L58\n      else if (uFogMode == 3)\n        fogF = 1.0 - exp(-fogF*fogF);\n      fogF = clamp(fogF, 0.0, 1.0);\n      gl_FragColor = vec4(mix(fragColor.rgb, uFogColor, fogF), fragColor.a);\n    } else gl_FragColor = fragColor;\n#else\n    gl_FragColor = fragColor;\n#endif // HAS_FOG\n    \n}","players":[],"webGLoptions":{"preserveDrawingBuffer":true}},"evals":[],"jsHooks":[]}</script>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-din99d-space-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;6: Colors in DIN99d space
</figcaption>
</figure>
</div>
</div>
<p>The DIN99d color space <span class="citation" data-cites="cui2002">(Cui et al. 2002)</span> is a euclidean, perceptually uniform color space. This means that the difference between two colors is equal to the euclidean distance between them. We take advantage of this by computing a distance matrix on all the colors in the subset, finding their pairwise color differences. We then apply a power transformation <span class="citation" data-cites="huang2015">(Huang et al. 2015)</span> to fine tune these differences.</p>
<p>To select the <code>n</code> colors that the user wanted, we proceed greedily: first, we find the two most distant points, then we find the third point that maximizes the minimum distance to the previously selected points. This is repeated until <code>n</code> points are selected. These points are then returned to the user; below is an example using <code>n = 5.</code></p>
<div class="cell">
<div id="fig-selected" class="cell-output-display quarto-float quarto-figure quarto-figure-center anchored no-overflow-x">
<figure class="quarto-float quarto-float-fig figure">
<div aria-describedby="fig-selected-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
<div id="rgl10112" style="width:100%;height:650px;" class="rglWebGL html-widget" aria-labelledby="rgl10112-aria"></div>
<script type="application/json" data-for="rgl10112">{"x":{"material":{"color":"#000000","alpha":1,"lit":true,"ambient":"#000000","specular":"#FFFFFF","emission":"#000000","shininess":50,"smooth":true,"front":"filled","back":"filled","size":3,"lwd":1,"fog":true,"point_antialias":false,"line_antialias":false,"texture":null,"textype":"rgb","texmode":"modulate","texmipmap":false,"texminfilter":"linear","texmagfilter":"linear","texenvmap":false,"depth_mask":true,"depth_test":"less","isTransparent":false,"polygon_offset":[0,0],"margin":"","floating":false,"tag":"","blend":["src_alpha","one_minus_src_alpha"]},"rootSubscene":1,"objects":{"43":{"id":43,"type":"points","material":{"alpha":[0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248,0.09803921729326248],"lit":false,"isTransparent":true},"vertices":"0","colors":"1","centers":"2","ignoreExtent":false,"flags":34848},"45":{"id":45,"type":"text","material":{"lit":false,"margin":0,"edge":[0,1,1]},"vertices":"3","colors":"4","texts":[["DIN99d"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"5","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"46":{"id":46,"type":"text","material":{"lit":false,"margin":0,"floating":true,"edge":[0,1,1]},"vertices":"6","colors":"7","texts":[["L99d"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"8","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"47":{"id":47,"type":"text","material":{"lit":false,"margin":1,"floating":true,"edge":[1,1,1]},"vertices":"9","colors":"10","texts":[["a99d"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"11","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"48":{"id":48,"type":"text","material":{"lit":false,"margin":2,"floating":true,"edge":[1,1,1]},"vertices":"12","colors":"13","texts":[["b99d"]],"cex":[[1]],"adj":[[0.5,0.5,0.5]],"centers":"14","family":[["sans"]],"font":[[1]],"ignoreExtent":true,"flags":33808},"49":{"id":49,"type":"points","material":{"lit":false,"size":5},"vertices":"15","colors":"16","centers":"17","ignoreExtent":false,"flags":34816},"5":{"id":5,"type":"light","vertices":[[0,0,1]],"colors":[[1,1,1,1],[1,1,1,1],[1,1,1,1]],"viewpoint":true,"finite":false},"6":{"id":6,"type":"background","material":{"lit":false,"back":"lines"},"colors":"18","centers":"19","sphere":false,"fogtype":"none","fogscale":1,"flags":32768},"44":{"id":44,"type":"bboxdeco","material":{"front":"lines","back":"lines"},"vertices":"20","colors":"21","axes":{"mode":["pretty","pretty","pretty"],"step":[10,20,20],"nticks":[5,5,5],"marklen":[15,15,15],"expand":[1.029999971389771,1.029999971389771,1.029999971389771]},"draw_front":true,"flags":32769},"1":{"id":1,"type":"subscene","par3d":{"antialias":8,"FOV":30,"ignoreExtent":false,"listeners":1,"mouseMode":{"none":"none","left":"trackball","right":"zoom","middle":"fov","wheel":"pull"},"observer":[0,0,325.3004455566406],"modelMatrix":[[1.115169644355774,0,0,-69.56121826171875],[0,0.3409429788589478,0.8615754246711731,-0.09495473653078079],[0,-0.9367331266403198,0.3135878145694733,-322.5028076171875],[0,0,0,1]],"projMatrix":[[3.732050895690918,0,0,0],[0,3.732050895690918,0,0],[0,0,-3.863703727722168,-1172.670654296875],[0,0,-1,0]],"skipRedraw":false,"userMatrix":[[1,0,0,0],[0,0.3420201433256682,0.9396926207859085,0],[0,-0.9396926207859085,0.3420201433256682,0],[0,0,0,1]],"userProjection":[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],"scale":[1.115169644355774,0.9968505501747131,0.9168694019317627],"viewport":{"x":0,"y":0,"width":1,"height":1},"zoom":1,"bbox":[27.97290229797363,96.78160095214844,-35.81810760498047,41.15769577026367,-42.82153701782227,40.92897415161133],"windowRect":[0,0,256,256],"family":"sans","font":1,"cex":1,"useFreeType":true,"fontname":"NULL","maxClipPlanes":2147483647,"glVersion":"NA","activeSubscene":0},"embeddings":{"viewport":"replace","projection":"replace","model":"replace","mouse":"replace"},"objects":[6,44,43,45,46,47,48,49,5],"subscenes":[],"flags":36145}},"crosstalk":{"key":[],"group":[],"id":[],"options":[]},"width":480,"height":480,"buffer":{"accessors":[{"bufferView":0,"componentType":5126,"count":1000,"type":"VEC3"},{"bufferView":1,"componentType":5121,"count":1000,"type":"VEC4","normalized":true},{"bufferView":2,"componentType":5126,"count":1000,"type":"VEC3"},{"bufferView":3,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":4,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":5,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":6,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":7,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":8,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":9,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":10,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":11,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":12,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":13,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":14,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":15,"componentType":5126,"count":5,"type":"VEC3"},{"bufferView":16,"componentType":5121,"count":5,"type":"VEC4","normalized":true},{"bufferView":17,"componentType":5126,"count":5,"type":"VEC3"},{"bufferView":18,"componentType":5121,"count":1,"type":"VEC4"},{"bufferView":19,"componentType":5121,"count":1,"type":"VEC3"},{"bufferView":20,"componentType":5126,"count":16,"type":"VEC3"},{"bufferView":21,"componentType":5121,"count":1,"type":"VEC4"}],"bufferViews":[{"buffer":0,"byteLength":12000,"byteOffset":0},{"buffer":0,"byteLength":4000,"byteOffset":12000},{"buffer":0,"byteLength":12000,"byteOffset":16000},{"buffer":0,"byteLength":12,"byteOffset":28000},{"buffer":0,"byteLength":4,"byteOffset":28012},{"buffer":0,"byteLength":12,"byteOffset":28016},{"buffer":0,"byteLength":12,"byteOffset":28028},{"buffer":0,"byteLength":4,"byteOffset":28040},{"buffer":0,"byteLength":12,"byteOffset":28044},{"buffer":0,"byteLength":12,"byteOffset":28056},{"buffer":0,"byteLength":4,"byteOffset":28068},{"buffer":0,"byteLength":12,"byteOffset":28072},{"buffer":0,"byteLength":12,"byteOffset":28084},{"buffer":0,"byteLength":4,"byteOffset":28096},{"buffer":0,"byteLength":12,"byteOffset":28100},{"buffer":0,"byteLength":60,"byteOffset":28112},{"buffer":0,"byteLength":20,"byteOffset":28172},{"buffer":0,"byteLength":60,"byteOffset":28192},{"buffer":0,"byteLength":4,"byteOffset":28252},{"buffer":0,"byteLength":3,"byteOffset":28256},{"buffer":0,"byteLength":192,"byteOffset":28260},{"buffer":0,"byteLength":4,"byteOffset":28452}],"buffers":[{"byteLength":28456,"bytes":"Z1iCQs2QAkLkKVvBF2CsQrv8aED5LaJB9/MTQsMjCkHK/yfCkpGKQkHlnUHg2MbBUl2fQlyn\nlcFFNBRCXTJoQqrg8UHQDyJBMtmwQiJ0dsHkgjPBC1ZcQudJ08ATjPvBkgqoQtZOd0EXkHNB\nKK2iQiWElsFDDK9B/X5FQq5SBkIGIcLBK9+rQsglk0AsAHfBmBWzQhCdtMBxXxNCkuJKQuwn\nGkLg0g1AiCq1QrT95cFsSZXAV/eyQt0nmMHzdezAT1RjQiJgHEI8sCFBHSGOQobmK8EupAdC\naA+BQrX+kUEmNO/BSCyCQhkX10EI04TBgMC8QgHHg8FJMmZBFqilQk3fH0GaRZhBkD8kQhiL\nckA4ViTChGSOQiAjUMHj5Z/BM6Y4QrDH/EFWpqhB67GfQjofrcHiUQVC/ZObQrVQsEFsJbDB\nqbUUQrLTM0EXzBTC0wSyQplkfDy80O9BXKasQl4UPEG0EI3AFs2lQlTaAsLo9QlAgTmqQgiW\n1cGVDty/eHNCQslFHULroo++GMWWQoRtKcCUqNlBbbefQmn2zED18LDB1gBXQkaM7EFBEcXB\niXm0QtbRlsGYj8RBiji1Qih9B0FF4O5Ayp6DQi9BL8Hjju7BnVmdQkEnY7/bQZjBgIKOQkF/\nZ0Gruf9Bb8eCQvBa38GCGuZBR+WGQucKBUJwxIXBUQtjQqysr0HdwfTBx6C/Ql9vH8FcVqlB\nayWSQibu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\n// File 1 is the vertex shader\n#ifdef GL_ES\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n#endif\n\nattribute vec3 aPos;\nattribute vec4 aCol;\nuniform mat4 mvMatrix;\nuniform mat4 prMatrix;\nvarying vec4 vCol;\nvarying vec4 vPosition;\n\n#ifdef NEEDS_VNORMAL\nattribute vec3 aNorm;\nuniform mat4 normMatrix;\nvarying vec4 vNormal;\n#endif\n\n#if defined(HAS_TEXTURE) || defined (IS_TEXT)\nattribute vec2 aTexcoord;\nvarying vec2 vTexcoord;\n#endif\n\n#ifdef FIXED_SIZE\nuniform vec3 textScale;\n#endif\n\n#ifdef FIXED_QUADS\nattribute vec3 aOfs;\n#endif\n\n#ifdef IS_TWOSIDED\n#ifdef HAS_NORMALS\nvarying float normz;\nuniform mat4 invPrMatrix;\n#else\nattribute vec3 aPos1;\nattribute vec3 aPos2;\nvarying float normz;\n#endif\n#endif // IS_TWOSIDED\n\n#ifdef FAT_LINES\nattribute vec3 aNext;\nattribute vec2 aPoint;\nvarying vec2 vPoint;\nvarying float vLength;\nuniform float uAspect;\nuniform float uLwd;\n#endif\n\n#ifdef USE_ENVMAP\nvarying vec3 vReflection;\n#endif\n\nvoid main(void) {\n  \n#ifndef IS_BRUSH\n#if defined(NCLIPPLANES) || !defined(FIXED_QUADS) || defined(HAS_FOG) || defined(USE_ENVMAP)\n  vPosition = mvMatrix * vec4(aPos, 1.);\n#endif\n  \n#ifndef FIXED_QUADS\n  gl_Position = prMatrix * vPosition;\n#endif\n#endif // !IS_BRUSH\n  \n#ifdef IS_POINTS\n  gl_PointSize = POINTSIZE;\n#endif\n  \n  vCol = aCol;\n  \n// USE_ENVMAP implies NEEDS_VNORMAL\n\n#ifdef NEEDS_VNORMAL\n  vNormal = normMatrix * vec4(-aNorm, dot(aNorm, aPos));\n#endif\n\n#ifdef USE_ENVMAP\n  vReflection = normalize(reflect(vPosition.xyz/vPosition.w, \n                        normalize(vNormal.xyz/vNormal.w)));\n#endif\n  \n#ifdef IS_TWOSIDED\n#ifdef HAS_NORMALS\n  /* normz should be calculated *after* projection */\n  normz = (invPrMatrix*vNormal).z;\n#else\n  vec4 pos1 = prMatrix*(mvMatrix*vec4(aPos1, 1.));\n  pos1 = pos1/pos1.w - gl_Position/gl_Position.w;\n  vec4 pos2 = prMatrix*(mvMatrix*vec4(aPos2, 1.));\n  pos2 = pos2/pos2.w - gl_Position/gl_Position.w;\n  normz = pos1.x*pos2.y - pos1.y*pos2.x;\n#endif\n#endif // IS_TWOSIDED\n  \n#ifdef NEEDS_VNORMAL\n  vNormal = vec4(normalize(vNormal.xyz), 1);\n#endif\n  \n#if defined(HAS_TEXTURE) || defined(IS_TEXT)\n  vTexcoord = aTexcoord;\n#endif\n  \n#if defined(FIXED_SIZE) && !defined(ROTATING)\n  vec4 pos = prMatrix * mvMatrix * vec4(aPos, 1.);\n  pos = pos/pos.w;\n  gl_Position = pos + vec4(aOfs*textScale, 0.);\n#endif\n  \n#if defined(IS_SPRITES) && !defined(FIXED_SIZE)\n  vec4 pos = mvMatrix * vec4(aPos, 1.);\n  pos = pos/pos.w + vec4(aOfs,  0.);\n  gl_Position = prMatrix*pos;\n#endif\n  \n#ifdef FAT_LINES\n  /* This code was inspired by Matt Deslauriers' code in \n   https://mattdesl.svbtle.com/drawing-lines-is-hard */\n  vec2 aspectVec = vec2(uAspect, 1.0);\n  mat4 projViewModel = prMatrix * mvMatrix;\n  vec4 currentProjected = projViewModel * vec4(aPos, 1.0);\n  currentProjected = currentProjected/currentProjected.w;\n  vec4 nextProjected = projViewModel * vec4(aNext, 1.0);\n  vec2 currentScreen = currentProjected.xy * aspectVec;\n  vec2 nextScreen = (nextProjected.xy / nextProjected.w) * aspectVec;\n  float len = uLwd;\n  vec2 dir = vec2(1.0, 0.0);\n  vPoint = aPoint;\n  vLength = length(nextScreen - currentScreen)/2.0;\n  vLength = vLength/(vLength + len);\n  if (vLength > 0.0) {\n    dir = normalize(nextScreen - currentScreen);\n  }\n  vec2 normal = vec2(-dir.y, dir.x);\n  dir.x /= uAspect;\n  normal.x /= uAspect;\n  vec4 offset = vec4(len*(normal*aPoint.x*aPoint.y - dir), 0.0, 0.0);\n  gl_Position = currentProjected + offset;\n#endif\n  \n#ifdef IS_BRUSH\n  gl_Position = vec4(aPos, 1.);\n#endif\n}","fragmentShader":"#line 2 2\n// File 2 is the fragment shader\n#ifdef GL_ES\n#ifdef GL_FRAGMENT_PRECISION_HIGH\nprecision highp float;\n#else\nprecision mediump float;\n#endif\n#endif\nvarying vec4 vCol; // carries alpha\nvarying vec4 vPosition;\n#if defined(HAS_TEXTURE) || defined (IS_TEXT)\nvarying vec2 vTexcoord;\nuniform sampler2D uSampler;\n#endif\n\n#ifdef HAS_FOG\nuniform int uFogMode;\nuniform vec3 uFogColor;\nuniform vec4 uFogParms;\n#endif\n\n#if defined(IS_LIT) && !defined(FIXED_QUADS)\nvarying vec4 vNormal;\n#endif\n\n#if NCLIPPLANES > 0\nuniform vec4 vClipplane[NCLIPPLANES];\n#endif\n\n#if NLIGHTS > 0\nuniform mat4 mvMatrix;\n#endif\n\n#ifdef IS_LIT\nuniform vec3 emission;\nuniform float shininess;\n#if NLIGHTS > 0\nuniform vec3 ambient[NLIGHTS];\nuniform vec3 specular[NLIGHTS]; // light*material\nuniform vec3 diffuse[NLIGHTS];\nuniform vec3 lightDir[NLIGHTS];\nuniform bool viewpoint[NLIGHTS];\nuniform bool finite[NLIGHTS];\n#endif\n#endif // IS_LIT\n\n#ifdef IS_TWOSIDED\nuniform bool front;\nvarying float normz;\n#endif\n\n#ifdef FAT_LINES\nvarying vec2 vPoint;\nvarying float vLength;\n#endif\n\n#ifdef USE_ENVMAP\nvarying vec3 vReflection;\n#endif\n\nvoid main(void) {\n  vec4 fragColor;\n#ifdef FAT_LINES\n  vec2 point = vPoint;\n  bool neg = point.y < 0.0;\n  point.y = neg ? (point.y + vLength)/(1.0 - vLength) :\n                 -(point.y - vLength)/(1.0 - vLength);\n#if defined(IS_TRANSPARENT) && defined(IS_LINESTRIP)\n  if (neg && length(point) <= 1.0) discard;\n#endif\n  point.y = min(point.y, 0.0);\n  if (length(point) > 1.0) discard;\n#endif // FAT_LINES\n  \n#ifdef ROUND_POINTS\n  vec2 coord = gl_PointCoord - vec2(0.5);\n  if (length(coord) > 0.5) discard;\n#endif\n  \n#if NCLIPPLANES > 0\n  for (int i = 0; i < NCLIPPLANES; i++)\n    if (dot(vPosition, vClipplane[i]) < 0.0) discard;\n#endif\n    \n#ifdef FIXED_QUADS\n    vec3 n = vec3(0., 0., 1.);\n#elif defined(IS_LIT)\n    vec3 n = normalize(vNormal.xyz);\n#endif\n    \n#ifdef IS_TWOSIDED\n    if ((normz <= 0.) != front) discard;\n#endif\n\n#ifdef IS_LIT\n    vec3 eye = normalize(-vPosition.xyz/vPosition.w);\n    vec3 lightdir;\n    vec4 colDiff;\n    vec3 halfVec;\n    vec4 lighteffect = vec4(emission, 0.);\n    vec3 col;\n    float nDotL;\n#ifdef FIXED_QUADS\n    n = -faceforward(n, n, eye);\n#endif\n    \n#if NLIGHTS > 0\n    // Simulate two-sided lighting\n    if (n.z < 0.0)\n      n = -n;\n    for (int i=0;i<NLIGHTS;i++) {\n      colDiff = vec4(vCol.rgb * diffuse[i], vCol.a);\n      lightdir = lightDir[i];\n      if (!viewpoint[i]) {\n        if (finite[i]) {\n          lightdir = (mvMatrix * vec4(lightdir, 1.)).xyz;\n        } else {\n          lightdir = (mvMatrix * vec4(lightdir, 0.)).xyz;\n        }\n      }\n      if (!finite[i]) {\n        halfVec = normalize(lightdir + eye);\n      } else {\n        lightdir = normalize(lightdir - vPosition.xyz/vPosition.w);\n        halfVec = normalize(lightdir + eye);\n      }\n      col = ambient[i];\n      nDotL = dot(n, lightdir);\n      col = col + max(nDotL, 0.) * colDiff.rgb;\n      col = col + pow(max(dot(halfVec, n), 0.), shininess) * specular[i];\n      lighteffect = lighteffect + vec4(col, colDiff.a);\n    }\n#endif\n    \n#else // not IS_LIT\n    vec4 colDiff = vCol;\n    vec4 lighteffect = colDiff;\n#endif\n    \n#ifdef IS_TEXT\n    vec4 textureColor = lighteffect*texture2D(uSampler, vTexcoord);\n#endif\n    \n#ifdef HAS_TEXTURE\n\n// These calculations use the definitions from \n// https://docs.gl/gl3/glTexEnv\n\n#ifdef USE_ENVMAP\n    float m = 2.0 * sqrt(dot(vReflection, vReflection) + 2.0*vReflection.z + 1.0);\n    vec4 textureColor = texture2D(uSampler, vReflection.xy / m + vec2(0.5, 0.5));\n#else\n    vec4 textureColor = texture2D(uSampler, vTexcoord);\n#endif\n\n#ifdef TEXTURE_rgb\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(textureColor.rgb, lighteffect.a);\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = lighteffect*vec4(textureColor.rgb, 1.);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - textureColor.rgb) * lighteffect.rgb, lighteffect.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(lighteffect.rgb + textureColor.rgb, lighteffect.a);\n#endif\n\n#endif //TEXTURE_rgb\n        \n#ifdef TEXTURE_rgba\n\n#ifdef TEXMODE_replace\n// already done\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = lighteffect*textureColor;\n#endif\n\n#ifdef TEXMODE_decal\n    textureColor = vec4((1. - textureColor.a)*lighteffect.rgb) +\n                     textureColor.a*textureColor.rgb, \n                     lighteffect.a);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - textureColor.rgb) * lighteffect.rgb,\n                    lighteffect.a*textureColor.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(lighteffect.rgb + textureColor.rgb,\n                    lighteffect.a*textureColor.a);\n#endif\n    \n#endif //TEXTURE_rgba\n    \n#ifdef TEXTURE_alpha\n    float luminance = dot(vec3(1.,1.,1.),textureColor.rgb)/3.;\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(lighteffect.rgb, luminance);\n#endif \n\n#if defined(TEXMODE_modulate) || defined(TEXMODE_blend) || defined(TEXMODE_add)\n    textureColor = vec4(lighteffect.rgb, lighteffect.a*luminance);\n#endif\n \n#endif // TEXTURE_alpha\n    \n// The TEXTURE_luminance values are not from that reference    \n#ifdef TEXTURE_luminance\n    float luminance = dot(vec3(1.,1.,1.),textureColor.rgb)/3.;\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(luminance, luminance, luminance, lighteffect.a);\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = vec4(luminance*lighteffect.rgb, lighteffect.a);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - luminance)*lighteffect.rgb,\n                        lighteffect.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(luminance + lighteffect.rgb, lighteffect.a);\n#endif\n\n#endif // TEXTURE_luminance\n \n    \n#ifdef TEXTURE_luminance_alpha\n    float luminance = dot(vec3(1.,1.,1.),textureColor.rgb)/3.;\n\n#if defined(TEXMODE_replace) || defined(TEXMODE_decal)\n    textureColor = vec4(luminance, luminance, luminance, textureColor.a);\n#endif \n\n#ifdef TEXMODE_modulate\n    textureColor = vec4(luminance*lighteffect.rgb, \n                        textureColor.a*lighteffect.a);\n#endif\n\n#ifdef TEXMODE_blend\n    textureColor = vec4((1. - luminance)*lighteffect.rgb,\n                        textureColor.a*lighteffect.a);\n#endif\n\n#ifdef TEXMODE_add\n    textureColor = vec4(luminance + lighteffect.rgb, \n                        textureColor.a*lighteffect.a);\n\n#endif\n\n#endif // TEXTURE_luminance_alpha\n    \n    fragColor = textureColor;\n\n#elif defined(IS_TEXT)\n    if (textureColor.a < 0.1)\n      discard;\n    else\n      fragColor = textureColor;\n#else\n    fragColor = lighteffect;\n#endif // HAS_TEXTURE\n    \n#ifdef HAS_FOG\n    // uFogParms elements: x = near, y = far, z = fogscale, w = (1-sin(FOV/2))/(1+sin(FOV/2))\n    // In Exp and Exp2: use density = density/far\n    // fogF will be the proportion of fog\n    // Initialize it to the linear value\n    float fogF;\n    if (uFogMode > 0) {\n      fogF = (uFogParms.y - vPosition.z/vPosition.w)/(uFogParms.y - uFogParms.x);\n      if (uFogMode > 1)\n        fogF = mix(uFogParms.w, 1.0, fogF);\n      fogF = fogF*uFogParms.z;\n      if (uFogMode == 2)\n        fogF = 1.0 - exp(-fogF);\n      // Docs are wrong: use (density*c)^2, not density*c^2\n      // https://gitlab.freedesktop.org/mesa/mesa/-/blob/master/src/mesa/swrast/s_fog.c#L58\n      else if (uFogMode == 3)\n        fogF = 1.0 - exp(-fogF*fogF);\n      fogF = clamp(fogF, 0.0, 1.0);\n      gl_FragColor = vec4(mix(fragColor.rgb, uFogColor, fogF), fragColor.a);\n    } else gl_FragColor = fragColor;\n#else\n    gl_FragColor = fragColor;\n#endif // HAS_FOG\n    \n}","players":[],"webGLoptions":{"preserveDrawingBuffer":true}},"evals":[],"jsHooks":[]}</script>
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-selected-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;7: Final selected colors using the qualpalr algorithm
</figcaption>
</figure>
</div>
</div>
<section id="color-specifications" class="level3">
<h3 class="anchored" data-anchor-id="color-specifications">Color specifications</h3>
<p>At the time of writing, qualpalr only works in the sRGB color space with the CIE Standard Illuminant D65 reference white.</p>
</section>
</section>
<section id="future-directions" class="level2">
<h2 class="anchored" data-anchor-id="future-directions">Future directions</h2>
<p>The greedy search to find distinct colors is crude. Particularly when searching for few colors, the greedy algorithm will lead to sub-optimal results. Other solutions to finding points that maximize the smallest pairwise distance among them are welcome.</p>
</section>
<section id="thanks" class="level2">
<h2 class="anchored" data-anchor-id="thanks">Thanks</h2>
<p><a href="http://www.brucelindbloom.com/">Bruce Lindbloom’s webpage</a> has been instrumental in making qualpalr. Also thanks to <a href="http://tools.medialab.sciences-po.fr/iwanthue/">i want hue</a>, which inspired me to make qualpalr.</p>
</section>
<section id="references" class="level2">
<h2 class="anchored" data-anchor-id="references">References</h2>




</section>

<div id="quarto-appendix" class="default"><section class="quarto-appendix-contents" id="quarto-bibliography"><h2 class="anchored quarto-appendix-heading">References</h2><div id="refs" class="references csl-bib-body hanging-indent">
<div id="ref-cui2002" class="csl-entry">
Cui, G., M. R. Luo, B. Rigg, G. Roesler, and K. Witt. 2002. <span>“Uniform Colour Spaces Based on the <span>DIN99</span> Colour-Difference Formula.”</span> <em>Color Research &amp; Application</em> 27 (4): 282–90. <a href="https://doi.org/10/cz7764">https://doi.org/10/cz7764</a>.
</div>
<div id="ref-huang2015" class="csl-entry">
Huang, Min, Guihua Cui, Manuel Melgosa, et al. 2015. <span>“Power Functions Improving the Performance of Color-Difference Formulas.”</span> <em>Optics Express</em> 23 (1): 597. <a href="https://doi.org/10/gcsk6f">https://doi.org/10/gcsk6f</a>.
</div>
</div></section></div> ]]></description>
  <category>R</category>
  <category>Data visualization</category>
  <category>Qualpalr</category>
  <guid>https://jolars.co/blog/2016-10-15-introducing-qualpalr/</guid>
  <pubDate>Sat, 15 Oct 2016 00:00:00 GMT</pubDate>
  <media:content url="https://jolars.co/blog/2016-10-15-introducing-qualpalr/qualpalr.png" medium="image" type="image/png" height="148" width="144"/>
</item>
</channel>
</rss>
