Skip to content

Commit

Permalink
Save image as svg
Browse files Browse the repository at this point in the history
  • Loading branch information
garrekstemo committed Apr 2, 2024
1 parent 64d66b7 commit affc390
Show file tree
Hide file tree
Showing 7 changed files with 96,143 additions and 4 deletions.
Binary file removed docs/src/assets/polariton_dispersion.png
Binary file not shown.
95,477 changes: 95,477 additions & 0 deletions docs/src/assets/polariton_dispersion.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/src/assets/polariton_field.png
Binary file not shown.
659 changes: 659 additions & 0 deletions docs/src/assets/polariton_field.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ This makes it very difficult to use them. TransferMatrix.jl
solves these problems and provides the first generalized 4x4 transfer matrix algorithm
available for Julia.



```@raw html
<div style="text-align: center;">
<img src="assets/polariton_dispersion.png" alt="polariton dispersion", width="100%"/>
<img src="assets/polariton_field.png", alt="polariton electric field", width="50%"/>
<img src="assets/polariton_dispersion.svg" alt="polariton dispersion", width="100%"/>
</div>
```

Expand Down
1 change: 1 addition & 0 deletions examples/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a"
Peaks = "18e31ff7-3703-566c-8e60-38913d67486b"
RefractiveIndex = "97a43521-7681-4ec2-835f-5b8ab7e7617e"
Expand Down
5 changes: 3 additions & 2 deletions examples/polariton_dispersion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ using Peaks
using RefractiveIndex
using TransferMatrix
using GLMakie
using CairoMakie

function dielectric_real(ω, p)
A, ω_0, Γ = p
Expand Down Expand Up @@ -100,7 +101,7 @@ text!(1960, 0.013, text="LP", color = :black, fontsize=18)
text!(2020, 0.013, text="UP", color = :black, fontsize=18)

fig
# save("docs/src/assets/polariton_dispersion.png", fig)
save("docs/src/assets/polariton_dispersion.svg", fig)

##

Expand Down Expand Up @@ -132,4 +133,4 @@ hideydecorations!(ax2, label = false, ticks = false, ticklabels = false)
rowgap!(fig.layout, 1, 0)

fig
# save("docs/src/assets/polariton_field.png", fig)
save("docs/src/assets/polariton_field.svg", fig)

0 comments on commit affc390

Please sign in to comment.