You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the `widget` format, plots can only be saved to HTML files. These files retain interactive features such as tooltips.
228
+
When using the `widget` format, plots can only be saved to HTML files. These files retain interactive features such as tooltips.
229
229
230
230
231
231
```{python}
@@ -259,6 +259,7 @@ When saving a plot to an HTML file, the result will depend on the `format` value
259
259
Plot generates charts as SVG, but if a legend, title, subtitle or caption is present, the SVG is wrapped in a `<figure>` HTML tag. In this case, when saving to an SVG file, the plot will be converted using `typst`.
260
260
:::
261
261
262
+
It is also possible to pass an `io.StringIO` object as `path` argument if you want to get the generated plot file as a Python object.
262
263
263
264
264
265
## Themes
@@ -360,7 +361,7 @@ op_colors = Obsplot(
360
361
format = "html",
361
362
theme = "dark",
362
363
default={
363
-
"width": 400,
364
+
"width": 400,
364
365
"margin": 50,
365
366
"style": {"color": "#54A4C4"}
366
367
}
@@ -437,7 +438,7 @@ Plot.plot({
437
438
})
438
439
```
439
440
440
-
In this case, caching ensures that the `penguins` DataFrame is only serialized and transmitted once instead of twice.
441
+
In this case, caching ensures that the `penguins` DataFrame is only serialized and transmitted once instead of twice.
441
442
442
443
### datetime objects
443
444
@@ -447,15 +448,15 @@ That makes the following two specifications equivalent:
You can see a live version of this example in the following Colab notebook: [](https://colab.research.google.com/github/juba/pyobsplot/blob/main/examples/interactivity.ipynb)
0 commit comments