SciRuby/gnuplotrb

View on GitHub
examples/plot_to_image_file/real_result.svg

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"  standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg 
 width="600" height="600"
 viewBox="0 0 600 600"
 xmlns="http://www.w3.org/2000/svg"
 xmlns:xlink="http://www.w3.org/1999/xlink"
>

<title>Gnuplot</title>
<desc>Produced by GNUPLOT 5.0 patchlevel 0 </desc>

<g id="gnuplot_canvas">

<rect x="0" y="0" width="600" height="600" fill="none"/>
<defs>

    <circle id='gpDot' r='0.5' stroke-width='0.5'/>
    <path id='gpPt0' stroke-width='0.222' stroke='currentColor' d='M-1,0 h2 M0,-1 v2'/>
    <path id='gpPt1' stroke-width='0.222' stroke='currentColor' d='M-1,-1 L1,1 M1,-1 L-1,1'/>
    <path id='gpPt2' stroke-width='0.222' stroke='currentColor' d='M-1,0 L1,0 M0,-1 L0,1 M-1,-1 L1,1 M-1,1 L1,-1'/>
    <rect id='gpPt3' stroke-width='0.222' stroke='currentColor' x='-1' y='-1' width='2' height='2'/>
    <rect id='gpPt4' stroke-width='0.222' stroke='currentColor' fill='currentColor' x='-1' y='-1' width='2' height='2'/>
    <circle id='gpPt5' stroke-width='0.222' stroke='currentColor' cx='0' cy='0' r='1'/>
    <use xlink:href='#gpPt5' id='gpPt6' fill='currentColor' stroke='none'/>
    <path id='gpPt7' stroke-width='0.222' stroke='currentColor' d='M0,-1.33 L-1.33,0.67 L1.33,0.67 z'/>
    <use xlink:href='#gpPt7' id='gpPt8' fill='currentColor' stroke='none'/>
    <use xlink:href='#gpPt7' id='gpPt9' stroke='currentColor' transform='rotate(180)'/>
    <use xlink:href='#gpPt9' id='gpPt10' fill='currentColor' stroke='none'/>
    <use xlink:href='#gpPt3' id='gpPt11' stroke='currentColor' transform='rotate(45)'/>
    <use xlink:href='#gpPt11' id='gpPt12' fill='currentColor' stroke='none'/>
    <path id='gpPt13' stroke-width='0.222' stroke='currentColor' d='M0,1.330 L1.265,0.411 L0.782,-1.067 L-0.782,-1.076 L-1.265,0.411 z'/>
    <use xlink:href='#gpPt13' id='gpPt14' fill='currentColor' stroke='none'/>
    <filter id='textbox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>
      <feFlood flood-color='white' flood-opacity='1' result='bgnd'/>
      <feComposite in='SourceGraphic' in2='bgnd' operator='atop'/>
    </filter>
    <filter id='greybox' filterUnits='objectBoundingBox' x='0' y='0' height='1' width='1'>
      <feFlood flood-color='lightgrey' flood-opacity='1' result='grey'/>
      <feComposite in='SourceGraphic' in2='grey' operator='atop'/>
    </filter>
</defs>
<g fill="none" color="white" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M53.9,564.0 L62.9,564.0 M575.0,564.0 L566.0,564.0  '/>    <g transform="translate(45.6,568.5)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="end">
        <text><tspan font-family="Arial" > 0</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M53.9,513.0 L62.9,513.0 M575.0,513.0 L566.0,513.0  '/>    <g transform="translate(45.6,517.5)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="end">
        <text><tspan font-family="Arial" > 0.1</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M53.9,462.0 L62.9,462.0 M575.0,462.0 L566.0,462.0  '/>    <g transform="translate(45.6,466.5)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="end">
        <text><tspan font-family="Arial" > 0.2</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M53.9,411.0 L62.9,411.0 M575.0,411.0 L566.0,411.0  '/>    <g transform="translate(45.6,415.5)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="end">
        <text><tspan font-family="Arial" > 0.3</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M53.9,360.0 L62.9,360.0 M575.0,360.0 L566.0,360.0  '/>    <g transform="translate(45.6,364.5)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="end">
        <text><tspan font-family="Arial" > 0.4</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M53.9,309.0 L62.9,309.0 M575.0,309.0 L566.0,309.0  '/>    <g transform="translate(45.6,313.5)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="end">
        <text><tspan font-family="Arial" > 0.5</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M53.9,258.1 L62.9,258.1 M575.0,258.1 L566.0,258.1  '/>    <g transform="translate(45.6,262.6)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="end">
        <text><tspan font-family="Arial" > 0.6</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M53.9,207.1 L62.9,207.1 M575.0,207.1 L566.0,207.1  '/>    <g transform="translate(45.6,211.6)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="end">
        <text><tspan font-family="Arial" > 0.7</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M53.9,156.1 L62.9,156.1 M575.0,156.1 L566.0,156.1  '/>    <g transform="translate(45.6,160.6)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="end">
        <text><tspan font-family="Arial" > 0.8</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M53.9,105.1 L62.9,105.1 M575.0,105.1 L566.0,105.1  '/>    <g transform="translate(45.6,109.6)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="end">
        <text><tspan font-family="Arial" > 0.9</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M53.9,54.1 L62.9,54.1 M575.0,54.1 L566.0,54.1  '/>    <g transform="translate(45.6,58.6)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="end">
        <text><tspan font-family="Arial" > 1</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M53.9,564.0 L53.9,555.0 M53.9,54.1 L53.9,63.1  '/>    <g transform="translate(53.9,586.5)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="middle">
        <text><tspan font-family="Arial" > 0</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M158.1,564.0 L158.1,555.0 M158.1,54.1 L158.1,63.1  '/>    <g transform="translate(158.1,586.5)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="middle">
        <text><tspan font-family="Arial" > 2</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M262.3,564.0 L262.3,555.0 M262.3,54.1 L262.3,63.1  '/>    <g transform="translate(262.3,586.5)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="middle">
        <text><tspan font-family="Arial" > 4</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M366.6,564.0 L366.6,555.0 M366.6,54.1 L366.6,63.1  '/>    <g transform="translate(366.6,586.5)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="middle">
        <text><tspan font-family="Arial" > 6</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M470.8,564.0 L470.8,555.0 M470.8,54.1 L470.8,63.1  '/>    <g transform="translate(470.8,586.5)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="middle">
        <text><tspan font-family="Arial" > 8</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M575.0,564.0 L575.0,555.0 M575.0,54.1 L575.0,63.1  '/>    <g transform="translate(575.0,586.5)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="middle">
        <text><tspan font-family="Arial" > 10</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M53.9,54.1 L53.9,564.0 L575.0,564.0 L575.0,54.1 L53.9,54.1 Z  '/></g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <g transform="translate(314.4,31.6)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="middle">
        <text><tspan font-family="Arial" >Plotting to png</tspan></text>
    </g>
</g>
    <g id="gnuplot_plot_1" ><title>Points from file</title>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <g transform="translate(507.9,76.6)" stroke="none" fill="black" font-family="Arial" font-size="12.00"  text-anchor="end">
        <text><tspan font-family="Arial" >Points from file</tspan></text>
    </g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='rgb(148,   0, 211)'  d='M516.2,72.1 L558.4,72.1 M53.9,54.1 L59.1,102.6 L64.3,146.5 L69.5,186.3 L74.7,222.2 L80.0,254.7
        L85.2,284.2 L90.4,310.8 L95.6,334.9 L100.8,356.7 L106.0,376.4 L111.2,394.3 L116.4,410.4 L121.6,425.0
        L126.9,438.3 L132.1,450.2 L137.3,461.1 L142.5,470.8 L147.7,479.7 L152.9,487.7 L158.1,495.0 L163.3,501.6
        L168.5,507.5 L173.8,512.9 L179.0,517.7 L184.2,522.1 L189.4,526.1 L194.6,529.7 L199.8,533.0 L205.0,535.9
        L210.2,538.6 L215.4,541.0 L220.7,543.2 L225.9,545.2 L231.1,547.0 L236.3,548.6 L241.5,550.1 L246.7,551.4
        L251.9,552.6 L257.1,553.7 L262.3,554.7 L267.6,555.5 L272.8,556.4 L278.0,557.1 L283.2,557.7 L288.4,558.3
        L293.6,558.9 L298.8,559.4 L304.0,559.8 L309.2,560.2 L314.5,560.6 L319.7,560.9 L324.9,561.2 L330.1,561.5
        L335.3,561.7 L340.5,561.9 L345.7,562.1 L350.9,562.3 L356.1,562.5 L361.3,562.6 L366.6,562.7 L371.8,562.9
        L377.0,563.0 L382.2,563.1 L387.4,563.2 L392.6,563.2 L397.8,563.3 L403.0,563.4 L408.2,563.4 L413.5,563.5
        L418.7,563.5 L423.9,563.6 L429.1,563.6 L434.3,563.7 L439.5,563.7 L444.7,563.7 L449.9,563.7 L455.1,563.8
        L460.4,563.8 L465.6,563.8 L470.8,563.8 L476.0,563.8 L481.2,563.9 L486.4,563.9 L491.6,563.9 L496.8,563.9
        L502.0,563.9 L507.3,563.9 L512.5,563.9 L517.7,563.9 L522.9,563.9 L528.1,563.9 L533.3,563.9 L538.5,564.0
        L543.7,564.0 L548.9,564.0 L554.2,564.0 L559.4,564.0 L564.6,564.0 L569.8,564.0 L575.0,564.0  '/></g>
    </g>
<g fill="none" color="white" stroke="rgb(148,   0, 211)" stroke-width="2.00" stroke-linecap="butt" stroke-linejoin="miter">
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="2.00" stroke-linecap="butt" stroke-linejoin="miter">
</g>
<g fill="none" color="black" stroke="black" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
    <path stroke='black'  d='M53.9,54.1 L53.9,564.0 L575.0,564.0 L575.0,54.1 L53.9,54.1 Z  '/></g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
</g>
</g>
</svg>