Skip to content

Commit f34d9ff

Browse files
Reduce figures size in Documentation
1 parent f6ccbba commit f34d9ff

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/src/tutorials/logo.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ wig = wigner(ψ, xvec, yvec, g = 2)
8383
Finally, we plot the Wigner function using the `heatmap` function from the `CairoMakie` package.
8484

8585
```@example logo
86-
fig = Figure(size = (500, 500), figure_padding = 0)
86+
fig = Figure(size = (250, 250), figure_padding = 0)
8787
ax = Axis(fig[1, 1])
8888
heatmap!(ax, xvec, yvec, wig', colormap = :RdBu, interpolate = true, rasterize = 1)
8989
hidespines!(ax)
@@ -120,7 +120,7 @@ And the Wigner function becomes more uniform:
120120
```@example logo
121121
wig = wigner(sol.states[end], xvec, yvec, g = 2)
122122
123-
fig = Figure(size = (500, 500), figure_padding = 0)
123+
fig = Figure(size = (250, 250), figure_padding = 0)
124124
ax = Axis(fig[1, 1])
125125
126126
img_wig = heatmap!(ax, xvec, yvec, wig', colormap = :RdBu, interpolate = true, rasterize = 1)
@@ -197,7 +197,7 @@ img = set_color_julia.(X, Y, wig_normalized, α1, α2, α3, Ref(cmap1), Ref(cmap
197197
Finally, we plot the Wigner function with the custom colormap.
198198

199199
```@example logo
200-
fig = Figure(size = (500, 500), figure_padding = 0, backgroundcolor = :transparent)
200+
fig = Figure(size = (250, 250), figure_padding = 0, backgroundcolor = :transparent)
201201
ax = Axis(fig[1, 1], backgroundcolor = :transparent)
202202
image!(ax, img', rasterize = 1)
203203
hidespines!(ax)

docs/src/tutorials/lowrank.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Plot the results
141141
m_me = real(mesol.expect[3, :]) / Nx / Ny
142142
m_lr = real(lrsol.expvals[3, :]) / Nx / Ny
143143
144-
fig = Figure(size = (800, 400), fontsize = 15)
144+
fig = Figure(size = (500, 350), fontsize = 15)
145145
ax = Axis(fig[1, 1], xlabel = L"\gamma t", ylabel = L"M_{z}", xlabelsize = 20, ylabelsize = 20)
146146
lines!(ax, tl, m_lr, label = L"LR $[M=M(t)]$", linewidth = 2)
147147
lines!(ax, tl, m_me, label = "Fock", linewidth = 2, linestyle = :dash)

docs/src/users_guide/steadystate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ sol_me = mesolve(H, ψ0, tlist, c_op_list, e_ops=e_ops, progress_bar=false)
103103
exp_me = real(sol_me.expect[1, :])
104104
105105
# plot the results
106-
fig = Figure(size = (800, 400), fontsize = 15)
106+
fig = Figure(size = (500, 350), fontsize = 15)
107107
ax = Axis(fig[1, 1],
108108
title = L"Decay of Fock state $|10\rangle$ in a thermal environment with $\langle n\rangle=2$",
109109
xlabel = "Time",

docs/src/users_guide/time_evolution/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ we can plot the resulting expectation values:
6666
using CairoMakie
6767
CairoMakie.enable_only_mime!(MIME"image/svg+xml"())
6868
69-
fig = Figure()
69+
fig = Figure(size = (500, 350))
7070
ax = Axis(fig[1, 1], xlabel = L"t")
7171
lines!(ax, times, expt1, label = L"\langle 0 | \rho(t) | 0 \rangle")
7272
lines!(ax, times, expt2, label = L"\langle 1 | \rho(t) | 1 \rangle")

0 commit comments

Comments
 (0)