| 1 |
\sseqset{ |
| 2 |
distance label/.sseq style = {orange,{<[width = 4pt]}-}, |
| 3 |
description/.sseq style = {black, align = center}, |
| 4 |
title style={yshift=35pt,font=\Large} |
| 5 |
} |
| 6 |
\catcode`\| = 12 % | is active to be verbatim, but we need to use it here for our arrowhead specification. |
| 7 |
% |
| 8 |
\begin{sseqpage}[ grid = chess, |
| 9 |
x range = {0}{5}, y range = {0}{5}, math nodes = false, |
| 10 |
x axis clip padding = 0.15cm, y axis clip padding = 0.15cm, |
| 11 |
right clip padding = 0.2cm, top clip padding = 0.2cm, axes gap = 25pt, |
| 12 |
title = {Axis type border layout} |
| 13 |
] |
| 14 |
\begin{scope}[background] |
| 15 |
\sseq@savedpaths@add{\color{red}\pgfsetpath\sseq@theclippath\pgfusepath{draw}} |
| 16 |
\path (\sseq@xmin-3,\sseq@ymin-3) -- (\sseq@xmax+3,\sseq@ymax+3); |
| 17 |
\end{scope} |
| 18 |
|
| 19 |
\begin{scope}[background,|-|,blue] |
| 20 |
% axis clip padding |
| 21 |
\draw[shift = {(1,-\sseq@xaxisgap)}] (0,0)--(0,\sseq@xclip@axisgap-0); |
| 22 |
\draw[distance label,shift = {(1,-\sseq@xaxisgap+\sseq@xclip@axisgap/2)}] (0,0) .. controls (0.5,0) .. (0.5,-1.5) |
| 23 |
node[description, below] {x axis\\ clip padding}; |
| 24 |
% |
| 25 |
\draw[shift = {(-\sseq@yaxisgap,1)}] (0,0)--(\sseq@yclip@axisgap,0); |
| 26 |
\draw[distance label,shift = {(-\sseq@yaxisgap+\sseq@yclip@axisgap/2,1)}] (0,0) .. controls (0,0.3) .. (-0.7,0.3) |
| 27 |
node[description, left] {y axis\\ clip padding}; |
| 28 |
|
| 29 |
|
| 30 |
% border clip padding |
| 31 |
\draw[shift = {(\sseq@xmax cm + \sseq@xaxis@[email protected],\sseq@ymax - 1)}] (-0.02cm,0)--(\sseq@clip@padding@right,0); |
| 32 |
\draw[distance label, shift = {(\sseq@xmax cm + \sseq@xaxis@end@extend+\sseq@clip@padding@right/2,\sseq@ymax-1)}] (0,0) .. controls (0,-0.7) ..(0.7,-0.7) |
| 33 |
node[description, right] {right clip\\ padding}; |
| 34 |
% |
| 35 |
\draw[shift = {(\sseq@xmax - 1,\sseq@ymax cm+\sseq@yaxis@end@extend)}] (0,0)--(0,\sseq@clip@padding@top); |
| 36 |
\draw[distance label, shift = {(\sseq@xmax -1,\sseq@ymax cm+\sseq@yaxis@end@extend+\sseq@clip@padding@top/2)}] (0,0) .. controls (0.2,0) .. (0.2,0.3) |
| 37 |
node[description, above] {top clip\\ padding}; |
| 38 |
|
| 39 |
% axis tail |
| 40 |
\draw[shift = {(\sseq@xmin-\[email protected],\sseq@ymin-\sseq@xaxisgap+0.1cm)}] (0,0) -- (-\sseq@xaxis@tail, 0); |
| 41 |
\draw[distance label,shift = {(\sseq@xmin-\[email protected]\sseq@xaxis@tail/2,\sseq@ymin-\sseq@xaxisgap+0.1cm)}] (0,0) .. controls (0,0.5) .. (-1,0.5) |
| 42 |
node[description, left]{x axis\\ tail}; |
| 43 |
% |
| 44 |
\draw[shift = {(\sseq@xmin-\sseq@yaxisgap+0.1cm,\sseq@ymin-\[email protected])}] (0,0) -- (0, -\sseq@yaxis@tail); |
| 45 |
\draw[distance label,shift = {(\sseq@xmin-\sseq@yaxisgap+0.1cm,\sseq@ymin-\[email protected]\sseq@yaxis@tail/2)}] (0,0) .. controls (0.5,0) .. (0.5,-1) |
| 46 |
node[description, below]{y axis\\ tail}; |
| 47 |
|
| 48 |
% extend end axis |
| 49 |
\draw[shift = {(\sseq@xmax,\sseq@ymin-\[email protected])}] (0,0)--(\sseq@xaxis@end@extend,0); |
| 50 |
\draw[distance label,shift = {(\sseq@xmax cm+\sseq@xaxis@end@extend/2,\sseq@ymin-\[email protected])}] (0,0) -- (0,-0.8) |
| 51 |
node[description, below] {x axis\\ extend end}; |
| 52 |
% |
| 53 |
\draw[shift = {(\sseq@xmin cm-\[email protected],\sseq@ymax)}] (0,0)--(0,\sseq@yaxis@end@extend); |
| 54 |
\draw[distance label,shift = {(\sseq@xmin cm- \[email protected],\sseq@ymax cm+\sseq@yaxis@end@extend/2)}] (0,0) -- (-0.6,0) |
| 55 |
node[description, left] {y axis\\ extend end}; |
| 56 |
|
| 57 |
|
| 58 |
% tick gap |
| 59 |
\draw[shift = {(\sseq@xmin+\sseq@xmax/2+0.2,-0.5-\sseq@xaxisgap)}] (0,0)--(0,-\sseq@xlabelgap); |
| 60 |
\draw[distance label,shift = {(\sseq@xmin+\sseq@xmax/2+0.2,-\sseq@xlabelgap/2-\sseq@xaxisgap)}] (0,0) .. controls (0.5 ,0) .. (0.5,-0.8) |
| 61 |
node[below,black]{x tick gap}; |
| 62 |
% |
| 63 |
\draw[shift = {(-0.5-\sseq@yaxisgap,\sseq@ymin+\sseq@ymax/2+0.2)}] (0,0)--(-\sseq@ylabelgap,0); |
| 64 |
\draw[distance label,shift = {(-\sseq@yaxisgap -\sseq@ylabelgap/2,\sseq@ymin+\sseq@ymax/2+0.2)}] (0,0) .. controls (0, -0.3) .. (-0.5,-0.3) |
| 65 |
node[left,black]{y tick gap}; |
| 66 |
|
| 67 |
% axis gap |
| 68 |
\draw[shift = {(\sseq@xmax cm+0.17cm,\sseq@ymin cm-\sseq@xaxisgap+0.02cm)}] (0,0) -- (0, \sseq@xaxisgap); |
| 69 |
\draw[distance label,shift = {(\sseq@xmax cm+0.17cm,\sseq@ymin cm-\sseq@xaxisgap/2+0.02cm)}](0,0) .. controls (2,0) .. (2,0.5) |
| 70 |
node[above,description]{x axis gap}; |
| 71 |
% |
| 72 |
\draw[shift = {(\sseq@xmin cm-\sseq@yaxisgap+0.02cm,\sseq@ymax cm+0.17cm)}] (0,0) -- (\sseq@yaxisgap,0); |
| 73 |
\draw[distance label,shift = {(\sseq@xmin cm-\sseq@yaxisgap/2+0.02cm,\sseq@ymax cm+0.17cm)}](0,0)--(0,1) %.. controls (0,1) .. (0.5,1); |
| 74 |
node[above,description]{y axis gap}; |
| 75 |
\end{scope} |
| 76 |
|
| 77 |
\class(0,0) |
| 78 |
\class(5,0) |
| 79 |
\class(0,5) |
| 80 |
\end{sseqpage} |
| 81 |
|
| 82 |
\vskip20pt |
| 83 |
|
| 84 |
\begin{sseqpage}[ grid = chess, axes type=frame, |
| 85 |
title = {Axes type frame layout}, |
| 86 |
x range = {0}{5}, y range = {0}{5}, math nodes = false, |
| 87 |
x axis clip padding = 0.15cm, y axis clip padding = 0.15cm, |
| 88 |
right clip padding = 0.2cm, top clip padding = 1cm, axes gap = 25pt |
| 89 |
] |
| 90 |
\begin{scope}[background] |
| 91 |
\sseq@savedpaths@add{\color{red}\pgfsetpath\sseq@theclippath\pgfusepath{draw}} |
| 92 |
\path (\sseq@xmin-3,\sseq@ymin-3) -- (\sseq@xmax+3,\sseq@ymax+3); |
| 93 |
\end{scope} |
| 94 |
|
| 95 |
\begin{scope}[background,|-|,blue] |
| 96 |
% axis clip padding |
| 97 |
\draw[shift = {(\sseq@xmax+0.5,-\sseq@xaxisgap)}] (0,0)--(0,\sseq@xclip@axisgap); |
| 98 |
\draw[shift = {(-\sseq@yaxisgap,\sseq@ymax+0.5)}] (0,0)--(\sseq@yclip@axisgap,0); |
| 99 |
\draw[distance label,shift = {(\sseq@xmax+0.5,-\sseq@xaxisgap+\sseq@xclip@axisgap/2)}] (0,0) .. controls (1,0) .. (1,-0.3) |
| 100 |
node[description, below] {x axis\\ clip padding}; |
| 101 |
\draw[distance label,shift = {(-\sseq@yaxisgap+\sseq@yclip@axisgap/2,\sseq@ymax+0.5)}] (0,0) .. controls (0,0.5) .. (-0.5,0.5) |
| 102 |
node[description, left] {y axis\\ clip padding}; |
| 103 |
|
| 104 |
\draw[shift = {(\sseq@xmax+0.5,\sseq@ymax cm+\sseq@xaxisgap)}] (0,0)--(0,-\sseq@xclip@axisgap); |
| 105 |
\draw[distance label,shift = {(\sseq@xmax+0.5,\sseq@ymax cm+\sseq@xaxisgap-\sseq@xclip@axisgap/2)}] (0,0) .. controls (-0.5,0) .. (-0.5,0.2) |
| 106 |
node[description, above] {x axis\\ clip padding}; |
| 107 |
|
| 108 |
|
| 109 |
\draw[shift = {(\sseq@xmax cm +\sseq@yaxisgap,\sseq@ymax +0.5)}] (-\sseq@yclip@axisgap,0)--(0,0); |
| 110 |
\draw[distance label,shift = {(\sseq@xmax cm +\sseq@yaxisgap-\sseq@yclip@axisgap/2,\sseq@ymax +0.5)}] (0,0) .. controls (0,-0.5) .. (0.2,-0.5) |
| 111 |
node[description, right] {y axis\\ clip padding}; |
| 112 |
|
| 113 |
|
| 114 |
% tick gap |
| 115 |
\draw[shift = {(\sseq@xmin+\sseq@xmax/2+0.2,-0.5-\sseq@xaxisgap)}] (0,0)--(0,-\sseq@xlabelgap); |
| 116 |
\draw[shift = {(-0.5-\sseq@yaxisgap,\sseq@ymin+\sseq@ymax/2+0.2)}] (0,0)--(-\sseq@ylabelgap,0); |
| 117 |
\draw[distance label,shift = {(\sseq@xmin+\sseq@xmax/2+0.2,-\sseq@xlabelgap/2-\sseq@xaxisgap)}] (0,0) .. controls (0.5 ,0) .. (0.5,-0.8) |
| 118 |
node[below,black]{x tick gap}; |
| 119 |
\draw[distance label,shift = {(-\sseq@yaxisgap -\sseq@ylabelgap/2,\sseq@ymin+\sseq@ymax/2+0.2)}] (0,0) .. controls (0, -0.3) .. (-0.5,-0.7) |
| 120 |
node[left,black]{y tick gap}; |
| 121 |
|
| 122 |
% axis gap |
| 123 |
\draw[shift = {(\sseq@xmax cm+0.17cm,\sseq@ymin cm-\sseq@xaxisgap+0.02cm)}] (0,0) -- (0, \sseq@xaxisgap); |
| 124 |
\draw[shift = {(\sseq@xmin cm-\sseq@yaxisgap+0.02cm,\sseq@ymax cm+0.17cm)}] (0,0) -- (\sseq@yaxisgap,0); |
| 125 |
\draw[distance label,shift = {(\sseq@xmax cm+0.17cm,\sseq@ymin cm-\sseq@xaxisgap/2+0.02cm)}](0,0) .. controls (2,0) .. (2,0.5) |
| 126 |
node[above,description]{x axis gap}; |
| 127 |
\draw[distance label,shift = {(\sseq@xmin cm-\sseq@yaxisgap/2+0.02cm,\sseq@ymax cm+0.17cm)}](0,0)--(0,1) %.. controls (0,1) .. (0.5,1); |
| 128 |
node[above,description]{y axis gap}; |
| 129 |
|
| 130 |
\draw[shift = {(\sseq@xmax cm-0.02cm,\sseq@ymin cm+0.17cm)}] (0,0) -- (\sseq@yaxisgap,0); |
| 131 |
\draw[distance label,shift = {(\sseq@xmax cm-0.02cm+\sseq@yaxisgap/2,\sseq@ymin cm+0.17cm)}](0,0) .. controls (0,1) .. (0.8,1) |
| 132 |
node[right,description]{y axis gap}; |
| 133 |
\draw[shift = {(\sseq@xmin cm+0.17cm,\sseq@ymax cm-0.02cm)}] (0,0) -- (0,\sseq@xaxisgap); |
| 134 |
\draw[distance label,shift = {(\sseq@xmin cm+0.17cm,\sseq@ymax cm-0.02cm+\sseq@xaxisgap/2)}](0,0) .. controls (1.3,0) .. (1.3,0.75) |
| 135 |
node[above,description]{x axis gap}; |
| 136 |
\end{scope} |
| 137 |
|
| 138 |
\class(0,0) |
| 139 |
\class(5,0) |
| 140 |
\class(0,5) |
| 141 |
\end{sseqpage} |
| 142 |
|
| 143 |
|
| 144 |
\begin{sseqpage}[ grid = chess, axes type=center, |
| 145 |
title = {Axes type center layout}, |
| 146 |
x range = {-3}{3}, y range = {-3}{3}, math nodes = false, |
| 147 |
x axis clip padding = 0.15cm, y axis clip padding = 0.15cm, |
| 148 |
right clip padding = 0.2cm, top clip padding = 0.2cm, |
| 149 |
left clip padding = 0.2cm, bottom clip padding = 0.2cm %axes gap = 25pt |
| 150 |
] |
| 151 |
\begin{scope}[background] |
| 152 |
\sseq@savedpaths@add{\color{red}\pgfsetpath\sseq@theclippath\pgfusepath{draw}} |
| 153 |
\path (\sseq@xmin-3,\sseq@ymin-3) -- (\sseq@xmax+3,\sseq@ymax+3); |
| 154 |
\end{scope} |
| 155 |
|
| 156 |
\begin{scope}[background,|-|,blue] |
| 157 |
|
| 158 |
% tick gap |
| 159 |
\draw[shift = {(\[email protected],-\[email protected])}] (0,0)--(0,-\sseq@xlabelgap); |
| 160 |
\draw[distance label,shift = {(\[email protected],-\[email protected]\sseq@xlabelgap/2)}] (0,0) -- (-0.5,0) |
| 161 |
node[left,black]{x tick gap}; |
| 162 |
|
| 163 |
\draw[shift = {(-0.02cm-\sseq@yaxisgap,\[email protected])}] (0,0)--(-\sseq@ylabelgap,0); |
| 164 |
\draw[distance label,shift = {(-0.02cm-\sseq@yaxisgap -\sseq@ylabelgap/2,\[email protected])}] (0,0) -- (0,-0.6) |
| 165 |
node[below,black]{y tick gap}; |
| 166 |
|
| 167 |
% border clip padding |
| 168 |
\draw[shift = {(\sseq@xmin cm - \sseq@xaxis@start@extend+0.02cm,\sseq@ymin +1)}] (0,0)--(-\sseq@clip@padding@left,0); |
| 169 |
\draw[distance label, shift = {(\sseq@xmin cm - \sseq@xaxis@start@extend-\sseq@clip@padding@left/2,\sseq@ymin +1)}] (0,0) .. controls (0,-0.5) ..(-0.5,-0.5) |
| 170 |
node[description, left] {left clip\\ padding}; |
| 171 |
% |
| 172 |
\draw[shift = {(\sseq@xmax cm + \sseq@xaxis@[email protected],\sseq@ymin +1)}] (0,0)--(\sseq@clip@padding@right,0); |
| 173 |
\draw[distance label, shift = {(\sseq@xmax cm + \sseq@xaxis@end@extend+\sseq@clip@padding@right/2,\sseq@ymin +1)}] (0,0) .. controls (0,-0.5) ..(0.5,-0.5) |
| 174 |
node[description, right] {right clip\\ padding}; |
| 175 |
% |
| 176 |
\draw[shift = {(\sseq@xmin+1 ,\sseq@ymax cm+\sseq@yaxis@[email protected])}] (0,0)--(0,\sseq@clip@padding@top); |
| 177 |
\draw[distance label, shift = {(\sseq@xmin+1,\sseq@ymax cm -0.02cm+\sseq@yaxis@end@extend+\sseq@clip@padding@top/2)}] (0,0) .. controls (-0.9,0)..(-0.9,0.3) |
| 178 |
node[description, above] {top clip\\ padding}; |
| 179 |
% |
| 180 |
\draw[shift = {(\sseq@xmin +1 ,\sseq@ymin cm-\sseq@yaxis@start@extend+0.02cm)}] (0,0)--(0,-\sseq@clip@padding@bottom); |
| 181 |
\draw[distance label, shift = {(\sseq@xmin +1 ,\sseq@ymin cm +0.02cm - \sseq@yaxis@start@extend-\sseq@clip@padding@bottom/2)}] (0,0) .. controls (-0.9,0)..(-0.9,-0.4) |
| 182 |
node[description, below] {bottom clip\\ padding}; |
| 183 |
|
| 184 |
% extend axis |
| 185 |
\draw[shift = {(\sseq@xmax,-\sseq@xaxisgap+0.1cm)}] (0,0)--(\sseq@xaxis@end@extend,0); |
| 186 |
\draw[distance label,shift = {(\sseq@xmax cm+\sseq@xaxis@end@extend/2,-\sseq@xaxisgap+0.1cm)}] (0,0) .. controls (0,0.5) .. (0.9,0.5) |
| 187 |
node[description, right] {x axis\\ extend end}; |
| 188 |
% |
| 189 |
\draw[shift = {(-\sseq@yaxisgap+0.1cm,\sseq@ymax)}] (0,0)--(0,\sseq@yaxis@end@extend); |
| 190 |
\draw[distance label,shift = {(-\sseq@yaxisgap+0.1cm,\sseq@ymax cm+\sseq@yaxis@end@extend/2)}] (0,0) .. controls (0.4,0)..(0.4,0.7) |
| 191 |
node[description, above] {y axis\\ extend end}; |
| 192 |
% |
| 193 |
\draw[shift = {(\sseq@xmin,-\sseq@xaxisgap+0.1cm)}] (0,0)--(-\sseq@xaxis@start@extend,0); |
| 194 |
\draw[distance label,shift = {(\sseq@xmin cm-\sseq@xaxis@start@extend/2,-\sseq@xaxisgap+0.1cm)}] (0,0) .. controls (0,0.5) .. (-0.7,0.5) |
| 195 |
node[description, left] {x axis\\ extend start}; |
| 196 |
% |
| 197 |
\draw[shift = {(-\sseq@yaxisgap+0.1cm,\sseq@ymin)}] (0,0)--(0,-\sseq@yaxis@start@extend); |
| 198 |
\draw[distance label,shift = {(-\sseq@yaxisgap+0.1cm,\sseq@ymin cm-\sseq@yaxis@start@extend/2)}] (0,0) .. controls (2,0)..(2,-0.7) |
| 199 |
node[description, below] {y axis\\ extend start}; |
| 200 |
\end{scope} |
| 201 |
|
| 202 |
\class(0,0) |
| 203 |
\class(5,0) |
| 204 |
\class(0,5) |
| 205 |
\end{sseqpage} |