summaryrefslogtreecommitdiff
path: root/info/examples/PSTricks_en/23-06-3.ltx
blob: 5be317f888b0fc3bad0267beab7836b20622c523 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
%% 
%%  A DANTE-Edition example
%% 
%%  Example 23-06-3 on page 393.
%% 
%%  Copyright (C) 2011 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
\documentclass[]{article}
\pagestyle{empty}
\setlength\textwidth{375.57637pt}
\setlength\parindent{0pt}

\usepackage{pst-plot,pst-solides3d}

\begin{document}
\begin{pspicture}(-2,-3)(2.5,3)
\psaxes[yAxis=false](-2,-2)(2,2)
\psset{viewpoint=0 0 5,Decran=2.5}
\psSolid[object=grille,base=-2 2 -2 2]
\psSolid[object=vecteur,args=0 0 0  2 2 0,linecolor=red,linewidth=2pt]
\axesIIID(3,3,3)\pnode(1,-1){B}\pnode(1,1){A}
\end{pspicture}
\qquad
\begin{pspicture}(-0.5,-3)(5,3)
\psaxes[yAxis=false](0,-2)(5,2)
\psset{viewpoint=5 0 5,Decran=2.5,RotX=-90}
\psline[linewidth=1pt](0,2)(0,-2)
\psline[linewidth=1.5pt,linecolor=red]{->}(0,0)(0,-2)
\psdot(5,0)\uput[0](5,0){$V$}
\psline[tbarsize=5mm 5]{|<->|}(0,1.5)(5,1.5)\rput*(2.5,1.5){$V$}
\psline[linestyle=dashed](0,2)(5,0)\psline[linestyle=dashed](0,-2)(5,0)
\psline[tbarsize=5mm 5]{|<->|}(2.5,-1.5)(5,-1.5)\rput*(3.75,-1.5){$D$}
\psline[linewidth=1.5pt](2.5,1)(2.5,-1)
\psline[linewidth=1.5pt,linecolor=red]{->}(2.5,0)(2.5,-1)
\psline{->}(2.5,0)(3.5,0)\uput[0](3.5,0){$z$}
\uput[-90](0,-2.5){original}\uput[-90](2.5,-2.5){image}
\psline[linestyle=dotted](A)(2.5,1)
\psline[linestyle=dotted](B)(2.5,-1)
\end{pspicture}
\end{document}