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

xshift/yshift do not apply to anchors when set layers is used #487

Open
schtandard opened this issue Jul 31, 2024 · 0 comments
Open

xshift/yshift do not apply to anchors when set layers is used #487

schtandard opened this issue Jul 31, 2024 · 0 comments
Labels

Comments

@schtandard
Copy link

When using set layers in a tikzpicture and shifting an axis using xshift/yshift, that shift is not applied to the axis' anchors.

\documentclass{article}

\usepackage{pgfplots}
\pgfplotsset{compat=1.18}

\begin{document}

\begin{tikzpicture}
  \pgfplotsset{set layers}
  \begin{axis}[name=ax, xshift=1cm, yshift=0.5cm]
    \addplot+ {x^2};
  \end{axis}
  \draw[red] (ax.south west) rectangle (ax.north east);
\end{tikzpicture}

\end{document}

image

I believe this is a bug.

(related tex.sx question)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants