@@ -18,7 +18,7 @@ The `:multiplot` table accepts the following keys:
1818This example creates two plots stacked vertically.
1919
2020#### Fennel
21- {% raw %}
21+
2222``` fennel
2323(local fplot (require :fplot))
2424;; --- Data ---
@@ -40,9 +40,9 @@ This example creates two plots stacked vertically.
4040 {:options {:multiplot {:layout [2 1]
4141 :title "Trigonometric Functions"}}})
4242```
43- {% endraw %}
43+
4444#### Lua
45- {% raw %}
45+
4646``` lua
4747require (" fennel" ).install ()
4848local fplot = require (" fplot" )
@@ -81,7 +81,7 @@ fplot.plot(
8181 }
8282)
8383```
84- {% endraw %}
84+
8585_ (The resulting plot generated by fplot)_
8686
8787![ P6.ex.Plot1] ( https://i.imgur.com/kj2mDSq.png )
@@ -101,7 +101,7 @@ You can add arbitrary annotations to your plot using the `:labels`, `:arrows`, a
101101### Example: Annotating a Peak
102102
103103#### Fennel
104- {% raw %}
104+
105105``` fennel
106106(fplot.plot
107107 {:options {:title "Annotated Plot"
@@ -113,9 +113,9 @@ You can add arbitrary annotations to your plot using the `:labels`, `:arrows`, a
113113 :datasets [{:data [[1 2] [3 7] [5 10] [7 6] [9 3]]
114114 :style "linespoints"}]})
115115```
116- {% endraw %}
116+
117117#### Lua
118- {% raw %}
118+
119119``` lua
120120fplot .plot ({
121121 options = {
@@ -140,7 +140,7 @@ fplot.plot({
140140 }
141141})
142142```
143- {% endraw %}
143+
144144_ (The resulting plot generated by fplot)_
145145
146146![ P6.ex.Plot2] ( https://i.imgur.com/7PkXI5P.png )
@@ -154,7 +154,7 @@ You can take full control over the axis tic marks using the `:xtics` and `:ytics
154154### Example: Labeled Tics
155155
156156#### Fennel
157- {% raw %}
157+
158158``` fennel
159159(local fplot (require :fplot))
160160
@@ -167,9 +167,9 @@ You can take full control over the axis tic marks using the `:xtics` and `:ytics
167167 :style "boxes"
168168 :title "Sales"}]})
169169```
170- {% endraw %}
170+
171171#### Lua
172- {% raw %}
172+
173173``` lua
174174require (" fennel" ).install ()
175175local fplot = require (" fplot" )
@@ -190,7 +190,7 @@ fplot.plot({
190190 }
191191})
192192```
193- {% endraw %}
193+
194194_ (The resulting plot generated by fplot)_
195195
196196![ P6.ex.Plot3] ( https://i.imgur.com/3yFiUj8.png )
@@ -204,7 +204,7 @@ For features that are not directly exposed by `fplot`, you can use the `:extra-o
204204### Example: Setting a Custom Fill Style
205205
206206#### Fennel
207- {% raw %}
207+
208208``` fennel
209209(local fplot (require :fplot))
210210
@@ -216,9 +216,9 @@ For features that are not directly exposed by `fplot`, you can use the `:extra-o
216216 :datasets [{:title "Group A" :data [10 15 12]}
217217 {:title "Group B" :data [12 11 14]}]})
218218```
219- {% endraw %}
219+
220220#### Lua
221- {% raw %}
221+
222222``` lua
223223require (" fennel" ).install ()
224224local fplot = require (" fplot" )
@@ -238,7 +238,7 @@ fplot.plot({
238238 }
239239})
240240```
241- {% endraw %}
241+
242242_ (The resulting plot generated by fplot)_
243243
244244![ P6.ex.Plot4] ( https://i.imgur.com/0XhFq1n.png )
0 commit comments