summaryrefslogtreecommitdiff
path: root/info/visualpstricks/Source/grid.tex
blob: 662493f5b583219ac12b2f30bbf0344e68db9cf6 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
%%\section{Syntaxe}
%
%\subsection{Quadrillage avec psgrid}
\SbSSCT{Quadrillage avec psgrid}{Grids}
%\BS{psgrid}(x0,y0)(x1,y1)(x2,y2)

\psset{unit=1cm,linewidth=1pt}

\BSS{psgrid}\rnode{AA}{(2,1)}\rnode{BB}{(0,0)}\rnode{CC}{(4,3)}

\begin{center}
\begin{pspicture}(-.5,-.5)(4.5,3.5)
\psgrid(2,1)(0,0)(4,3)
\dotnode[dotstyle=*](2,1){A}
\dotnode[dotstyle=*](0,0){B}
\dotnode[dotstyle=*](4,3){C}
\ncarc{->}{AA}{A}
\ncbar[angle=-90]{->}{BB}{B}
\ncline{->}{CC}{C}
\end{pspicture}
\end{center}


\begin{tabular}{|c|c|c|c|c|}  \hline
\multicolumn{5}{|c|}{  \TFRGB{Quadrillage principal}{Main grid}} \\ \hline
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridwidth=2pt](2,2)
\end{pspicture}
&
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[griddots=3](2,2)
\end{pspicture}
&
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridcolor=red](2,2)
\end{pspicture}
&
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridlabels=5pt](2,2)
\end{pspicture}
&
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[gridlabelcolor=red](2,2)
\end{pspicture}



\\ \hline
\RDD{gridwidth}= 2pt & \RDD{griddots}=3 & \RDD{gridcolor}=red & \RDD{gridlabels}=5pt & \RDD{gridlabelcolor}=red  \\ \hline
{\blue \dft{} : .8pt } & {\blue \dft{} : 0}  & {\blue \dft{} : black} & {\blue \dft{}: 10pt} & {\blue \dft{} : black}\\ \hline
\end{tabular}


\TFRGB{Exemple}{Example} : 


\begin{tabular}{|c|} \hline  
\begin{pspicture}(-.5,-.5)(6.5,2.5)
\psgrid[gridwidth=4pt,gridcolor=red,griddots=3,gridlabelcolor=blue,gridlabels=15pt](6,2)
\end{pspicture}
\\ \hline  
\BS{psgrid}[{\red gridwidth=4pt,gridcolor=red,griddots=3,gridlabelcolor=blue,gridlabels=15pt}](6,2)
\\ \hline 
\end{tabular} 

\smallskip

\begin{tabular}{|l|l|l|l|}  \hline
\multicolumn{4}{|c|}{ \TFRGB{Quadrillage secondaire}{secondary grid}} \\ \hline
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[subgriddiv=3](2,2)
\end{pspicture}
&
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[subgridwidth=1pt](2,2)
\end{pspicture}
&
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[subgridcolor=red](2,2)
\end{pspicture}
&
\begin{pspicture}(-.5,-.5)(2.5,2.5)
\psgrid[subgriddots=3](2,2)
\end{pspicture}\\ \hline
\RDD{subgriddiv}=3 & \RDD{subgridwidth}=1pt & \RDD{subgridcolor}=red & \RDD{subgriddots}=3 \\ \hline
{\blue  \dft{} : 5 }& {\blue  \dft{} : .4pt } & {\blue \dft{} : gray} & {\blue \dft{}: 0 }\\ \hline

\end{tabular}


\smallskip
\begin{tabular}{|c|} \hline  
\begin{pspicture}(-.5,-.5)(6.5,2.5)
\psgrid[subgriddiv=2,subgridwidth=2pt,subgridcolor=red,subgriddots=4](6,2)
\end{pspicture}
\\ \hline  
\BS{psgrid}[{\red subgriddiv=2,subgridwidth=1pt,subgridcolor=red,subgriddots=3}](6,3)
\\ \hline 
\end{tabular}