正如您在与水平线的交点处看到的,“椭圆”路径太尖锐了。我该如何解决这个问题?
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}[scale=0.3]
\draw[smooth,pattern=north east lines] (0,0) to[out=75,in=285] (0,7.5) to[out=255,in=105] (0,0)-- cycle;
\draw (0,-7.5) to[out=105,in=255] (0,0);
\draw (0,7.5)--(20,7.5);
\draw (0,-7.5)--(20,-7.5);
\end{tikzpicture}
\end{document}
答案1
不确定您到底想要什么,但只需调整in
和out
角度即可。以下是它们的20
变化程度和thick
线条样式:
代码:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}[scale=0.3]
\draw[smooth,pattern=north east lines,thick] (0,0) to[out=55,in=305] (0,7.5) to[out=235,in=125] (0,0)-- cycle;
\draw [thick] (0,-7.5) to[out=125,in=235] (0,0);
\draw (0,7.5)--(20,7.5);
\draw (0,-7.5)--(20,-7.5);
\end{tikzpicture}
\end{document}