Skip to content

Commit

Permalink
Update CairoMakie imports and change axis labels
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoFioroni committed Dec 11, 2024
1 parent f8f335d commit c10ac2b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ext/QuantumToolboxCairoMakieExt.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module QuantumToolboxCairoMakieExt

using QuantumToolbox
using CairoMakie
using CairoMakie: Axis, Axis3, Colorbar, Figure, GridLayout, heatmap!, surface!, GridPosition, @L_str, Reverse

@doc raw"""
plot_wigner(
Expand Down Expand Up @@ -100,8 +100,8 @@ function _plot_wigner(
Colorbar(lyt[1, 2], hm)
end

ax.xlabel = L"\Re(\alpha)"
ax.ylabel = L"\Im(\alpha)"
ax.xlabel = L"\textrm{Re}(\alpha)"
ax.ylabel = L"\textrm{Im}(\alpha)"
return fig, ax, hm
end

Expand Down Expand Up @@ -133,8 +133,8 @@ function _plot_wigner(
Colorbar(lyt[1, 2], surf)
end

ax.xlabel = L"\Re(\alpha)"
ax.ylabel = L"\Im(\alpha)"
ax.xlabel = L"\textrm{Re}(\alpha)"
ax.ylabel = L"\textrm{Im}(\alpha)"
ax.zlabel = "Wigner function"
return fig, ax, surf
end
Expand Down

0 comments on commit c10ac2b

Please sign in to comment.