lets-plot
lets-plot copied to clipboard
Multiplatform plotting library based on the Grammar of Graphics
https://datalore.jetbrains.com/report/static/HZqq77cegYd.E7get_WnChZ/y8xk12VJ0sHpRHcWnrDhQO > field (string): The name of the variable/aesthetics. The field name begins with ^ for aesthetics. You can specify variable names without a prefix, but the @ prefix can...
... and few other parameters controlling appearance of facet labels: strip.text.x, strip.text.x.top, strip.text.x.bottom, strip.text.y, strip.text.y.left, strip.text.y.right
``` legend.key, legend.key.size, legend.key.height, legend.key.width, ``` See: https://ggplot2.tidyverse.org/reference/theme.html
I often have plots with many tooltips, and the current overflowing behavior makes these a bit tricky to use. Example: ``` from lets_plot import * LetsPlot.setup_html() d = { l:...
To hide tooltip - 'none' And also a note about hiding axis tooltip: set "blank" or element_blank() to the axis_tooltip, axis_tooltipX, axis_tooltipY parameters of the theme() function.
Marimo offers a platform to run Python in the browser with Pyodide at marimo.app. The [proposed way](https://docs.marimo.io/guides/wasm.html) to install packages is to run `import micropip` in a cell, then in...
```python from lets_plot import * LetsPlot.setup_html() d = { 'l': [3], } ggplot(d, aes(color='l')) + geom_point() + ggsize(300, 200) ```  ```python from lets_plot import * LetsPlot.setup_html() d = {...
See ggplot2 axis [Capping](https://www.tidyverse.org/blog/2024/02/ggplot2-3-5-0-axes/#capping)
See ggplot2 3.5 : https://www.tidyverse.org/blog/2024/03/ggplot2-3-5-0-coord-radial/#partial-polar-plots
Consider two plots: ```python from lets_plot import * LetsPlot.setup_html() gggrid([ ggplot( { 'x': [0, 1, 2, 3, 4, 5, 6], 'y': [0, 0, 0, 0, 0, 0, 0] }, aes('x',...