zoukankan      html  css  js  c++  java
  • 平行四边形TikZ作图

     1  %!TEX program = pdflatex
     2 documentclass[varwidth=true, border=2pt]{standalone}
     3 
     4 usepackage{tikz}
     5 usepackage{mathpazo}
     6 
     7 usetikzlibrary{arrows}
     8 usetikzlibrary{decorations.markings}
     9 
    10 egin{document}
    11 egin{tikzpicture}[x=.5cm,y=.5cm]
    12 draw [<->,>=stealth'] (0,8) node [label = left:{$y$}]{} -- (0,0) -- (12,0) node[label = below:{$x$}]{};
    13     grid[xstep=.5cm, ystep=.5cm] (4,4);
    14     draw (0,0) -- (5*1.414,0) -- (5+5*1.414,5) -- (5,5) -- cycle;
    15     draw[fill=green!10] (0,0) -- (5*1.414,0) -- (5+5*1.414,5) -- (5,5) -- cycle;
    16     draw (0,0)node[label = below:{$(0,0)$}]{};
    17     draw (5*1.414,0)node[label = below:{$(sqrt{2},0)$}]{};
    18     draw (5+5*1.414,5)node[label = above:{$(sqrt{2}+1,1)$}]{};
    19     draw (5,5)node[label = above:{$(1,1)$}]{};
    20   end{tikzpicture}
    21 end{document}
    Parallelogram Drawing
  • 相关阅读:
    Python之函数进阶
    Python之函数初识
    Python之 文件操作
    数据类型补充
    Python 基础三
    寒假学习第五天
    寒假学习第四天
    寒假学习第三天
    寒假学习第二天
    寒假学习第一天
  • 原文地址:https://www.cnblogs.com/wangshixi12/p/5072258.html
Copyright © 2011-2022 走看看