tikz 绘图的代码和效果

本文展示了如何使用TikZ库在 LaTeX 中绘制图形,包括plot曲线、设定距离、定义域和路径操作。通过具体的代码实例,详细解释了各个命令的功能和用法,帮助读者理解并掌握TikZ绘图技巧。
摘要由CSDN通过智能技术生成
\begin{frame}
  \frametitle{tikzpicture}
  \AppendLogo

    \begin{tikzpicture}[label distance = 2mm]

    \draw[->] (-1,0) -- (5,0) node[below,circle,draw,label distance = 1cm,label=right:This is x] {x};
    \draw[->] (0,-1) -- (0,4) node[left,rectangle,draw] {y};
    \draw[color = green,line width = 3mm] (0,0) -- plot coordinates {(1,0)  (1,1)  (0,1)} -- cycle;
    \draw[color = black,thick,rotate = 45] (3,3) circle (1cm and 2cm);
    \draw[step=0.25cm,color = blue] (1,1) grid (3,3);
    \tikzstyle{my style}=[yellow,dashed,thick];
    \draw[style = my style] (2,0) parabola (3,3);
    \draw[style = my style] (1,0) arc (0:90:1cm);

    \begin{scope}[dashed]
    \draw (2,2) circle (2cm);
    \draw (2,2) circle (1.5cm);
    \draw (2,2) circle (1cm);
    \draw (2,2) circle (0.5cm);
    \end{scope}
    \draw (5,4) node [circle,fill=gray!20,label = right:3,label=above:12,label=below:6,lab
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值