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

Support for sgtitle #1129

Open
ThexXTURBOXx opened this issue Oct 18, 2023 · 0 comments
Open

Support for sgtitle #1129

ThexXTURBOXx opened this issue Oct 18, 2023 · 0 comments

Comments

@ThexXTURBOXx
Copy link

When using a tiled layout, the super-title from the sgtitle command is not yet translated to TikZ.
One solution to make this work in TikZ is to manually add the following snippet at the end of the tikzpicture:

\node[above,font=\large\bfseries] at (current bounding box.north) {\shortstack{Some title\\even with multiple lines}};

Of course, there are more possibilities to achieve this, but that seems to work rather well, with a small caveat:
The title is centered with respect to the entire figure and not only the axis environments (if there is a legend to the very right of all the subplots, e.g., using the approach from #1128, the super-title will also be affected).
There are ways to work around this, but they apparently need the positioning tikz-library to work.

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

No branches or pull requests

1 participant