Skip to content

Commit

Permalink
doc: add theme to generator object example
Browse files Browse the repository at this point in the history
  • Loading branch information
juba committed Sep 10, 2024
1 parent d4dd61b commit efa41e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/usage.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,13 @@ from pyobsplot.utils import ALLOWED_DEFAULTS
print(ALLOWED_DEFAULTS)
```

So to create a plot generator object that creates by default 400px wide plots with a 50px margin and white on blue colors, you could use :
So to create a plot generator object that creates by default 400px wide plots with a 50px margin and white on blue colors with a dark theme, you could use :


```{python}
op_colors = Obsplot(
format = "html",
theme = "dark",
default={
"width": 400,
"margin": 50,
Expand Down

0 comments on commit efa41e7

Please sign in to comment.