You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The metropolis theme loads the pgfplotsthemetol package which essentially sets \AtEndPreamble{ \pgfplotsset{compat=1.9} } and thereby overrides other settings of the PGF key compat.
The problem is that compat=1.9 is relatively old and therefore some functions are not activated such as using axis coordinates inside the axis environment when using standard TikZ commands such as \draw or \fill without the need to prexis the coordinates with axis cs:.
A solution to this is to set \AtEndPreamble{ \pgfplotsset{compat=1.18} } instead of \pgfplotsset{compat=1.18} in the preamble, but it is not obvious to the user why they should do that.
Uncommenting %\AtEndPreamble{ \pgfplotsset{compat=1.18} } fixes the problem and the red circle is placed in the middle of the plot instead of somewhere at the origin.
A simple solution would be to just avoid setting compat via the pgfplotsthemetol package.
The text was updated successfully, but these errors were encountered:
The
metropolis
theme loads thepgfplotsthemetol
package which essentially sets\AtEndPreamble{ \pgfplotsset{compat=1.9} }
and thereby overrides other settings of the PGF keycompat
.The problem is that
compat=1.9
is relatively old and therefore some functions are not activated such as using axis coordinates inside theaxis
environment when using standard TikZ commands such as\draw
or\fill
without the need to prexis the coordinates withaxis cs:
.A solution to this is to set
\AtEndPreamble{ \pgfplotsset{compat=1.18} }
instead of\pgfplotsset{compat=1.18}
in the preamble, but it is not obvious to the user why they should do that.Consider the following MWE:
Uncommenting
%\AtEndPreamble{ \pgfplotsset{compat=1.18} }
fixes the problem and the red circle is placed in the middle of the plot instead of somewhere at the origin.A simple solution would be to just avoid setting
compat
via thepgfplotsthemetol
package.The text was updated successfully, but these errors were encountered: