Skip to content

Commit 68ae4eb

Browse files
committed
interactive gnuplot
1 parent 67a09f6 commit 68ae4eb

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

packages/docs/src/content/docs/examples/gnuplot-test.md

+13
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ draft: true
55

66
## rehype-gnuplot
77

8+
```gnuplot tag=iframe svgo=false
9+
set term svg mouse standalone enhanced
10+
11+
plot [-10:10] [-5:3] \
12+
1.5+sin(x)/x with filledcurve x2, \
13+
sin(x)/x with filledcurve, \
14+
1+sin(x)/x with lines, \
15+
-1+sin(x)/x with filledcurve y1=-2, \
16+
-2.5+sin(x)/x with filledcurve xy=-5,-4., \
17+
-4.3+sin(x)/x with filledcurve x1, \
18+
(x>3.5 ? x/3-3 : 1/0) with filledcurve y2
19+
```
20+
821
```gnuplot
922
set key fixed left top vertical Right noreverse enhanced autotitle box lt black linewidth 1.000 dashtype solid
1023
set title "Simple Plots"

packages/rehype-gnuplot/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@beoe/rehype-gnuplot",
33
"type": "module",
4-
"version": "0.4.2",
4+
"version": "0.5.0",
55
"description": "rehype gnuplot plugin",
66
"keywords": [
77
"rehype",
@@ -35,7 +35,7 @@
3535
"dependencies": {
3636
"@beoe/rehype-code-hook": "workspace:^",
3737
"@beoe/rehype-code-hook-img": "workspace:^",
38-
"gnuplot-wasm": "^0.0.1"
38+
"gnuplot-wasm": "^0.1.0"
3939
},
4040
"devDependencies": {
4141
"@types/hast": "^3.0.4",

pnpm-lock.yaml

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)