Skip to content

Commit

Permalink
Export all figures in docs as PNG
Browse files Browse the repository at this point in the history
  • Loading branch information
fhagemann committed Dec 23, 2024
1 parent cb36995 commit 29e418b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/src/man/charge_drift.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,15 @@ Electron and hole clouds can be easily constructed using [`NBodyChargeCloud`](@r

One way of defining an [`NBodyChargeCloud`](@ref) is having a center point charge surrounded by shells with point charges on the vertices of platonic solids. For now, all shells will have the same number of charges and be oriented the same way.

````@example NBodyChargeCloud
````@setup NBodyChargeCloud
using SolidStateDetectors #hide
using Unitful #hide
using Plots #hide
gr(fmt = :png) #hide
T = Float64 #hide
````

````@example NBodyChargeCloud
center = CartesianPoint{T}([0,0,0])
energy = 1460u"keV"
nbcc = NBodyChargeCloud(center, energy)
Expand Down
1 change: 1 addition & 0 deletions docs/src/man/csg.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ can be specified in the configuration files.
using SolidStateDetectors
import SolidStateDetectors.ConstructiveSolidGeometry as CSG
using Plots
gr(fmt = :png) #hide
T = Float64;
nothing #hide
````
Expand Down
2 changes: 1 addition & 1 deletion docs/src/man/plotting.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ First, we have to calculate something in order to demonstrate the plotting tools
using Plots
using SolidStateDetectors
using Unitful
gr(fmt = :png) #hide
gr(fmt = :png)
T = Float32
sim = Simulation{T}(SSD_examples[:InvertedCoax]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# Let's get started by loading the packages and the detector and have a look at its geometry:

using Plots
gr(fmt = :png) #hide
using SolidStateDetectors
using Unitful

Expand Down

0 comments on commit 29e418b

Please sign in to comment.