请教各位大佬,如何用tikz实现图中的迭代?

2021-02-19 23:21发布

请教各位大佬,如何用tikz实现图中的迭代? ![](https://wenda.latexstudio.net/data/attach/210219/QvJJtc8o.png)

请教各位大佬,如何用tikz实现图中的迭代? ![](https://wenda.latexstudio.net/data/attach/210219/QvJJtc8o.png)
3条回答
Banach spaces
2021-02-20 14:48
直接用tikz试了一下,没有计算坐标,用foreach循环,效果上看可以实现一部分,点你再自己绘制: ```csharp \documentclass{standalone} \usepackage{pgfplots} \usepackage{tikz} \usepackage{xcolor} \usepackage[active]{preview} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{10pt}% \begin{document} \newcommand{\diedai}[1]{\tikz{ \draw[thick,rotate=#1](-1,-1)rectangle(1,1); }} \begin{tikzpicture} \foreach \R/\A in {1/0,0.72/30,0.52/60,0.375/90,0.27/120,0.195/150,0.141/180,0.102/210,0.0745/240,0.054/270} { \node[scale=\R] at (0,0){\diedai{\A}}; } \end{tikzpicture} \end{document} ``` 这个效果: ![](https://wenda.latexstudio.net/data/attach/210220/WhHPqtXt.jpg)

一周热门 更多>