@@ -7,7 +7,7 @@ This page provides a gallery of examples to showcase the kinds of plots you can
77A standard plot combining smooth lines and distinct data points.
88
99### Fennel
10- {% raw %}
10+
1111``` fennel
1212(local fplot (require :fplot))
1313
@@ -34,9 +34,9 @@ A standard plot combining smooth lines and distinct data points.
3434 :pointtype 7
3535 :data data2}]})
3636```
37- {% endraw %}
37+
3838### Lua
39- {% raw %}
39+
4040``` lua
4141require (" fennel" ).install ()
4242local fplot = require (" fplot" )
@@ -74,7 +74,7 @@ fplot.plot({
7474 }
7575})
7676```
77- {% endraw %}
77+
7878_ (The resulting plot generated by fplot)_
7979
8080![ P8.ex.Plot1] ( https://i.imgur.com/LLJz0Ns.png )
@@ -86,7 +86,7 @@ _(The resulting plot generated by fplot)_
8686Creating a bar chart using the ` boxes ` style, which is great for categorical data.
8787
8888### Fennel
89- {% raw %}
89+
9090``` fennel
9191(local fplot (require :fplot))
9292
@@ -101,9 +101,9 @@ Creating a bar chart using the `boxes` style, which is great for categorical dat
101101 :style "boxes"
102102 :data [[1 42000] [2 35000] [3 48000] [4 29000]]}]})
103103```
104- {% endraw %}
104+
105105### Lua
106- {% raw %}
106+
107107``` lua
108108require (" fennel" ).install ()
109109local fplot = require (" fplot" )
@@ -126,7 +126,7 @@ fplot.plot({
126126 }
127127})
128128```
129- {% endraw %}
129+
130130_ (The resulting plot generated by fplot)_
131131
132132![ P8.ex.Plot2] ( https://i.imgur.com/JFyHjLu.png )
@@ -138,7 +138,7 @@ _(The resulting plot generated by fplot)_
138138Using ` fplot.splot ` to visualize three-dimensional data.
139139
140140### Fennel
141- {% raw %}
141+
142142``` fennel
143143(local fplot (require :fplot))
144144
@@ -161,9 +161,9 @@ Using `fplot.splot` to visualize three-dimensional data.
161161 :style "pm3d"
162162 :title ""}]})
163163```
164- {% endraw %}
164+
165165### Lua
166- {% raw %}
166+
167167``` lua
168168require (" fennel" ).install ()
169169local fplot = require (" fplot" )
@@ -196,7 +196,7 @@ fplot.splot({
196196 }
197197})
198198```
199- {% endraw %}
199+
200200_ (The resulting plot generated by fplot)_
201201
202202![ P8.ex.Plot3] ( https://i.imgur.com/OPbopB4.png )
@@ -208,7 +208,7 @@ _(The resulting plot generated by fplot)_
208208Useful for visualizing data that spans several orders of magnitude.
209209
210210### Fennel
211- {% raw %}
211+
212212``` fennel
213213(local fplot (require :fplot))
214214
@@ -226,9 +226,9 @@ Useful for visualizing data that spans several orders of magnitude.
226226 :style "lines"
227227 :data data}]})
228228```
229- {% endraw %}
229+
230230### Lua
231- {% raw %}
231+
232232``` lua
233233require (" fennel" ).install ()
234234local fplot = require (" fplot" )
@@ -255,7 +255,7 @@ fplot.plot({
255255 }
256256})
257257```
258- {% endraw %}
258+
259259_ (The resulting plot generated by fplot)_
260260
261261![ P8.ex.Plot4] ( https://i.imgur.com/3tzaueq.png )
0 commit comments