Opus/2026.03.11-Hgl1_CenterAndHorizon/image/cartesian_grid_pm5.svg
2026-07-04 09:09:13 -07:00

99 lines
4.2 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" viewBox="0 0 800 800">
<rect width="100%" height="100%" fill="white"/>
<!-- Grid settings -->
<!-- Plot area from (100,100) to (700,700), centered at (400,400), 60 px per unit -->
<!-- Minor grid lines -->
<g stroke="#666" stroke-width="1">
<!-- Vertical lines -->
<line x1="100" y1="100" x2="100" y2="700"/>
<line x1="160" y1="100" x2="160" y2="700"/>
<line x1="220" y1="100" x2="220" y2="700"/>
<line x1="280" y1="100" x2="280" y2="700"/>
<line x1="340" y1="100" x2="340" y2="700"/>
<line x1="460" y1="100" x2="460" y2="700"/>
<line x1="520" y1="100" x2="520" y2="700"/>
<line x1="580" y1="100" x2="580" y2="700"/>
<line x1="640" y1="100" x2="640" y2="700"/>
<line x1="700" y1="100" x2="700" y2="700"/>
<!-- Horizontal lines -->
<line x1="100" y1="100" x2="700" y2="100"/>
<line x1="100" y1="160" x2="700" y2="160"/>
<line x1="100" y1="220" x2="700" y2="220"/>
<line x1="100" y1="280" x2="700" y2="280"/>
<line x1="100" y1="340" x2="700" y2="340"/>
<line x1="100" y1="460" x2="700" y2="460"/>
<line x1="100" y1="520" x2="700" y2="520"/>
<line x1="100" y1="580" x2="700" y2="580"/>
<line x1="100" y1="640" x2="700" y2="640"/>
<line x1="100" y1="700" x2="700" y2="700"/>
</g>
<!-- Axes -->
<g stroke="black" stroke-width="3">
<line x1="400" y1="100" x2="400" y2="700"/>
<line x1="100" y1="400" x2="700" y2="400"/>
</g>
<!-- Tick marks -->
<g stroke="black" stroke-width="2">
<!-- x-axis ticks -->
<line x1="100" y1="392" x2="100" y2="408"/>
<line x1="160" y1="392" x2="160" y2="408"/>
<line x1="220" y1="392" x2="220" y2="408"/>
<line x1="280" y1="392" x2="280" y2="408"/>
<line x1="340" y1="392" x2="340" y2="408"/>
<line x1="460" y1="392" x2="460" y2="408"/>
<line x1="520" y1="392" x2="520" y2="408"/>
<line x1="580" y1="392" x2="580" y2="408"/>
<line x1="640" y1="392" x2="640" y2="408"/>
<line x1="700" y1="392" x2="700" y2="408"/>
<!-- y-axis ticks -->
<line x1="392" y1="100" x2="408" y2="100"/>
<line x1="392" y1="160" x2="408" y2="160"/>
<line x1="392" y1="220" x2="408" y2="220"/>
<line x1="392" y1="280" x2="408" y2="280"/>
<line x1="392" y1="340" x2="408" y2="340"/>
<line x1="392" y1="460" x2="408" y2="460"/>
<line x1="392" y1="520" x2="408" y2="520"/>
<line x1="392" y1="580" x2="408" y2="580"/>
<line x1="392" y1="640" x2="408" y2="640"/>
<line x1="392" y1="700" x2="408" y2="700"/>
</g>
<!-- Labels -->
<g font-family="Arial, Helvetica, sans-serif" font-size="24" fill="black">
<!-- x labels -->
<text x="100" y="438" text-anchor="middle">-5</text>
<text x="160" y="438" text-anchor="middle">-4</text>
<text x="220" y="438" text-anchor="middle">-3</text>
<text x="280" y="438" text-anchor="middle">-2</text>
<text x="340" y="438" text-anchor="middle">-1</text>
<text x="460" y="438" text-anchor="middle">1</text>
<text x="520" y="438" text-anchor="middle">2</text>
<text x="580" y="438" text-anchor="middle">3</text>
<text x="640" y="438" text-anchor="middle">4</text>
<text x="700" y="438" text-anchor="middle">5</text>
<!-- y labels -->
<text x="372" y="108" text-anchor="end" dominant-baseline="middle">5</text>
<text x="372" y="168" text-anchor="end" dominant-baseline="middle">4</text>
<text x="372" y="228" text-anchor="end" dominant-baseline="middle">3</text>
<text x="372" y="288" text-anchor="end" dominant-baseline="middle">2</text>
<text x="372" y="348" text-anchor="end" dominant-baseline="middle">1</text>
<text x="372" y="468" text-anchor="end" dominant-baseline="middle">-1</text>
<text x="372" y="528" text-anchor="end" dominant-baseline="middle">-2</text>
<text x="372" y="588" text-anchor="end" dominant-baseline="middle">-3</text>
<text x="372" y="648" text-anchor="end" dominant-baseline="middle">-4</text>
<text x="372" y="708" text-anchor="end" dominant-baseline="middle">-5</text>
<!-- Axis labels -->
<text x="720" y="408" font-size="28" font-style="italic">x</text>
<text x="410" y="85" font-size="28" font-style="italic">y</text>
</g>
</svg>