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
**You can chain the dot syntax to add traces to a plot, e.g.**
71
-
72
-
```julia
73
-
y =randn(20)
74
-
75
-
plot.bar(; y).scatter(; y)
76
-
```
77
-
78
-
<br><br>
79
-
80
-
## 📄 Saving Plots
81
-
82
-
### Saving Plots As HTML
83
-
84
-
```julia
85
-
p =plot(y=rand(10))
86
-
87
-
PlotlyLight.save(p, "myplot.html")
88
-
```
89
-
90
-
- Note: call `preset.source.standalone!()` first if you want the html file to contain the entire plotly.js script. This enables you to view the plot even without internet access.
91
-
92
-
93
-
### Save Plots as Image via [PlotlyKaleido.jl](https://github.com/JuliaPlots/PlotlyKaleido.jl)
Set a theme/template via `preset.template.<option>!()`. Note that options are tab-autocomplete-able. These are borrowed from the [built-in themes](https://plotly.com/python/templates/) in the plotly python package.
112
-
113
-
```julia
114
-
preset.template.ggplot2!()
115
-
```
116
-
117
-
### Source Presets
118
-
119
-
Change how the plotly.js script gets loaded in the produced html via `preset.source.<option>!()`.
120
-
121
-
```julia
122
-
preset.source.none!() # Don't include the script.
123
-
preset.source.cdn!() # Use the official plotly.js CDN.
124
-
preset.source.local!() # Use a local version of the plotly.js script.
125
-
preset.source.standalone!() # Copy-paste the plotly.js script into the html output.
126
-
```
127
-
128
-
<br><br>
129
-
130
-
## ⚙️ Settings
131
-
132
-
Occasionally `preset`s aren't enough. Lower level user-configurable settings are available in `PlotlyLight.settings`:
0 commit comments