more guide plots

This commit is contained in:
Dima Kogan 2021-02-20 14:12:47 -08:00
parent 5ba4db7902
commit bf818d9898
8 changed files with 191 additions and 41 deletions

View File

@ -335,7 +335,19 @@
</g> </g>
<g id="gnuplot_plot_1" ><title>gnuplot_plot_1</title> <g id="gnuplot_plot_1" ><title>gnuplot_plot_1</title>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<use xlink:href='#gpPt0' transform='translate(70.70,21.54) scale(5.25)' color='rgb(148, 0, 211)'/> <path stroke='rgb(148, 0, 211)' d='M70.70,21.54 L77.77,23.13 L84.84,25.77 L91.91,29.45 L98.98,34.15 L106.05,39.86 L113.12,46.56 L120.19,54.22
L127.26,62.81 L134.33,72.29 L141.40,82.63 L148.47,93.78 L155.54,105.71 L162.61,118.36 L169.68,131.69 L176.75,145.64
L183.82,160.16 L190.89,175.19 L197.96,190.67 L205.03,206.54 L212.10,222.73 L219.17,239.19 L226.24,255.85 L233.31,272.65
L240.38,289.50 L247.45,306.36 L254.52,323.16 L261.59,339.82 L268.66,356.28 L275.73,372.47 L282.80,388.34 L289.87,403.82
L296.94,418.85 L304.01,433.37 L311.08,447.32 L318.15,460.65 L325.22,473.30 L332.29,485.23 L339.36,496.38 L346.43,506.72
L353.50,516.20 L360.57,524.79 L367.64,532.45 L374.71,539.15 L381.78,544.86 L388.85,549.56 L395.92,553.24 L402.99,555.88
L410.06,557.47 L417.13,558.00 L424.19,557.47 L431.26,555.88 L438.33,553.24 L445.40,549.56 L452.47,544.86 L459.54,539.15
L466.61,532.45 L473.68,524.79 L480.75,516.20 L487.82,506.72 L494.89,496.38 L501.96,485.23 L509.03,473.30 L516.10,460.65
L523.17,447.32 L530.24,433.37 L537.31,418.85 L544.38,403.83 L551.45,388.35 L558.52,372.48 L565.59,356.28 L572.66,339.82
L579.73,323.16 L586.80,306.36 L593.87,289.51 L600.94,272.65 L608.01,255.85 L615.08,239.20 L622.15,222.73 L629.22,206.54
L636.29,190.67 L643.36,175.19 L650.43,160.16 L657.50,145.64 L664.57,131.69 L671.64,118.36 L678.71,105.71 L685.78,93.78
L692.85,82.63 L699.92,72.29 L706.99,62.81 L714.06,54.22 L721.13,46.56 L728.20,39.87 L735.27,34.15 L742.34,29.45
L749.41,25.77 L756.48,23.13 L763.55,21.54 L770.62,21.01 '/> <use xlink:href='#gpPt0' transform='translate(70.70,21.54) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(77.77,23.13) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(77.77,23.13) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(84.84,25.77) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(84.84,25.77) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(91.91,29.45) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(91.91,29.45) scale(5.25)' color='rgb(148, 0, 211)'/>
@ -439,7 +451,19 @@
</g> </g>
<g id="gnuplot_plot_2" ><title>gnuplot_plot_2</title> <g id="gnuplot_plot_2" ><title>gnuplot_plot_2</title>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<use xlink:href='#gpPt1' transform='translate(70.70,272.65) scale(5.25)' color='rgb( 0, 158, 115)'/> <path stroke='rgb( 0, 158, 115)' d='M70.70,272.65 L77.77,255.85 L84.84,239.19 L91.91,222.73 L98.98,206.54 L106.05,190.67 L113.12,175.19 L120.19,160.16
L127.26,145.64 L134.33,131.69 L141.40,118.36 L148.47,105.71 L155.54,93.78 L162.61,82.63 L169.68,72.29 L176.75,62.81
L183.82,54.22 L190.89,46.56 L197.96,39.86 L205.03,34.15 L212.10,29.45 L219.17,25.77 L226.24,23.13 L233.31,21.54
L240.38,21.01 L247.45,21.54 L254.52,23.13 L261.59,25.77 L268.66,29.45 L275.73,34.15 L282.80,39.86 L289.87,46.56
L296.94,54.22 L304.01,62.81 L311.08,72.29 L318.15,82.63 L325.22,93.78 L332.29,105.71 L339.36,118.36 L346.43,131.69
L353.50,145.64 L360.57,160.16 L367.64,175.18 L374.71,190.66 L381.78,206.53 L388.85,222.73 L395.92,239.19 L402.99,255.85
L410.06,272.65 L417.13,289.50 L424.19,306.36 L431.26,323.16 L438.33,339.82 L445.40,356.28 L452.47,372.47 L459.54,388.34
L466.61,403.82 L473.68,418.85 L480.75,433.37 L487.82,447.32 L494.89,460.65 L501.96,473.30 L509.03,485.23 L516.10,496.38
L523.17,506.72 L530.24,516.20 L537.31,524.79 L544.38,532.45 L551.45,539.14 L558.52,544.86 L565.59,549.56 L572.66,553.24
L579.73,555.88 L586.80,557.47 L593.87,558.00 L600.94,557.47 L608.01,555.88 L615.08,553.24 L622.15,549.57 L629.22,544.86
L636.29,539.15 L643.36,532.45 L650.43,524.79 L657.50,516.20 L664.57,506.72 L671.64,496.38 L678.71,485.23 L685.78,473.30
L692.85,460.65 L699.92,447.32 L706.99,433.37 L714.06,418.85 L721.13,403.83 L728.20,388.35 L735.27,372.48 L742.34,356.28
L749.41,339.82 L756.48,323.16 L763.55,306.37 L770.62,289.51 '/> <use xlink:href='#gpPt1' transform='translate(70.70,272.65) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(77.77,255.85) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(77.77,255.85) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(84.84,239.19) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(84.84,239.19) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(91.91,222.73) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(91.91,222.73) scale(5.25)' color='rgb( 0, 158, 115)'/>

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 47 KiB

View File

@ -335,7 +335,19 @@
</g> </g>
<g id="gnuplot_plot_1" ><title>gnuplot_plot_1</title> <g id="gnuplot_plot_1" ><title>gnuplot_plot_1</title>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<use xlink:href='#gpPt0' transform='translate(70.70,21.54) scale(5.25)' color='rgb(148, 0, 211)'/> <path stroke='rgb(148, 0, 211)' d='M70.70,21.54 L77.77,23.13 L84.84,25.77 L91.91,29.45 L98.98,34.15 L106.05,39.86 L113.12,46.56 L120.19,54.22
L127.26,62.81 L134.33,72.29 L141.40,82.63 L148.47,93.78 L155.54,105.71 L162.61,118.36 L169.68,131.69 L176.75,145.64
L183.82,160.16 L190.89,175.19 L197.96,190.67 L205.03,206.54 L212.10,222.73 L219.17,239.19 L226.24,255.85 L233.31,272.65
L240.38,289.50 L247.45,306.36 L254.52,323.16 L261.59,339.82 L268.66,356.28 L275.73,372.47 L282.80,388.34 L289.87,403.82
L296.94,418.85 L304.01,433.37 L311.08,447.32 L318.15,460.65 L325.22,473.30 L332.29,485.23 L339.36,496.38 L346.43,506.72
L353.50,516.20 L360.57,524.79 L367.64,532.45 L374.71,539.15 L381.78,544.86 L388.85,549.56 L395.92,553.24 L402.99,555.88
L410.06,557.47 L417.13,558.00 L424.19,557.47 L431.26,555.88 L438.33,553.24 L445.40,549.56 L452.47,544.86 L459.54,539.15
L466.61,532.45 L473.68,524.79 L480.75,516.20 L487.82,506.72 L494.89,496.38 L501.96,485.23 L509.03,473.30 L516.10,460.65
L523.17,447.32 L530.24,433.37 L537.31,418.85 L544.38,403.83 L551.45,388.35 L558.52,372.48 L565.59,356.28 L572.66,339.82
L579.73,323.16 L586.80,306.36 L593.87,289.51 L600.94,272.65 L608.01,255.85 L615.08,239.20 L622.15,222.73 L629.22,206.54
L636.29,190.67 L643.36,175.19 L650.43,160.16 L657.50,145.64 L664.57,131.69 L671.64,118.36 L678.71,105.71 L685.78,93.78
L692.85,82.63 L699.92,72.29 L706.99,62.81 L714.06,54.22 L721.13,46.56 L728.20,39.87 L735.27,34.15 L742.34,29.45
L749.41,25.77 L756.48,23.13 L763.55,21.54 L770.62,21.01 '/> <use xlink:href='#gpPt0' transform='translate(70.70,21.54) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(77.77,23.13) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(77.77,23.13) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(84.84,25.77) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(84.84,25.77) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(91.91,29.45) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(91.91,29.45) scale(5.25)' color='rgb(148, 0, 211)'/>
@ -439,7 +451,9 @@
</g> </g>
<g id="gnuplot_plot_2" ><title>gnuplot_plot_2</title> <g id="gnuplot_plot_2" ><title>gnuplot_plot_2</title>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<use xlink:href='#gpPt1' transform='translate(98.98,206.54) scale(5.25)' color='rgb( 0, 158, 115)'/> <path stroke='rgb( 0, 158, 115)' d='M98.98,206.54 L134.33,131.69 L169.68,72.29 L205.03,34.15 L240.38,21.01 L275.73,34.15 L311.08,72.29 L346.43,131.69
L381.78,206.53 L417.13,289.50 L452.47,372.47 L487.82,447.32 L523.17,506.72 L558.52,544.86 L593.87,558.00 L629.22,544.86
L664.57,506.72 L699.92,447.32 L735.27,372.48 L770.62,289.51 '/> <use xlink:href='#gpPt1' transform='translate(98.98,206.54) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(134.33,131.69) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(134.33,131.69) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(169.68,72.29) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(169.68,72.29) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(205.03,34.15) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(205.03,34.15) scale(5.25)' color='rgb( 0, 158, 115)'/>

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -335,7 +335,19 @@
</g> </g>
<g id="gnuplot_plot_1" ><title>gnuplot_plot_1</title> <g id="gnuplot_plot_1" ><title>gnuplot_plot_1</title>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<use xlink:href='#gpPt0' transform='translate(769.92,272.65) scale(5.25)' color='rgb(148, 0, 211)'/> <path stroke='rgb(148, 0, 211)' d='M769.92,272.65 L767.83,255.85 L764.36,239.19 L759.51,222.73 L753.32,206.54 L745.80,190.67 L736.98,175.19 L726.90,160.16
L715.59,145.64 L703.11,131.69 L689.50,118.36 L674.81,105.71 L659.11,93.78 L642.45,82.63 L624.90,72.29 L606.54,62.81
L587.42,54.22 L567.64,46.56 L547.26,39.86 L526.36,34.15 L505.04,29.45 L483.36,25.77 L461.43,23.13 L439.32,21.54
L417.13,21.01 L394.93,21.54 L372.82,23.13 L350.89,25.77 L329.21,29.45 L307.89,34.15 L287.00,39.86 L266.61,46.56
L246.83,54.22 L227.71,62.81 L209.35,72.29 L191.80,82.63 L175.14,93.78 L159.44,105.71 L144.75,118.36 L131.14,131.69
L118.66,145.64 L107.36,160.16 L97.27,175.18 L88.45,190.66 L80.93,206.53 L74.74,222.73 L69.89,239.19 L66.42,255.85
L64.33,272.65 L63.63,289.50 L64.33,306.36 L66.42,323.16 L69.89,339.82 L74.74,356.28 L80.93,372.47 L88.45,388.34
L97.27,403.82 L107.35,418.85 L118.66,433.37 L131.14,447.32 L144.75,460.65 L159.44,473.30 L175.14,485.23 L191.80,496.38
L209.34,506.72 L227.71,516.20 L246.83,524.79 L266.61,532.45 L286.99,539.14 L307.89,544.86 L329.21,549.56 L350.89,553.24
L372.82,555.88 L394.93,557.47 L417.12,558.00 L439.32,557.47 L461.43,555.88 L483.36,553.24 L505.03,549.57 L526.36,544.86
L547.25,539.15 L567.63,532.45 L587.42,524.79 L606.54,516.20 L624.90,506.72 L642.45,496.38 L659.11,485.23 L674.81,473.30
L689.50,460.65 L703.11,447.32 L715.59,433.37 L726.89,418.85 L736.98,403.83 L745.80,388.35 L753.32,372.48 L759.51,356.28
L764.36,339.82 L767.83,323.16 L769.92,306.37 L770.62,289.51 '/> <use xlink:href='#gpPt0' transform='translate(769.92,272.65) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(767.83,255.85) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(767.83,255.85) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(764.36,239.19) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(764.36,239.19) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(759.51,222.73) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(759.51,222.73) scale(5.25)' color='rgb(148, 0, 211)'/>

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

@ -335,7 +335,19 @@
</g> </g>
<g id="gnuplot_plot_1" ><title>gnuplot_plot_1</title> <g id="gnuplot_plot_1" ><title>gnuplot_plot_1</title>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<use xlink:href='#gpPt0' transform='translate(685.09,272.65) scale(5.25)' color='rgb(148, 0, 211)'/> <path stroke='rgb(148, 0, 211)' d='M685.09,272.65 L683.50,255.85 L680.86,239.19 L677.18,222.73 L672.48,206.54 L666.77,190.67 L660.07,175.19 L652.41,160.16
L643.82,145.64 L634.34,131.69 L624.00,118.36 L612.85,105.71 L600.92,93.78 L588.27,82.63 L574.94,72.29 L560.99,62.81
L546.47,54.22 L531.44,46.56 L515.96,39.86 L500.09,34.15 L483.90,29.45 L467.44,25.77 L450.78,23.13 L433.98,21.54
L417.13,21.01 L400.27,21.54 L383.47,23.13 L366.81,25.77 L350.35,29.45 L334.16,34.15 L318.29,39.86 L302.81,46.56
L287.78,54.22 L273.26,62.81 L259.31,72.29 L245.98,82.63 L233.33,93.78 L221.40,105.71 L210.25,118.36 L199.91,131.69
L190.43,145.64 L181.84,160.16 L174.18,175.18 L167.48,190.66 L161.77,206.53 L157.07,222.73 L153.39,239.19 L150.75,255.85
L149.16,272.65 L148.63,289.50 L149.16,306.36 L150.75,323.16 L153.39,339.82 L157.07,356.28 L161.77,372.47 L167.48,388.34
L174.18,403.82 L181.84,418.85 L190.43,433.37 L199.91,447.32 L210.25,460.65 L221.40,473.30 L233.33,485.23 L245.98,496.38
L259.31,506.72 L273.26,516.20 L287.78,524.79 L302.80,532.45 L318.28,539.14 L334.15,544.86 L350.35,549.56 L366.81,553.24
L383.47,555.88 L400.27,557.47 L417.12,558.00 L433.98,557.47 L450.78,555.88 L467.43,553.24 L483.90,549.57 L500.09,544.86
L515.96,539.15 L531.44,532.45 L546.47,524.79 L560.99,516.20 L574.94,506.72 L588.27,496.38 L600.92,485.23 L612.85,473.30
L624.00,460.65 L634.34,447.32 L643.82,433.37 L652.41,418.85 L660.07,403.83 L666.76,388.35 L672.48,372.48 L677.18,356.28
L680.86,339.82 L683.50,323.16 L685.09,306.37 L685.62,289.51 '/> <use xlink:href='#gpPt0' transform='translate(685.09,272.65) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(683.50,255.85) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(683.50,255.85) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(680.86,239.19) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(680.86,239.19) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(677.18,222.73) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(677.18,222.73) scale(5.25)' color='rgb(148, 0, 211)'/>

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -335,7 +335,19 @@
</g> </g>
<g id="gnuplot_plot_1" ><title>gnuplot_plot_1</title> <g id="gnuplot_plot_1" ><title>gnuplot_plot_1</title>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<use xlink:href='#gpPt0' transform='translate(685.09,272.65) scale(5.25)' color='rgb(148, 0, 211)'/> <path stroke='rgb(148, 0, 211)' d='M685.09,272.65 L683.50,255.85 L680.86,239.19 L677.18,222.73 L672.48,206.54 L666.77,190.67 L660.07,175.19 L652.41,160.16
L643.82,145.64 L634.34,131.69 L624.00,118.36 L612.85,105.71 L600.92,93.78 L588.27,82.63 L574.94,72.29 L560.99,62.81
L546.47,54.22 L531.44,46.56 L515.96,39.86 L500.09,34.15 L483.90,29.45 L467.44,25.77 L450.78,23.13 L433.98,21.54
L417.13,21.01 L400.27,21.54 L383.47,23.13 L366.81,25.77 L350.35,29.45 L334.16,34.15 L318.29,39.86 L302.81,46.56
L287.78,54.22 L273.26,62.81 L259.31,72.29 L245.98,82.63 L233.33,93.78 L221.40,105.71 L210.25,118.36 L199.91,131.69
L190.43,145.64 L181.84,160.16 L174.18,175.18 L167.48,190.66 L161.77,206.53 L157.07,222.73 L153.39,239.19 L150.75,255.85
L149.16,272.65 L148.63,289.50 L149.16,306.36 L150.75,323.16 L153.39,339.82 L157.07,356.28 L161.77,372.47 L167.48,388.34
L174.18,403.82 L181.84,418.85 L190.43,433.37 L199.91,447.32 L210.25,460.65 L221.40,473.30 L233.33,485.23 L245.98,496.38
L259.31,506.72 L273.26,516.20 L287.78,524.79 L302.80,532.45 L318.28,539.14 L334.15,544.86 L350.35,549.56 L366.81,553.24
L383.47,555.88 L400.27,557.47 L417.12,558.00 L433.98,557.47 L450.78,555.88 L467.43,553.24 L483.90,549.57 L500.09,544.86
L515.96,539.15 L531.44,532.45 L546.47,524.79 L560.99,516.20 L574.94,506.72 L588.27,496.38 L600.92,485.23 L612.85,473.30
L624.00,460.65 L634.34,447.32 L643.82,433.37 L652.41,418.85 L660.07,403.83 L666.76,388.35 L672.48,372.48 L677.18,356.28
L680.86,339.82 L683.50,323.16 L685.09,306.37 L685.62,289.51 '/> <use xlink:href='#gpPt0' transform='translate(685.09,272.65) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(683.50,255.85) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(683.50,255.85) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(680.86,239.19) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(680.86,239.19) scale(5.25)' color='rgb(148, 0, 211)'/>
<use xlink:href='#gpPt0' transform='translate(677.18,222.73) scale(5.25)' color='rgb(148, 0, 211)'/> <use xlink:href='#gpPt0' transform='translate(677.18,222.73) scale(5.25)' color='rgb(148, 0, 211)'/>
@ -439,7 +451,9 @@
</g> </g>
<g id="gnuplot_plot_2" ><title>gnuplot_plot_2</title> <g id="gnuplot_plot_2" ><title>gnuplot_plot_2</title>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<use xlink:href='#gpPt1' transform='translate(672.48,248.02) scale(5.25)' color='rgb( 0, 158, 115)'/> <path stroke='rgb( 0, 158, 115)' d='M672.48,248.02 L634.34,210.60 L574.94,180.90 L500.09,161.83 L417.13,155.26 L334.16,161.83 L259.31,180.90 L199.91,210.60
L161.77,248.02 L148.63,289.50 L161.77,330.99 L199.91,368.41 L259.31,398.11 L334.15,417.18 L417.12,423.75 L500.09,417.18
L574.94,398.11 L634.34,368.41 L672.48,330.99 L685.62,289.51 '/> <use xlink:href='#gpPt1' transform='translate(672.48,248.02) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(634.34,210.60) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(634.34,210.60) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(574.94,180.90) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(574.94,180.90) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(500.09,161.83) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(500.09,161.83) scale(5.25)' color='rgb( 0, 158, 115)'/>

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -293,7 +293,7 @@
<g fill="none" color="black" stroke="black" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="black" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter">
</g> </g>
<g fill="none" color="gray" stroke="currentColor" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="gray" stroke="currentColor" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='gray' stroke-dasharray='2,4' class="gridline" d='M527.70,558.00 L527.70,21.01 '/></g> <path stroke='gray' stroke-dasharray='2,4' class="gridline" d='M527.70,558.00 L527.70,73.51 M527.70,31.51 L527.70,21.01 '/></g>
<g fill="none" color="gray" stroke="gray" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="gray" stroke="gray" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
</g> </g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
@ -306,7 +306,7 @@
<g fill="none" color="black" stroke="black" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="black" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter">
</g> </g>
<g fill="none" color="gray" stroke="currentColor" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="gray" stroke="currentColor" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='gray' stroke-dasharray='2,4' class="gridline" d='M581.40,558.00 L581.40,31.51 L581.40,21.01 '/></g> <path stroke='gray' stroke-dasharray='2,4' class="gridline" d='M581.40,558.00 L581.40,73.51 M581.40,31.51 L581.40,21.01 '/></g>
<g fill="none" color="gray" stroke="gray" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="gray" stroke="gray" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
</g> </g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
@ -335,6 +335,9 @@
</g> </g>
<g id="gnuplot_plot_1" ><title>gnuplot_plot_1</title> <g id="gnuplot_plot_1" ><title>gnuplot_plot_1</title>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<g transform="translate(556.07,46.56)" stroke="none" fill="black" font-family="Arial" font-size="14.00" text-anchor="end">
<text>circle</text>
</g>
<use xlink:href='#gpPt0' transform='translate(634.57,272.65) scale(5.25)' color='rgb( 24, 0, 14)'/> <use xlink:href='#gpPt0' transform='translate(634.57,272.65) scale(5.25)' color='rgb( 24, 0, 14)'/>
<use xlink:href='#gpPt0' transform='translate(632.98,255.85) scale(5.25)' color='rgb( 34, 0, 29)'/> <use xlink:href='#gpPt0' transform='translate(632.98,255.85) scale(5.25)' color='rgb( 34, 0, 29)'/>
<use xlink:href='#gpPt0' transform='translate(630.34,239.19) scale(5.25)' color='rgb( 42, 0, 43)'/> <use xlink:href='#gpPt0' transform='translate(630.34,239.19) scale(5.25)' color='rgb( 42, 0, 43)'/>
@ -435,11 +438,19 @@
<use xlink:href='#gpPt0' transform='translate(632.98,323.16) scale(5.25)' color='rgb(239, 175, 0)'/> <use xlink:href='#gpPt0' transform='translate(632.98,323.16) scale(5.25)' color='rgb(239, 175, 0)'/>
<use xlink:href='#gpPt0' transform='translate(634.57,306.37) scale(5.25)' color='rgb(241, 180, 0)'/> <use xlink:href='#gpPt0' transform='translate(634.57,306.37) scale(5.25)' color='rgb(241, 180, 0)'/>
<use xlink:href='#gpPt0' transform='translate(635.10,289.51) scale(5.25)' color='rgb(242, 186, 0)'/> <use xlink:href='#gpPt0' transform='translate(635.10,289.51) scale(5.25)' color='rgb(242, 186, 0)'/>
<use xlink:href='#gpPt0' transform='translate(590.69,42.01) scale(5.25)' color='rgb(242, 186, 0)'/>
</g> </g>
</g> </g>
<g id="gnuplot_plot_2" ><title>gnuplot_plot_2</title> <g id="gnuplot_plot_2" ><title>gnuplot_plot_2</title>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<use xlink:href='#gpPt1' transform='translate(621.96,248.02) scale(5.25)' color='rgb( 0, 158, 115)'/> <g transform="translate(556.07,67.56)" stroke="none" fill="black" font-family="Arial" font-size="14.00" text-anchor="end">
<text>ellipse</text>
</g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='rgb( 0, 158, 115)' d='M565.86,63.01 L615.52,63.01 M621.96,248.02 L583.82,210.60 L524.42,180.90 L449.57,161.83 L366.60,155.26 L283.63,161.83
L208.78,180.90 L149.38,210.60 L111.24,248.02 L98.10,289.50 L111.24,330.99 L149.38,368.41 L208.78,398.11 L283.63,417.18
L366.60,423.75 L449.57,417.18 L524.42,398.11 L583.82,368.41 L621.96,330.99 L635.10,289.51 '/> <use xlink:href='#gpPt1' transform='translate(621.96,248.02) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(583.82,210.60) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(583.82,210.60) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(524.42,180.90) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(524.42,180.90) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(449.57,161.83) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(449.57,161.83) scale(5.25)' color='rgb( 0, 158, 115)'/>
@ -459,6 +470,7 @@
<use xlink:href='#gpPt1' transform='translate(583.82,368.41) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(583.82,368.41) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(621.96,330.99) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(621.96,330.99) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(635.10,289.51) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(635.10,289.51) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(590.69,63.01) scale(5.25)' color='rgb( 0, 158, 115)'/>
</g> </g>
</g> </g>
<g fill="none" color="white" stroke="rgb( 0, 158, 115)" stroke-width="2.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="white" stroke="rgb( 0, 158, 115)" stroke-width="2.00" stroke-linecap="butt" stroke-linejoin="miter">

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -293,7 +293,7 @@
<g fill="none" color="black" stroke="black" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="black" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter">
</g> </g>
<g fill="none" color="gray" stroke="currentColor" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="gray" stroke="currentColor" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='gray' stroke-dasharray='2,4' class="gridline" d='M527.70,558.00 L527.70,21.01 '/></g> <path stroke='gray' stroke-dasharray='2,4' class="gridline" d='M527.70,558.00 L527.70,73.51 M527.70,31.51 L527.70,21.01 '/></g>
<g fill="none" color="gray" stroke="gray" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="gray" stroke="gray" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
</g> </g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
@ -306,7 +306,7 @@
<g fill="none" color="black" stroke="black" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="black" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter">
</g> </g>
<g fill="none" color="gray" stroke="currentColor" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="gray" stroke="currentColor" stroke-width="0.50" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='gray' stroke-dasharray='2,4' class="gridline" d='M581.40,558.00 L581.40,31.51 L581.40,21.01 '/></g> <path stroke='gray' stroke-dasharray='2,4' class="gridline" d='M581.40,558.00 L581.40,73.51 M581.40,31.51 L581.40,21.01 '/></g>
<g fill="none" color="gray" stroke="gray" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="gray" stroke="gray" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
</g> </g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
@ -335,6 +335,9 @@
</g> </g>
<g id="gnuplot_plot_1" ><title>gnuplot_plot_1</title> <g id="gnuplot_plot_1" ><title>gnuplot_plot_1</title>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<g transform="translate(556.07,46.56)" stroke="none" fill="black" font-family="Arial" font-size="14.00" text-anchor="end">
<text>circle</text>
</g>
<use xlink:href='#gpPt0' transform='translate(634.57,272.65) scale(5.25)' color='rgb( 24, 0, 14)'/> <use xlink:href='#gpPt0' transform='translate(634.57,272.65) scale(5.25)' color='rgb( 24, 0, 14)'/>
<use xlink:href='#gpPt0' transform='translate(632.98,255.85) scale(5.25)' color='rgb( 34, 0, 29)'/> <use xlink:href='#gpPt0' transform='translate(632.98,255.85) scale(5.25)' color='rgb( 34, 0, 29)'/>
<use xlink:href='#gpPt0' transform='translate(630.34,239.19) scale(5.25)' color='rgb( 42, 0, 43)'/> <use xlink:href='#gpPt0' transform='translate(630.34,239.19) scale(5.25)' color='rgb( 42, 0, 43)'/>
@ -435,11 +438,19 @@
<use xlink:href='#gpPt0' transform='translate(632.98,323.16) scale(5.25)' color='rgb(239, 175, 0)'/> <use xlink:href='#gpPt0' transform='translate(632.98,323.16) scale(5.25)' color='rgb(239, 175, 0)'/>
<use xlink:href='#gpPt0' transform='translate(634.57,306.37) scale(5.25)' color='rgb(241, 180, 0)'/> <use xlink:href='#gpPt0' transform='translate(634.57,306.37) scale(5.25)' color='rgb(241, 180, 0)'/>
<use xlink:href='#gpPt0' transform='translate(635.10,289.51) scale(5.25)' color='rgb(242, 186, 0)'/> <use xlink:href='#gpPt0' transform='translate(635.10,289.51) scale(5.25)' color='rgb(242, 186, 0)'/>
<use xlink:href='#gpPt0' transform='translate(590.69,42.01) scale(5.25)' color='rgb(242, 186, 0)'/>
</g> </g>
</g> </g>
<g id="gnuplot_plot_2" ><title>gnuplot_plot_2</title> <g id="gnuplot_plot_2" ><title>gnuplot_plot_2</title>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<use xlink:href='#gpPt1' transform='translate(621.96,248.02) scale(5.25)' color='rgb( 0, 158, 115)'/> <g transform="translate(556.07,67.56)" stroke="none" fill="black" font-family="Arial" font-size="14.00" text-anchor="end">
<text>ellipse</text>
</g>
</g>
<g fill="none" color="black" stroke="currentColor" stroke-width="1.00" stroke-linecap="butt" stroke-linejoin="miter">
<path stroke='rgb( 0, 158, 115)' d='M565.86,63.01 L615.52,63.01 M621.96,248.02 L583.82,210.60 L524.42,180.90 L449.57,161.83 L366.60,155.26 L283.63,161.83
L208.78,180.90 L149.38,210.60 L111.24,248.02 L98.10,289.50 L111.24,330.99 L149.38,368.41 L208.78,398.11 L283.63,417.18
L366.60,423.75 L449.57,417.18 L524.42,398.11 L583.82,368.41 L621.96,330.99 L635.10,289.51 '/> <use xlink:href='#gpPt1' transform='translate(621.96,248.02) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(583.82,210.60) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(583.82,210.60) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(524.42,180.90) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(524.42,180.90) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(449.57,161.83) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(449.57,161.83) scale(5.25)' color='rgb( 0, 158, 115)'/>
@ -459,6 +470,7 @@
<use xlink:href='#gpPt1' transform='translate(583.82,368.41) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(583.82,368.41) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(621.96,330.99) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(621.96,330.99) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(635.10,289.51) scale(5.25)' color='rgb( 0, 158, 115)'/> <use xlink:href='#gpPt1' transform='translate(635.10,289.51) scale(5.25)' color='rgb( 0, 158, 115)'/>
<use xlink:href='#gpPt1' transform='translate(590.69,63.01) scale(5.25)' color='rgb( 0, 158, 115)'/>
</g> </g>
</g> </g>
<g fill="none" color="white" stroke="rgb( 0, 158, 115)" stroke-width="2.00" stroke-linecap="butt" stroke-linejoin="miter"> <g fill="none" color="white" stroke="rgb( 0, 158, 115)" stroke-width="2.00" stroke-linecap="butt" stroke-linejoin="miter">

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB

View File

@ -19,45 +19,55 @@ feedgnuplot
This was a trivial plot, and was trivially-easy to make: we gave the tool one This was a trivial plot, and was trivially-easy to make: we gave the tool one
column of data with no specific instructions, and we got a plot. column of data with no specific instructions, and we got a plot.
Here each point we plotted was 2-dimensional (has an =x= value an a =y= value), The interpretation of the input data is controlled by two arguments: ==--domain=
but we passed in only one number for each point. This is what is expected and =--dataid=. Here we passed neither, so each line of input is interpreted as
without =--domain=, so =feedgnuplot= filled in sequential integers (0, 1, 2, =y0 y1 y2...= with sequential integers (0, 1, 2, ...) used for the =x=
...) for the =x= coordinate. Without =--domain= and without =--dataid=, each line coordinate. Let's pass in more than one =y= per line to plot a sine and a cosine
of input is interpreted as =y0 y1 y2...=. So we can plot a sin and a cos
together: together:
#+BEGIN_SRC sh :results file link :exports both #+BEGIN_SRC sh :results file link :exports both
seq 100 | \ seq 100 | \
perl -nE '$th = $_/100.*2.*3.14159; $s=sin($th); $c=cos($th); say "$c $s"' | \ perl -nE '$th = $_/100.*2.*3.14159;
feedgnuplot $s = sin($th);
$c = cos($th);
say "$c $s"' | \
feedgnuplot --lines --points
#+END_SRC #+END_SRC
#+RESULTS: #+RESULTS:
[[file:guide-2.svg]] [[file:guide-2.svg]]
Here I also passed =--lines --points= to make more legible plots.
Note that, the lines may have different numbers of points. To plot the cosine Note that, the lines may have different numbers of points. To plot the cosine
from every line, but a sine from every 5th line: from every line, but the sine from every 5th line:
#+BEGIN_SRC sh :results file link :exports both #+BEGIN_SRC sh :results file link :exports both
seq 100 | \ seq 100 | \
perl -nE '$th = $_/100.*2.*3.14159; $s=sin($th); $c=cos($th); perl -nE '$th = $_/100.*2.*3.14159;
if($.%5) { say "$c"; } $s = sin($th);
$c = cos($th);
if($.%5) { say "$c"; }
else { say "$c $s"; }' | \ else { say "$c $s"; }' | \
feedgnuplot feedgnuplot --lines --points
#+END_SRC #+END_SRC
#+RESULTS: #+RESULTS:
[[file:guide-3.svg]] [[file:guide-3.svg]]
If we pass in two columns and =--domain=, =feedgnuplot= will use one for the =x=, Each =y= is referred to as a "dataset" or "curve" in the code and documentation.
and the other for the =y=. With =--domain= and without =--dataid=, each line of
input is interpreted as =x y0 y1 y2...=. Let's plot =sin(theta)= vs. With =--domain=, the =x= values are read from the data instead of simply
=cos(theta)=, i.e. a circle: encoding line numbers: each line of input is interpreted as =x y0 y1 y2...=.
Let's plot =sin(theta)= vs. =cos(theta)=, i.e. a circle:
#+BEGIN_SRC sh :results file link :exports both #+BEGIN_SRC sh :results file link :exports both
seq 100 | \ seq 100 | \
perl -nE '$th = $_/100.*2.*3.14159; $s=sin($th); $c=cos($th); say "$c $s"' | \ perl -nE '$th = $_/100.*2.*3.14159;
feedgnuplot --domain $s = sin($th);
$c = cos($th);
say "$c $s"' | \
feedgnuplot --lines --points --domain
#+END_SRC #+END_SRC
#+RESULTS: #+RESULTS:
@ -69,8 +79,11 @@ We can scale the axes /together/ by passing =--square=, and we get a circle:
#+BEGIN_SRC sh :results file link :exports both #+BEGIN_SRC sh :results file link :exports both
seq 100 | \ seq 100 | \
perl -nE '$th = $_/100.*2.*3.14159; $s=sin($th); $c=cos($th); say "$c $s"' | \ perl -nE '$th = $_/100.*2.*3.14159;
feedgnuplot --domain --square $s = sin($th);
$c = cos($th);
say "$c $s"' | \
feedgnuplot --lines --points --domain --square
#+END_SRC #+END_SRC
#+RESULTS: #+RESULTS:
@ -80,18 +93,20 @@ Again, we can have multiple =y= in each line, and each line may have a different
number of =y=. Let's plot a circle /and/ an ellipse, sampled more coarsely: number of =y=. Let's plot a circle /and/ an ellipse, sampled more coarsely:
#+BEGIN_SRC sh :results file link :exports both #+BEGIN_SRC sh :results file link :exports both
seq 100 | \ seq 100 | \
perl -nE '$th = $_/100.*2.*3.14159; $s=sin($th); $c=cos($th); perl -nE '$th = $_/100.*2.*3.14159;
$s = sin($th);
$c = cos($th);
if($.%5) { say "$c $s"; } if($.%5) { say "$c $s"; }
else { $s2 = $s/2; else { $s2 = $s/2;
say "$c $s $s2"; }' | \ say "$c $s $s2"; }' | \
feedgnuplot --domain --square feedgnuplot --lines --points --domain --square
#+END_SRC #+END_SRC
#+RESULTS: #+RESULTS:
[[file:guide-6.svg]] [[file:guide-6.svg]]
We just plotted something where each point is represented by 2 values: =x= and We just plotted something where each point is represented by 2 values: =x= and
=y=. When making 2D plots, this is the most common situation, but others are =y=. When making 2D plots, this is the most common case, but others are
possible. What if we want to color-code our points using another column of data? possible. What if we want to color-code our points using another column of data?
We feed in the new column, and we tell =feedgnuplot= that we now have /3/ values We feed in the new column, and we tell =feedgnuplot= that we now have /3/ values
per point (the tuple size), and we tell =gnuplot= how we want this plot to be per point (the tuple size), and we tell =gnuplot= how we want this plot to be
@ -101,9 +116,10 @@ made. Color-coding by the angle, in degrees:
seq 100 | \ seq 100 | \
perl -nE '$thdeg = $_/100.*360.; perl -nE '$thdeg = $_/100.*360.;
$th = $_/100.*2.*3.14159; $th = $_/100.*2.*3.14159;
$s=sin($th); $c=cos($th); $s = sin($th);
$c = cos($th);
say "$c $s $thdeg";' | \ say "$c $s $thdeg";' | \
feedgnuplot --domain --square \ feedgnuplot --lines --points --domain --square \
--tuplesizeall 3 \ --tuplesizeall 3 \
--styleall 'with points palette' --styleall 'with points palette'
#+END_SRC #+END_SRC
@ -135,10 +151,44 @@ perl -nE '$thdeg = $_/100.*360.;
if($.%5) { say "$c $s $thdeg" } if($.%5) { say "$c $s $thdeg" }
else { $s2 = $s/2; else { $s2 = $s/2;
say "$c $s $thdeg $s2"; }' | \ say "$c $s $thdeg $s2"; }' | \
feedgnuplot --domain --square \ feedgnuplot --lines --points --domain --square \
--tuplesize 0 3 \ --tuplesize 0 3 \
--style 0 'with points palette' --style 0 'with points palette' \
--legend 0 'circle' \
--legend 1 'ellipse'
#+END_SRC #+END_SRC
#+RESULTS: #+RESULTS:
[[file:guide-8.svg]] [[file:guide-8.svg]]
Here we also asked for dataset labels to make it clear to the viewer what's
what.
The other significant option involved in the interpretation of data is
=--dataid=. This labels each dataset in the data, so instead of referring to
dataset =0=, you could refer to dataset =circle=. With =--domain --dataid=, each
line of input is interpreted as =x id0 y0 id1 y1...=, with the number of =y= in
each dataset reflecting the tuple size. Naturally, =--dataid= without =--domain=
is identical, except without the leading =x=. The previous plot can be
reproduced with =--dataid=:
#+BEGIN_SRC sh :results file link :exports both
seq 100 | \
perl -nE '$thdeg = $_/100.*360.;
$th = $_/100.*2.*3.14159;
$s=sin($th); $c=cos($th);
if($.%5) { say "$c circle $s $thdeg" }
else { $s2 = $s/2;
say "$c circle $s $thdeg ellipse $s2"; }' | \
feedgnuplot --lines --points --domain --dataid --square \
--tuplesize circle 3 \
--style circle 'with points palette' \
--autolegend
#+END_SRC
#+RESULTS:
[[file:guide-9.svg]]
Note that instead of labelling the datasets explicitly, we can pass
=--autolegend=, and the ID will be used to label each dataset. This works
without =--dataid= also, but the IDs are then the unhelpful sequential integers.