multidimensional-intervall.tex 957 B

12345678910111213141516171819202122232425262728293031
  1. \documentclass{article}
  2. \usepackage[pdftex,active,tightpage]{preview}
  3. \setlength\PreviewBorder{2mm}
  4. \usepackage{tikz}
  5. \begin{document}
  6. \begin{preview}
  7. \begin{tikzpicture}
  8. % Draw axes
  9. \draw [<->,thick] (0,2.5) node (yaxis) [above] {$x_2$}
  10. |- (2.5,0) node (xaxis) [right] {$x_1$};
  11. % Draw two intersecting lines
  12. \draw[thick, dashed] (1,1) coordinate (a) -- (2,1) coordinate (b);
  13. \draw[thick, dashed] (a) -- (1,2) coordinate (d);
  14. \draw[thick] (d) -- (2,2) coordinate (c);
  15. \draw[thick] (b) -- (2,2);
  16. \fill[green!15] (a) -- (b) -- (c) -- (d) -- (a);
  17. % Draw lines indicating intersection with y and x axis. Here we
  18. % use the perpendicular coordinate system
  19. \draw[dotted] (yaxis |- a) node[left] {$a_2$}
  20. -| (xaxis -| a) node[below] {$a_1$};
  21. \draw[dotted] (yaxis |- c) node[left] {$b_2$}
  22. -| (xaxis -| c) node[below] {$b_1$};
  23. \end{tikzpicture}
  24. \end{preview}
  25. \end{document}