Skip to content

Commit

Permalink
add to rich text test
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel committed Oct 16, 2024
1 parent 70f4ab7 commit ca0d40b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ReferenceTests/src/tests/figures_and_makielayout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,12 @@ end
xlabel = rich("X", subscript("label", fontsize = 25)),
ylabel = rich("Y", superscript("label")),
)
Label(f[1, 2], rich("Hi", rich("Hi", offset = (0.2, 0.2), color = :blue)), tellheight = false)
Label(f[1, 3], rich("X", superscript("super"), subscript("sub")), tellheight = false)
gl = GridLayout(f[1, 2], tellheight = false)
Label(gl[1, 1], rich("Hi", rich("Hi", offset = (0.2, 0.2), color = :blue)))
Label(gl[2, 1], rich("X", superscript("super"), subscript("sub")))
Label(gl[3, 1], rich(left_subsup("92", "238"), "U"))
Label(gl[4, 1], rich("SO", subsup("4", "2−")))
Label(gl[5, 1], rich("x", subsup("f", "g")))
f
end

Expand Down

0 comments on commit ca0d40b

Please sign in to comment.