From 4ca21909c413fdeab0b920859e2c35dd9eb8be89 Mon Sep 17 00:00:00 2001 From: Josh Day Date: Fri, 17 May 2024 15:59:01 -0400 Subject: [PATCH] move all readme docs to documenter --- README.md | 106 --------------------------------------------------- docs/make.jl | 3 ++ 2 files changed, 3 insertions(+), 106 deletions(-) diff --git a/README.md b/README.md index 306c020..a9ab041 100644 --- a/README.md +++ b/README.md @@ -34,109 +34,3 @@ p # `display(p)` to see the updated plot

- -

- -## 📈 Traces - -- A core concept in Plotly is that of a *trace*, which is the data along with specifications on how to plot it. -- There are many different trace *types* (e.g. "scatter" for scatterplots, "box" for boxplots). - - -PlotlyLight does some simple "tricks" with the `plot` function so that: - -```julia -plot.trace(; kw...) == plot(; type=trace, kw...) -``` - -**This lets you tab-autocomplete the trace type:** - -```julia -julia> plot. -# bar barpolar box candlestick -# carpet choropleth choroplethmapbox cone -# contour contourcarpet densitymapbox funnel -# funnelarea heatmap heatmapgl histogram -# histogram2d histogram2dcontour icicle image -# indicator isosurface mesh3d ohlc -# parcats parcoords pie pointcloud -# sankey scatter scatter3d scattercarpet -# scattergeo scattergl scattermapbox scatterpolar -# scatterpolargl scattersmith scatterternary splom -# streamtube sunburst surface table -# treemap violin volume waterfall -``` - -**You can chain the dot syntax to add traces to a plot, e.g.** - -```julia -y = randn(20) - -plot.bar(; y).scatter(; y) -``` - -

- -## 📄 Saving Plots - -### Saving Plots As HTML - -```julia -p = plot(y=rand(10)) - -PlotlyLight.save(p, "myplot.html") -``` - -- 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. - - -### Save Plots as Image via [PlotlyKaleido.jl](https://github.com/JuliaPlots/PlotlyKaleido.jl) - -```julia -using PlotlyKaleido - -PlotlyKaleido.start() - -(;data, layout, config) = p - -PlotlyKaleido.savefig((; data, layout, config), "myplot.png") -``` - -

- -## 🎛️ Presets - -### Theme Presets - -Set a theme/template via `preset.template.