coordinate-system-2.tex 1.0 KB

1234567891011121314151617181920212223242526272829
  1. \begin{tikzpicture}
  2. \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
  3. \tkzSetUpLine[line width=1]
  4. \tkzDefPoints{0/0/O, 1/0/X, 0/1/Y, 2/1/P}
  5. \tkzDrawLine[add=3 and 2](O,X)
  6. \tkzLabelLine[below,pos=3](O,X){$g_1$}
  7. \tkzLabelLine[right,pos=3](O,Y){$g_2$}
  8. \tkzDrawLine[add=3 and 2](O,Y)
  9. \tkzDefLine[orthogonal=through P,/tikz/overlay](O,X) \tkzGetPoint{helper}
  10. \tkzInterLL(O,X)(P,helper) \tkzGetPoint{xp}
  11. \draw [decorate,decoration={brace,amplitude=4pt,mirror}]
  12. (O) -- (xp) node [black,midway,xshift=0cm, yshift=-0.3cm]
  13. {\footnotesize $x_P$};
  14. \tkzDefLine[orthogonal=through P,/tikz/overlay](O,Y) \tkzGetPoint{helper}
  15. \tkzInterLL(O,Y)(P,helper) \tkzGetPoint{yp}
  16. \draw [decorate,decoration={brace,amplitude=4pt}]
  17. (O) -- (yp) node [black,midway,xshift=-0.4cm]
  18. {\footnotesize $y_P$};
  19. \tkzDrawPolygon(O,xp,P,yp)
  20. \tkzLabelPoint[above right](P){$P$}
  21. \tkzLabelPoint[below left](O){$0$}
  22. \node at ($(-2,2)$){$X$};
  23. \tkzDrawPoints(P)
  24. \end{tikzpicture}