@@ -14,7 +14,6 @@ import Makie:
1414 surface!,
1515 barplot!,
1616 GridPosition,
17- @L_str ,
1817 Reverse,
1918 ylims!,
2019 RGBAf,
@@ -28,7 +27,8 @@ import Makie:
2827 RGBf,
2928 Vec3f,
3029 Point3f,
31- NoShading
30+ NoShading,
31+ latexstring
3232
3333@doc raw """
3434 plot_wigner(
@@ -666,7 +666,7 @@ function _add_labels!(b::Bloch, ax)
666666 if ! isempty (b. xlabel) && ! isempty (b. xlabel[1 ])
667667 text! (
668668 ax,
669- L " \t extbf{x} " ,
669+ latexstring (b . xlabel[ 1 ]) ,
670670 position = Point3f (0 , - offset_scale * b. xlpos[1 ], 0 ),
671671 color = label_color,
672672 fontsize = label_size,
@@ -676,7 +676,7 @@ function _add_labels!(b::Bloch, ax)
676676 if length (b. xlabel) > 1 && ! isempty (b. xlabel[2 ])
677677 text! (
678678 ax,
679- L " \t extbf{-x} " ,
679+ latexstring (b . xlabel[ 2 ]) ,
680680 position = Point3f (0 , - offset_scale * b. xlpos[2 ], 0 ),
681681 color = label_color,
682682 fontsize = label_size,
@@ -686,7 +686,7 @@ function _add_labels!(b::Bloch, ax)
686686 if ! isempty (b. ylabel) && ! isempty (b. ylabel[1 ])
687687 text! (
688688 ax,
689- L " \t extbf{y} " ,
689+ latexstring (b . ylabel[ 1 ]) ,
690690 position = Point3f (offset_scale * b. ylpos[1 ], 0 , 0 ),
691691 color = label_color,
692692 fontsize = label_size,
@@ -696,7 +696,7 @@ function _add_labels!(b::Bloch, ax)
696696 if length (b. ylabel) > 1 && ! isempty (b. ylabel[2 ])
697697 text! (
698698 ax,
699- L " \t extbf{-y} " ,
699+ latexstring (b . ylabel[ 2 ]) ,
700700 position = Point3f (offset_scale * b. ylpos[2 ], 0 , 0 ),
701701 color = label_color,
702702 fontsize = label_size,
@@ -706,7 +706,7 @@ function _add_labels!(b::Bloch, ax)
706706 if ! isempty (b. zlabel) && ! isempty (b. zlabel[1 ])
707707 text! (
708708 ax,
709- L " \m athbf{|0 \r angle} " ,
709+ latexstring (b . zlabel[ 1 ]) ,
710710 position = Point3f (0 , 0 , offset_scale * b. zlpos[1 ]),
711711 color = label_color,
712712 fontsize = label_size,
@@ -716,7 +716,7 @@ function _add_labels!(b::Bloch, ax)
716716 if length (b. zlabel) > 1 && ! isempty (b. zlabel[2 ])
717717 text! (
718718 ax,
719- L " \m athbf{|1 \r angle} " ,
719+ latexstring (b . zlabel[ 2 ]) ,
720720 position = Point3f (0 , 0 , offset_scale * b. zlpos[2 ]),
721721 color = label_color,
722722 fontsize = label_size,
0 commit comments