Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS] Reduce figures size in Documentation #247

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/src/tutorials/logo.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ wig = wigner(ψ, xvec, yvec, g = 2)
Finally, we plot the Wigner function using the `heatmap` function from the `CairoMakie` package.

```@example logo
fig = Figure(size = (500, 500), figure_padding = 0)
fig = Figure(size = (250, 250), figure_padding = 0)
ax = Axis(fig[1, 1])
heatmap!(ax, xvec, yvec, wig', colormap = :RdBu, interpolate = true, rasterize = 1)
hidespines!(ax)
Expand Down Expand Up @@ -120,7 +120,7 @@ And the Wigner function becomes more uniform:
```@example logo
wig = wigner(sol.states[end], xvec, yvec, g = 2)

fig = Figure(size = (500, 500), figure_padding = 0)
fig = Figure(size = (250, 250), figure_padding = 0)
ax = Axis(fig[1, 1])

img_wig = heatmap!(ax, xvec, yvec, wig', colormap = :RdBu, interpolate = true, rasterize = 1)
Expand Down Expand Up @@ -197,7 +197,7 @@ img = set_color_julia.(X, Y, wig_normalized, α1, α2, α3, Ref(cmap1), Ref(cmap
Finally, we plot the Wigner function with the custom colormap.

```@example logo
fig = Figure(size = (500, 500), figure_padding = 0, backgroundcolor = :transparent)
fig = Figure(size = (250, 250), figure_padding = 0, backgroundcolor = :transparent)
ax = Axis(fig[1, 1], backgroundcolor = :transparent)
image!(ax, img', rasterize = 1)
hidespines!(ax)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/tutorials/lowrank.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Plot the results
m_me = real(mesol.expect[3, :]) / Nx / Ny
m_lr = real(lrsol.expvals[3, :]) / Nx / Ny

fig = Figure(size = (800, 400), fontsize = 15)
fig = Figure(size = (500, 350), fontsize = 15)
ax = Axis(fig[1, 1], xlabel = L"\gamma t", ylabel = L"M_{z}", xlabelsize = 20, ylabelsize = 20)
lines!(ax, tl, m_lr, label = L"LR $[M=M(t)]$", linewidth = 2)
lines!(ax, tl, m_me, label = "Fock", linewidth = 2, linestyle = :dash)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/users_guide/steadystate.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ sol_me = mesolve(H, ψ0, tlist, c_op_list, e_ops=e_ops, progress_bar=false)
exp_me = real(sol_me.expect[1, :])

# plot the results
fig = Figure(size = (800, 400), fontsize = 15)
fig = Figure(size = (500, 350), fontsize = 15)
ax = Axis(fig[1, 1],
title = L"Decay of Fock state $|10\rangle$ in a thermal environment with $\langle n\rangle=2$",
xlabel = "Time",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/users_guide/time_evolution/solution.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ we can plot the resulting expectation values:
using CairoMakie
CairoMakie.enable_only_mime!(MIME"image/svg+xml"())

fig = Figure()
fig = Figure(size = (500, 350))
ax = Axis(fig[1, 1], xlabel = L"t")
lines!(ax, times, expt1, label = L"\langle 0 | \rho(t) | 0 \rangle")
lines!(ax, times, expt2, label = L"\langle 1 | \rho(t) | 1 \rangle")
Expand Down