Subversion Repositories eFlore/Projets.eflore-projets

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
254 jpm 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
5
	xmlns="http://www.w3.org/2000/svg"
6
	version="1.0"
7
	width="400" height="400"
8
	viewbox="0 0 100 100">
9
	<defs>
10
		<pattern id="axeX" width="20" height="10" patternUnits="userSpaceOnUse">
11
			<path d="M 0 0, L 0 10" style="fill:none;stroke:black;stroke-width:0.25"/>
12
			<path d="M 10 10, V 5" style="fill:none;stroke:lightgray;stroke-width:0.25"/>
13
		</pattern>
14
		<pattern id="axeY" width="10" height="20" patternUnits="userSpaceOnUse">
15
			<path d="M 0 0, L 10 0" style="fill:none;stroke:black;stroke-width:0.25"/>
16
			<path d="M 5 10, L 10 10" style="fill:none;stroke:lightgray;stroke-width:0.25"/>
17
		</pattern>
18
		<pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse">
19
			<path d="M 0 0, L 10 0, L 10 10,L 0 10, L 0 0" style="fill:white;stroke:lightgray;stroke-width:0.25"/>
20
		</pattern>
21
	</defs>
22
	<g transform="matrix(1 0 0 -1 30 130)">
23
		<!--grille-->
24
		<rect x="0" y="0" stroke="black" width="100" height="100" style="fill:url(#grid);stroke:lightgray;stroke-width:0.25"/>
25
		<!-- axes -->
26
		<rect width="100" height="10" x="0" y="-10" style="fill:url(#axeX)"/>
27
		<rect width="10" height="100" x="-10" y="0" style="fill:url(#axeY)"/>
28
		<line x1="0" y1="0" x2="100" y2="0" style="stroke:black;stroke-width:1"/>
29
		<line x1="0" y1="0" x2="0" y2="100" style="stroke:black;stroke-width:1"/>
30
		<!-- graduations -->
31
		<polygon points="100,-3 110,0 100,3" style="stroke:black;fill:white"/>
32
		<polygon points="-3,100 3,100 0,110" style="stroke:black;fill:white"/>
33
		<text x="0" y="-20" style="font-size:8;text-anchor:middle">0</text>
34
		<text x="20" y="-20" style="font-size:8;text-anchor:middle">20</text>
35
		<text x="40" y="-20" style="font-size:8;text-anchor:middle">40</text>
36
		<text x="60" y="-20" style="font-size:8;text-anchor:middle">60</text>
37
		<text x="80" y="-20" style="font-size:8;text-anchor:middle">80</text>
38
		<text x="100" y="-20" style="font-size:8;text-anchor:middle">100</text>
39
		<text x="120" y="0" style="font-size:8;text-anchor:middle">x</text>
40
		<text x="-20" y="0" style="font-size:8;text-anchor:middle">0</text>
41
		<text x="-20" y="20" style="font-size:8;text-anchor:middle">20</text>
42
		<text x="-20" y="40" style="font-size:8;text-anchor:middle">40</text>
43
		<text x="-20" y="60" style="font-size:8;text-anchor:middle">60</text>
44
		<text x="-20" y="80" style="font-size:8;text-anchor:middle">80</text>
45
		<text x="-20" y="100" style="font-size:8;text-anchor:middle">100</text>
46
		<text x="0" y="120" style="font-size:8;text-anchor:middle">y</text>
47
		<!-- barre -->
48
		<rect x="20" y="0" width="20" height="60" style="fill:green;stroke:black;fill-opacity:0.6"/>
49
		<circle cx="20" cy="60" r="3" style="fill:white;stroke:black;fill-opacity:0.9"/>
50
		<text x="20" y="70" style="font-size:8;text-anchor:middle">(20,60)</text>
51
	</g>
52
</svg>