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

\draw circle[radius=rand]; gives ellipses #756

Closed
TorbjornT opened this issue Oct 18, 2019 · 1 comment
Closed

\draw circle[radius=rand]; gives ellipses #756

TorbjornT opened this issue Oct 18, 2019 · 1 comment
Milestone

Comments

@TorbjornT
Copy link
Contributor

This was reported in https://tex.stackexchange.com/questions/389920/tikz-drawviolet-0-0-circle-rand2-is-an-oval#comment1296666_512741, and as requested by Henri I'm making a bug report.

My guess was that because radius sets x radius and y radius separately, they get different random numbers, and hence you get an ellipse with \draw circle[radius=rand];.

\documentclass[tikz]{standalone}    
\begin{document}
\begin{tikzpicture}
\draw[help lines,step=0.5] (-1,-1) grid (1,1);
\foreach \x in {0,...,10}
   \draw[violet] circle[radius=rand];

\node [fill=white,above right] at (-1,-1) {\tiny\pgfversion};
\end{tikzpicture}
\end{document}

image

hmenke added a commit to hmenke/pgf that referenced this issue Oct 18, 2019
@hmenke
Copy link
Member

hmenke commented Oct 18, 2019

This is actually a combination of two race conditions. I've fixed it on my own branch but I'll wait for the CI before merging.

hmenke added a commit that referenced this issue Oct 23, 2019
@hmenke hmenke closed this as completed Oct 23, 2019
@hmenke hmenke added this to the 3.1.5 milestone Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants