Skip to content

Commit

Permalink
Display figures
Browse files Browse the repository at this point in the history
  • Loading branch information
henry2004y committed Jun 2, 2024
1 parent 7335b74 commit 9d91739
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/examples/advanced/demo_gc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ for i in 2:4
ax.scene.plots[9+2*i-1].color = Makie.wong_colors()[i]
end

f = DisplayAs.PNG(f) #hide

# We can clearly see the deviations caused by the FLR effect. If we use a smaller gyro-radius by increasing the magnetic field, this accuracy will be much higher:

grad_B(x) = SA[0, 0, 1e-7 + 1e-8*x[2]]
Expand Down Expand Up @@ -193,4 +195,6 @@ for i in 2:4
ax.scene.plots[9+2*i-1].color = Makie.wong_colors()[i]
end

f = DisplayAs.PNG(f) #hide

# Therefore, it is crucial to check the scale before performing any GC tracing!

0 comments on commit 9d91739

Please sign in to comment.