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

Add title, subtitle and footnotes option #556

Merged
merged 5 commits into from
Sep 12, 2024

Conversation

jkrumbiegel
Copy link
Member

This could be done before too by using Label manually on the figure resulting from draw, but this is much more convenient:

spec = pregrouped(
    fill(1:5, 6),
    fill(11:15, 6),
    [reshape(sin.(1:25), 5, 5) .+ i for i in 1:6],
    layout = 1:6 => nonnumeric) * visual(Heatmap)

draw(
    spec;
    figure = (;
        title = "Numbers in square configuration",
        subtitle = "Arbitrary data exhibits sinusoidal properties",
        titlealign = :left,
        footnotes = [
            rich(superscript("1"), "First footnote"),
            rich(superscript("2"), "Second footnote"),
        ]
    ),
    axis = (; width = 100, height = 100)
)
image

@jkrumbiegel jkrumbiegel linked an issue Sep 11, 2024 that may be closed by this pull request
@jkrumbiegel jkrumbiegel merged commit f117480 into master Sep 12, 2024
5 checks passed
@jkrumbiegel jkrumbiegel deleted the jk/title-subtitle-footnotes branch September 12, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Function to manage plot title?
1 participant