Debian Codegraph @

test_non_regression/svg/NewCoordSys.svg

raw
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4 <svg width="400px" height="150px"
5 xmlns="http://www.w3.org/2000/svg" version="1.1">
6 <desc>Example NewCoordSys - New user coordinate system</desc>
7 <g fill="none" stroke="black" stroke-width="3" >
8 <!-- Draw the axes of the original coordinate system -->
9 <line x1="0" y1="1.5" x2="400" y2="1.5" />
10 <line x1="1.5" y1="0" x2="1.5" y2="150" />
11 </g>
12 <g>
13 <text x="30" y="30" font-size="20" font-family="Liberation Sans" >
14 ABC (orig coord system)
15 </text>
16 </g>
17 <!-- Establish a new coordinate system, which is
18 shifted (i.e., translated) from the initial coordinate
19 system by 50 user units along each axis. -->
20 <g transform="translate(50,50)">
21 <g fill="none" stroke="red" stroke-width="3" >
22 <!-- Draw lines of length 50 user units along
23 the axes of the new coordinate system -->
24 <line x1="0" y1="0" x2="50" y2="0" stroke="red" />
25 <line x1="0" y1="0" x2="0" y2="50" />
26 </g>
27 <text x="30" y="30" font-size="20" font-family="Liberation Sans" >
28 ABC (translated coord system)
29 </text>
30 </g>
31 </svg>
32