Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 57de892

Browse files
committed
test with all files
1 parent e225338 commit 57de892

File tree

99 files changed

+89066
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+89066
-9
lines changed

.github/workflows/Deploy.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1515
permissions:
16-
contents: write
16+
contents: read
1717
pages: write
1818
id-token: write
1919

@@ -48,14 +48,16 @@ jobs:
4848
uses: actions/configure-pages@v3
4949
- name: Install dependencies
5050
run: npm add -D vitepress # or pnpm install / yarn install / bun install
51-
- name: Install documentation dependencies
52-
run: julia --project=docs -e 'using Pkg; pkg"add https://github.com/LuxDL/DocumenterVitepress.jl.git"; Pkg.instantiate()'
53-
- name: Creating docs/src_md_examples content
54-
run: julia --project=docs/ --color=yes docs/genmkds.jl
55-
- name: make md pages content
56-
run: julia --project=docs/ --color=yes docs/make.jl
51+
# - name: Install documentation dependencies
52+
# run: julia --project=docs -e 'using Pkg; pkg"add https://github.com/LuxDL/DocumenterVitepress.jl.git"; Pkg.instantiate()'
53+
# - name: Creating docs/src_md_examples content
54+
# run: julia --project=docs/ --color=yes docs/genmkds.jl
55+
# - name: make md pages content
56+
# run: julia --project=docs/ --color=yes docs/make.jl
5757
- name: Build with VitePress
58-
run: npm run docs:build
58+
run: |
59+
npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
60+
touch docs/.vitepress/dist/.nojekyll
5961
- name: Upload artifact
6062
uses: actions/upload-pages-artifact@v2
6163
with:

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ build
55
.DS_Store
66

77
docs/docs
8-
docs/examples
98
docs/site
109
docs/.vitepress/dist
1110
docs/.vitepress/cache

docs/examples/2d/contours/assets/contour001.svg

Lines changed: 629 additions & 0 deletions
Loading

docs/examples/2d/contours/assets/contour002.svg

Lines changed: 2232 additions & 0 deletions
Loading
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
3+
4+
```julia
5+
using Gnuplot, Random
6+
Random.seed!(123)
7+
let
8+
x = y = -15:0.33:15
9+
fz(x,y) = sin.(sqrt.(x.^2 + y.^2))./sqrt.(x.^2+y.^2)
10+
fxy = [fz(x,y) for x in x, y in y]
11+
@gsp x y fxy "w l lc palette" "set view map"
12+
@gsp :- "set contour base;set key off" "set auto fix"
13+
@gsp :- "set cntrparam levels 15" "unset surface"
14+
@gsp :- xlab = "x" ylab = "y"
15+
end
16+
```
17+
18+
19+
```
20+
"assets/contour001.svg"
21+
```
22+
23+
24+
![](assets/contour001.svg)
25+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
3+
4+
```julia
5+
using Gnuplot, Random
6+
Random.seed!(123)
7+
let
8+
x = -1:0.05:1
9+
y = -1.5:0.05:2
10+
egg(x,y) = x^2 + y^2/(1.4 + y/5)^2
11+
segg = [egg(x,y) for x in x, y in y]
12+
@gsp x y segg "w l lc palette" palette(:thermal; rev= true) "set view map"
13+
@gsp :- "set contour base;set key off" "set auto fix"
14+
@gsp :- "set cntrparam levels incremental 0,0.01,1" "unset surface"
15+
@gsp :- xrange = (-1.2,1.2) yrange = (-1.5,2) cbrange =(0,1)
16+
@gsp :- xlab = "x" ylab = "y" "set size ratio -1"
17+
end
18+
```
19+
20+
21+
```
22+
"assets/contour002.svg"
23+
```
24+
25+
26+
![](assets/contour002.svg)
27+

docs/examples/2d/filledcu/assets/filled001.svg

Lines changed: 226 additions & 0 deletions
Loading

docs/examples/2d/filledcu/assets/filled002.svg

Lines changed: 208 additions & 0 deletions
Loading

docs/examples/2d/filledcu/assets/filled003.svg

Lines changed: 464 additions & 0 deletions
Loading
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
3+
4+
```julia
5+
using Gnuplot
6+
let
7+
x = LinRange(-10,10,200)
8+
@gp x sin.(x) sin.(x) .+ 1 "with filledcu lc '#56B4E9' fs transparent solid 0.3"
9+
@gp :- x cos.(x) 1 .+ cos.(x) "with filledcu lc 'red' fs transparent solid 0.5"
10+
end
11+
```
12+
13+
14+
```
15+
"assets/filled002.svg"
16+
```
17+
18+
19+
![](assets/filled002.svg)
20+

0 commit comments

Comments
 (0)