Skip to content

Commit c10ac2b

Browse files
Update CairoMakie imports and change axis labels
1 parent f8f335d commit c10ac2b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/QuantumToolboxCairoMakieExt.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module QuantumToolboxCairoMakieExt
22

33
using QuantumToolbox
4-
using CairoMakie
4+
using CairoMakie: Axis, Axis3, Colorbar, Figure, GridLayout, heatmap!, surface!, GridPosition, @L_str, Reverse
55

66
@doc raw"""
77
plot_wigner(
@@ -100,8 +100,8 @@ function _plot_wigner(
100100
Colorbar(lyt[1, 2], hm)
101101
end
102102

103-
ax.xlabel = L"\Re(\alpha)"
104-
ax.ylabel = L"\Im(\alpha)"
103+
ax.xlabel = L"\textrm{Re}(\alpha)"
104+
ax.ylabel = L"\textrm{Im}(\alpha)"
105105
return fig, ax, hm
106106
end
107107

@@ -133,8 +133,8 @@ function _plot_wigner(
133133
Colorbar(lyt[1, 2], surf)
134134
end
135135

136-
ax.xlabel = L"\Re(\alpha)"
137-
ax.ylabel = L"\Im(\alpha)"
136+
ax.xlabel = L"\textrm{Re}(\alpha)"
137+
ax.ylabel = L"\textrm{Im}(\alpha)"
138138
ax.zlabel = "Wigner function"
139139
return fig, ax, surf
140140
end

0 commit comments

Comments
 (0)