Skip to content

circle with snake decoration is not centered #1430

@Firestar-Reimu

Description

@Firestar-Reimu

Brief outline of the bug

Image

Minimal working example (MWE)

\documentclass[tikz]{standalone}
\usepackage{amsmath}

\usetikzlibrary{arrows.meta,decorations.pathmorphing}

\begin{document}
\begin{tikzpicture}[>=Stealth]
\draw[->,thick] (-3.5,0) -- (3.5,0) node[right] {$x$};
\draw[->,thick] (0,-3.5) -- (0,3.5) node[above] {$y$};
\draw[gray,very thin] (-3,-3) grid (3,3);
\draw[dashed,red] (0,0) circle (1.5cm);
\draw[red,thick,decorate,decoration={snake,amplitude=1pt,segment length=1cm}] (0,0) circle (1.5cm);
\end{tikzpicture}
\end{document}

you can change the amplitude or segment length, but overall the snake path is slightly higher than the circle

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions