nex_math/data/question_images/generated_5e2274b554a44d8f9...

35 lines
1.8 KiB
XML

<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 400' width='500' height='400'>
<defs>
<marker id='arrow' markerWidth='10' markerHeight='10' refX='10' refY='5' orient='auto'>
<path d='M0,0 L10,5 L0,10 Z' fill='#333'/>
</marker>
</defs>
<!-- 坐标轴 -->
<line x1='30' y1='200' x2='470' y2='200' stroke='#333' stroke-width='1.5' marker-end='url(#arrow)'/>
<line x1='250' y1='30' x2='250' y2='370' stroke='#333' stroke-width='1.5' marker-end='url(#arrow)'/>
<!-- 轴标签 -->
<text x='465' y='215' font-size='14' fill='#333'>x</text>
<text x='260' y='35' font-size='14' fill='#333'>y</text>
<!-- 原点 -->
<text x='245' y='215' font-size='12' fill='#333'>O</text>
<!-- 刻度 -->
<line x1='250' y1='198' x2='250' y2='202' stroke='#333'/>
<text x='245' y='195' font-size='11' fill='#333'>0</text>
<!-- 垂直渐近线 x=1 -->
<line x1='250' y1='30' x2='250' y2='370' stroke='#999' stroke-width='1' stroke-dasharray='5,5'/>
<text x='255' y='45' font-size='11' fill='#999'>x=1</text>
<!-- 水平渐近线 y=2 -->
<line x1='30' y1='50' x2='470' y2='50' stroke='#999' stroke-width='1' stroke-dasharray='5,5'/>
<text x='380' y='45' font-size='11' fill='#999'>y=2</text>
<!-- 对称中心 (1,2) -->
<circle cx='250' cy='50' r='4' fill='#c00'/>
<text x='260' y='45' font-size='11' fill='#c00'>(1,2)</text>
<!-- 双曲线第一支 (x>1) -->
<path d='M255,370 Q260,300 270,200 Q280,100 300,70 Q340,40 450,45'
fill='none' stroke='#0066cc' stroke-width='2'/>
<!-- 双曲线第二支 (x<1) -->
<path d='M245,30 Q240,100 230,200 Q220,300 200,330 Q160,360 50,355'
fill='none' stroke='#0066cc' stroke-width='2'/>
<!-- 函数标签 -->
<text x='400' y='80' font-size='13' fill='#0066cc'>f(x)=(2x+3)/(x-1)</text>
</svg>