Libraries focusing on interactivity
Different plotting libraries offer different degrees of interactivity out of the box. Also, there are packages we can use to gain interactivity, even using static plotting libraries. Here, we will classify and describe the available actions while mentioning the Julia packages that provide them. In particular, we will analyze two kinds of interactions: the ones affecting the underlying data and the ones acting at the perceptual level. Let’s start with the former.
Modifying the underlying data
As Julia is a dynamic language with a flexible REPL, you can always modify data and redraw the plots, but there is a series of tools that make that task easier. For example, the reactivity of Pluto
allows us to modify the data in one cell and automatically get the related plot updated on another. Makie
also offers a way to react to changes in variables through the use of the Observables
package. The Interact
package, built around Observables
, also...