Skip to content

Instantly share code, notes, and snippets.

@jupihes
Last active September 17, 2022 19:01
Show Gist options
  • Save jupihes/b475a0fd3efb91e063b81fffecb32209 to your computer and use it in GitHub Desktop.
Save jupihes/b475a0fd3efb91e063b81fffecb32209 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
<?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">
<!-- Created with matplotlib (https://matplotlib.org/) -->
<svg height="357.238125pt" version="1.1" viewBox="0 0 553.551799 357.238125" width="553.551799pt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<metadata>
<rdf:RDF xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<cc:Work>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:date>2022-09-17T23:24:36.359269</dc:date>
<dc:format>image/svg+xml</dc:format>
<dc:creator>
<cc:Agent>
<dc:title>Matplotlib v3.3.2, https://matplotlib.org/</dc:title>
</cc:Agent>
</dc:creator>
</cc:Work>
</rdf:RDF>
</metadata>
<defs>
<style type="text/css">*{stroke-linecap:butt;stroke-linejoin:round;}</style>
</defs>
<g id="figure_1">
<g id="patch_1">
<path d="M 0 357.238125
L 553.551799 357.238125
L 553.551799 0
L 0 0
z
" style="fill:#ffffff;"/>
</g>
<g id="axes_1">
<g id="patch_2">
<path d="M 38.482813 333.36
L 540.682813 333.36
L 540.682813 7.2
L 38.482813 7.2
z
" style="fill:#ffffff;"/>
</g>
<g id="patch_3">
<path clip-path="url(#pae8593db51)" d="M 228.173769 318.534545
C 251.205465 318.534545 273.296944 309.383956 289.582813 293.098087
C 305.868681 276.812218 315.019271 254.72074 315.019271 231.689043
C 315.019271 208.657347 305.868681 186.565869 289.582813 170.28
C 273.296944 153.994131 251.205465 144.843541 228.173769 144.843541
C 205.142073 144.843541 183.050594 153.994131 166.764726 170.28
C 150.478857 186.565869 141.328267 208.657347 141.328267 231.689043
C 141.328267 254.72074 150.478857 276.812218 166.764726 293.098087
C 183.050594 309.383956 205.142073 318.534545 228.173769 318.534545
z
" style="fill:#008000;opacity:0.2;stroke:#008000;stroke-linejoin:miter;"/>
</g>
<g id="patch_4">
<path clip-path="url(#pae8593db51)" d="M 228.173769 195.716459
C 251.205465 195.716459 273.296944 186.565869 289.582813 170.28
C 305.868681 153.994131 315.019271 131.902653 315.019271 108.870957
C 315.019271 85.83926 305.868681 63.747782 289.582813 47.461913
C 273.296944 31.176044 251.205465 22.025455 228.173769 22.025455
C 205.142073 22.025455 183.050594 31.176044 166.764726 47.461913
C 150.478857 63.747782 141.328267 85.83926 141.328267 108.870957
C 141.328267 131.902653 150.478857 153.994131 166.764726 170.28
C 183.050594 186.565869 205.142073 195.716459 228.173769 195.716459
z
" style="fill:#008000;opacity:0.2;stroke:#008000;stroke-linejoin:miter;"/>
</g>
<g id="patch_5">
<path clip-path="url(#pae8593db51)" d="M 350.991856 318.534545
C 374.023552 318.534545 396.115031 309.383956 412.400899 293.098087
C 428.686768 276.812218 437.837358 254.72074 437.837358 231.689043
C 437.837358 208.657347 428.686768 186.565869 412.400899 170.28
C 396.115031 153.994131 374.023552 144.843541 350.991856 144.843541
C 327.96016 144.843541 305.868681 153.994131 289.582813 170.28
C 273.296944 186.565869 264.146354 208.657347 264.146354 231.689043
C 264.146354 254.72074 273.296944 276.812218 289.582813 293.098087
C 305.868681 309.383956 327.96016 318.534545 350.991856 318.534545
z
" style="fill:#008000;opacity:0.2;stroke:#008000;stroke-linejoin:miter;"/>
</g>
<g id="patch_6">
<path clip-path="url(#pae8593db51)" d="M 350.991856 195.716459
C 374.023552 195.716459 396.115031 186.565869 412.400899 170.28
C 428.686768 153.994131 437.837358 131.902653 437.837358 108.870957
C 437.837358 85.83926 428.686768 63.747782 412.400899 47.461913
C 396.115031 31.176044 374.023552 22.025455 350.991856 22.025455
C 327.96016 22.025455 305.868681 31.176044 289.582813 47.461913
C 273.296944 63.747782 264.146354 85.83926 264.146354 108.870957
C 264.146354 131.902653 273.296944 153.994131 289.582813 170.28
C 305.868681 186.565869 327.96016 195.716459 350.991856 195.716459
z
" style="fill:#008000;opacity:0.2;stroke:#008000;stroke-linejoin:miter;"/>
</g>
<g id="patch_7">
<path clip-path="url(#pae8593db51)" d="M 166.764726 293.098087
L 412.400899 293.098087
L 412.400899 47.461913
L 166.764726 47.461913
z
" style="fill:#008000;opacity:0.25;stroke:#008000;stroke-linejoin:miter;"/>
</g>
<g id="matplotlib.axis_1">
<g id="xtick_1">
<g id="line2d_1">
<path clip-path="url(#pae8593db51)" d="M 43.946639 333.36
L 43.946639 7.2
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_2">
<defs>
<path d="M 0 0
L 0 3.5
" id="m6cecad8835" style="stroke:#000000;stroke-width:0.8;"/>
</defs>
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="43.946639" xlink:href="#m6cecad8835" y="333.36"/>
</g>
</g>
<g id="text_1">
<!-- −1.00 -->
<g transform="translate(28.623983 347.958438)scale(0.1 -0.1)">
<defs>
<path d="M 10.59375 35.5
L 73.1875 35.5
L 73.1875 27.203125
L 10.59375 27.203125
z
" id="DejaVuSans-8722"/>
<path d="M 12.40625 8.296875
L 28.515625 8.296875
L 28.515625 63.921875
L 10.984375 60.40625
L 10.984375 69.390625
L 28.421875 72.90625
L 38.28125 72.90625
L 38.28125 8.296875
L 54.390625 8.296875
L 54.390625 0
L 12.40625 0
z
" id="DejaVuSans-49"/>
<path d="M 10.6875 12.40625
L 21 12.40625
L 21 0
L 10.6875 0
z
" id="DejaVuSans-46"/>
<path d="M 31.78125 66.40625
Q 24.171875 66.40625 20.328125 58.90625
Q 16.5 51.421875 16.5 36.375
Q 16.5 21.390625 20.328125 13.890625
Q 24.171875 6.390625 31.78125 6.390625
Q 39.453125 6.390625 43.28125 13.890625
Q 47.125 21.390625 47.125 36.375
Q 47.125 51.421875 43.28125 58.90625
Q 39.453125 66.40625 31.78125 66.40625
z
M 31.78125 74.21875
Q 44.046875 74.21875 50.515625 64.515625
Q 56.984375 54.828125 56.984375 36.375
Q 56.984375 17.96875 50.515625 8.265625
Q 44.046875 -1.421875 31.78125 -1.421875
Q 19.53125 -1.421875 13.0625 8.265625
Q 6.59375 17.96875 6.59375 36.375
Q 6.59375 54.828125 13.0625 64.515625
Q 19.53125 74.21875 31.78125 74.21875
z
" id="DejaVuSans-48"/>
</defs>
<use xlink:href="#DejaVuSans-8722"/>
<use x="83.789062" xlink:href="#DejaVuSans-49"/>
<use x="147.412109" xlink:href="#DejaVuSans-46"/>
<use x="179.199219" xlink:href="#DejaVuSans-48"/>
<use x="242.822266" xlink:href="#DejaVuSans-48"/>
</g>
</g>
</g>
<g id="xtick_2">
<g id="line2d_3">
<path clip-path="url(#pae8593db51)" d="M 105.355682 333.36
L 105.355682 7.2
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_4">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="105.355682" xlink:href="#m6cecad8835" y="333.36"/>
</g>
</g>
<g id="text_2">
<!-- −0.75 -->
<g transform="translate(90.033026 347.958438)scale(0.1 -0.1)">
<defs>
<path d="M 8.203125 72.90625
L 55.078125 72.90625
L 55.078125 68.703125
L 28.609375 0
L 18.3125 0
L 43.21875 64.59375
L 8.203125 64.59375
z
" id="DejaVuSans-55"/>
<path d="M 10.796875 72.90625
L 49.515625 72.90625
L 49.515625 64.59375
L 19.828125 64.59375
L 19.828125 46.734375
Q 21.96875 47.46875 24.109375 47.828125
Q 26.265625 48.1875 28.421875 48.1875
Q 40.625 48.1875 47.75 41.5
Q 54.890625 34.8125 54.890625 23.390625
Q 54.890625 11.625 47.5625 5.09375
Q 40.234375 -1.421875 26.90625 -1.421875
Q 22.3125 -1.421875 17.546875 -0.640625
Q 12.796875 0.140625 7.71875 1.703125
L 7.71875 11.625
Q 12.109375 9.234375 16.796875 8.0625
Q 21.484375 6.890625 26.703125 6.890625
Q 35.15625 6.890625 40.078125 11.328125
Q 45.015625 15.765625 45.015625 23.390625
Q 45.015625 31 40.078125 35.4375
Q 35.15625 39.890625 26.703125 39.890625
Q 22.75 39.890625 18.8125 39.015625
Q 14.890625 38.140625 10.796875 36.28125
z
" id="DejaVuSans-53"/>
</defs>
<use xlink:href="#DejaVuSans-8722"/>
<use x="83.789062" xlink:href="#DejaVuSans-48"/>
<use x="147.412109" xlink:href="#DejaVuSans-46"/>
<use x="179.199219" xlink:href="#DejaVuSans-55"/>
<use x="242.822266" xlink:href="#DejaVuSans-53"/>
</g>
</g>
</g>
<g id="xtick_3">
<g id="line2d_5">
<path clip-path="url(#pae8593db51)" d="M 166.764726 333.36
L 166.764726 7.2
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_6">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="166.764726" xlink:href="#m6cecad8835" y="333.36"/>
</g>
</g>
<g id="text_3">
<!-- −0.50 -->
<g transform="translate(151.442069 347.958438)scale(0.1 -0.1)">
<use xlink:href="#DejaVuSans-8722"/>
<use x="83.789062" xlink:href="#DejaVuSans-48"/>
<use x="147.412109" xlink:href="#DejaVuSans-46"/>
<use x="179.199219" xlink:href="#DejaVuSans-53"/>
<use x="242.822266" xlink:href="#DejaVuSans-48"/>
</g>
</g>
</g>
<g id="xtick_4">
<g id="line2d_7">
<path clip-path="url(#pae8593db51)" d="M 228.173769 333.36
L 228.173769 7.2
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_8">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="228.173769" xlink:href="#m6cecad8835" y="333.36"/>
</g>
</g>
<g id="text_4">
<!-- −0.25 -->
<g transform="translate(212.851113 347.958438)scale(0.1 -0.1)">
<defs>
<path d="M 19.1875 8.296875
L 53.609375 8.296875
L 53.609375 0
L 7.328125 0
L 7.328125 8.296875
Q 12.9375 14.109375 22.625 23.890625
Q 32.328125 33.6875 34.8125 36.53125
Q 39.546875 41.84375 41.421875 45.53125
Q 43.3125 49.21875 43.3125 52.78125
Q 43.3125 58.59375 39.234375 62.25
Q 35.15625 65.921875 28.609375 65.921875
Q 23.96875 65.921875 18.8125 64.3125
Q 13.671875 62.703125 7.8125 59.421875
L 7.8125 69.390625
Q 13.765625 71.78125 18.9375 73
Q 24.125 74.21875 28.421875 74.21875
Q 39.75 74.21875 46.484375 68.546875
Q 53.21875 62.890625 53.21875 53.421875
Q 53.21875 48.921875 51.53125 44.890625
Q 49.859375 40.875 45.40625 35.40625
Q 44.1875 33.984375 37.640625 27.21875
Q 31.109375 20.453125 19.1875 8.296875
z
" id="DejaVuSans-50"/>
</defs>
<use xlink:href="#DejaVuSans-8722"/>
<use x="83.789062" xlink:href="#DejaVuSans-48"/>
<use x="147.412109" xlink:href="#DejaVuSans-46"/>
<use x="179.199219" xlink:href="#DejaVuSans-50"/>
<use x="242.822266" xlink:href="#DejaVuSans-53"/>
</g>
</g>
</g>
<g id="xtick_5">
<g id="line2d_9">
<path clip-path="url(#pae8593db51)" d="M 289.582813 333.36
L 289.582813 7.2
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_10">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="289.582813" xlink:href="#m6cecad8835" y="333.36"/>
</g>
</g>
<g id="text_5">
<!-- 0.00 -->
<g transform="translate(278.45 347.958438)scale(0.1 -0.1)">
<use xlink:href="#DejaVuSans-48"/>
<use x="63.623047" xlink:href="#DejaVuSans-46"/>
<use x="95.410156" xlink:href="#DejaVuSans-48"/>
<use x="159.033203" xlink:href="#DejaVuSans-48"/>
</g>
</g>
</g>
<g id="xtick_6">
<g id="line2d_11">
<path clip-path="url(#pae8593db51)" d="M 350.991856 333.36
L 350.991856 7.2
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_12">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="350.991856" xlink:href="#m6cecad8835" y="333.36"/>
</g>
</g>
<g id="text_6">
<!-- 0.25 -->
<g transform="translate(339.859043 347.958438)scale(0.1 -0.1)">
<use xlink:href="#DejaVuSans-48"/>
<use x="63.623047" xlink:href="#DejaVuSans-46"/>
<use x="95.410156" xlink:href="#DejaVuSans-50"/>
<use x="159.033203" xlink:href="#DejaVuSans-53"/>
</g>
</g>
</g>
<g id="xtick_7">
<g id="line2d_13">
<path clip-path="url(#pae8593db51)" d="M 412.400899 333.36
L 412.400899 7.2
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_14">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="412.400899" xlink:href="#m6cecad8835" y="333.36"/>
</g>
</g>
<g id="text_7">
<!-- 0.50 -->
<g transform="translate(401.268087 347.958438)scale(0.1 -0.1)">
<use xlink:href="#DejaVuSans-48"/>
<use x="63.623047" xlink:href="#DejaVuSans-46"/>
<use x="95.410156" xlink:href="#DejaVuSans-53"/>
<use x="159.033203" xlink:href="#DejaVuSans-48"/>
</g>
</g>
</g>
<g id="xtick_8">
<g id="line2d_15">
<path clip-path="url(#pae8593db51)" d="M 473.809943 333.36
L 473.809943 7.2
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_16">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="473.809943" xlink:href="#m6cecad8835" y="333.36"/>
</g>
</g>
<g id="text_8">
<!-- 0.75 -->
<g transform="translate(462.67713 347.958438)scale(0.1 -0.1)">
<use xlink:href="#DejaVuSans-48"/>
<use x="63.623047" xlink:href="#DejaVuSans-46"/>
<use x="95.410156" xlink:href="#DejaVuSans-55"/>
<use x="159.033203" xlink:href="#DejaVuSans-53"/>
</g>
</g>
</g>
<g id="xtick_9">
<g id="line2d_17">
<path clip-path="url(#pae8593db51)" d="M 535.218986 333.36
L 535.218986 7.2
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_18">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="535.218986" xlink:href="#m6cecad8835" y="333.36"/>
</g>
</g>
<g id="text_9">
<!-- 1.00 -->
<g transform="translate(524.086174 347.958438)scale(0.1 -0.1)">
<use xlink:href="#DejaVuSans-49"/>
<use x="63.623047" xlink:href="#DejaVuSans-46"/>
<use x="95.410156" xlink:href="#DejaVuSans-48"/>
<use x="159.033203" xlink:href="#DejaVuSans-48"/>
</g>
</g>
</g>
</g>
<g id="matplotlib.axis_2">
<g id="ytick_1">
<g id="line2d_19">
<path clip-path="url(#pae8593db51)" d="M 38.482813 317.661704
L 540.682813 317.661704
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_20">
<defs>
<path d="M 0 0
L -3.5 0
" id="md338136463" style="stroke:#000000;stroke-width:0.8;"/>
</defs>
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="38.482813" xlink:href="#md338136463" y="317.661704"/>
</g>
</g>
<g id="text_10">
<!-- −0.6 -->
<g transform="translate(7.2 321.460923)scale(0.1 -0.1)">
<defs>
<path d="M 33.015625 40.375
Q 26.375 40.375 22.484375 35.828125
Q 18.609375 31.296875 18.609375 23.390625
Q 18.609375 15.53125 22.484375 10.953125
Q 26.375 6.390625 33.015625 6.390625
Q 39.65625 6.390625 43.53125 10.953125
Q 47.40625 15.53125 47.40625 23.390625
Q 47.40625 31.296875 43.53125 35.828125
Q 39.65625 40.375 33.015625 40.375
z
M 52.59375 71.296875
L 52.59375 62.3125
Q 48.875 64.0625 45.09375 64.984375
Q 41.3125 65.921875 37.59375 65.921875
Q 27.828125 65.921875 22.671875 59.328125
Q 17.53125 52.734375 16.796875 39.40625
Q 19.671875 43.65625 24.015625 45.921875
Q 28.375 48.1875 33.59375 48.1875
Q 44.578125 48.1875 50.953125 41.515625
Q 57.328125 34.859375 57.328125 23.390625
Q 57.328125 12.15625 50.6875 5.359375
Q 44.046875 -1.421875 33.015625 -1.421875
Q 20.359375 -1.421875 13.671875 8.265625
Q 6.984375 17.96875 6.984375 36.375
Q 6.984375 53.65625 15.1875 63.9375
Q 23.390625 74.21875 37.203125 74.21875
Q 40.921875 74.21875 44.703125 73.484375
Q 48.484375 72.75 52.59375 71.296875
z
" id="DejaVuSans-54"/>
</defs>
<use xlink:href="#DejaVuSans-8722"/>
<use x="83.789062" xlink:href="#DejaVuSans-48"/>
<use x="147.412109" xlink:href="#DejaVuSans-46"/>
<use x="179.199219" xlink:href="#DejaVuSans-54"/>
</g>
</g>
</g>
<g id="ytick_2">
<g id="line2d_21">
<path clip-path="url(#pae8593db51)" d="M 38.482813 268.534469
L 540.682813 268.534469
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_22">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="38.482813" xlink:href="#md338136463" y="268.534469"/>
</g>
</g>
<g id="text_11">
<!-- −0.4 -->
<g transform="translate(7.2 272.333688)scale(0.1 -0.1)">
<defs>
<path d="M 37.796875 64.3125
L 12.890625 25.390625
L 37.796875 25.390625
z
M 35.203125 72.90625
L 47.609375 72.90625
L 47.609375 25.390625
L 58.015625 25.390625
L 58.015625 17.1875
L 47.609375 17.1875
L 47.609375 0
L 37.796875 0
L 37.796875 17.1875
L 4.890625 17.1875
L 4.890625 26.703125
z
" id="DejaVuSans-52"/>
</defs>
<use xlink:href="#DejaVuSans-8722"/>
<use x="83.789062" xlink:href="#DejaVuSans-48"/>
<use x="147.412109" xlink:href="#DejaVuSans-46"/>
<use x="179.199219" xlink:href="#DejaVuSans-52"/>
</g>
</g>
</g>
<g id="ytick_3">
<g id="line2d_23">
<path clip-path="url(#pae8593db51)" d="M 38.482813 219.407235
L 540.682813 219.407235
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_24">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="38.482813" xlink:href="#md338136463" y="219.407235"/>
</g>
</g>
<g id="text_12">
<!-- −0.2 -->
<g transform="translate(7.2 223.206453)scale(0.1 -0.1)">
<use xlink:href="#DejaVuSans-8722"/>
<use x="83.789062" xlink:href="#DejaVuSans-48"/>
<use x="147.412109" xlink:href="#DejaVuSans-46"/>
<use x="179.199219" xlink:href="#DejaVuSans-50"/>
</g>
</g>
</g>
<g id="ytick_4">
<g id="line2d_25">
<path clip-path="url(#pae8593db51)" d="M 38.482813 170.28
L 540.682813 170.28
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_26">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="38.482813" xlink:href="#md338136463" y="170.28"/>
</g>
</g>
<g id="text_13">
<!-- 0.0 -->
<g transform="translate(15.579688 174.079219)scale(0.1 -0.1)">
<use xlink:href="#DejaVuSans-48"/>
<use x="63.623047" xlink:href="#DejaVuSans-46"/>
<use x="95.410156" xlink:href="#DejaVuSans-48"/>
</g>
</g>
</g>
<g id="ytick_5">
<g id="line2d_27">
<path clip-path="url(#pae8593db51)" d="M 38.482813 121.152765
L 540.682813 121.152765
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_28">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="38.482813" xlink:href="#md338136463" y="121.152765"/>
</g>
</g>
<g id="text_14">
<!-- 0.2 -->
<g transform="translate(15.579688 124.951984)scale(0.1 -0.1)">
<use xlink:href="#DejaVuSans-48"/>
<use x="63.623047" xlink:href="#DejaVuSans-46"/>
<use x="95.410156" xlink:href="#DejaVuSans-50"/>
</g>
</g>
</g>
<g id="ytick_6">
<g id="line2d_29">
<path clip-path="url(#pae8593db51)" d="M 38.482813 72.025531
L 540.682813 72.025531
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_30">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="38.482813" xlink:href="#md338136463" y="72.025531"/>
</g>
</g>
<g id="text_15">
<!-- 0.4 -->
<g transform="translate(15.579688 75.824749)scale(0.1 -0.1)">
<use xlink:href="#DejaVuSans-48"/>
<use x="63.623047" xlink:href="#DejaVuSans-46"/>
<use x="95.410156" xlink:href="#DejaVuSans-52"/>
</g>
</g>
</g>
<g id="ytick_7">
<g id="line2d_31">
<path clip-path="url(#pae8593db51)" d="M 38.482813 22.898296
L 540.682813 22.898296
" style="fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;"/>
</g>
<g id="line2d_32">
<g>
<use style="stroke:#000000;stroke-width:0.8;" x="38.482813" xlink:href="#md338136463" y="22.898296"/>
</g>
</g>
<g id="text_16">
<!-- 0.6 -->
<g transform="translate(15.579688 26.697515)scale(0.1 -0.1)">
<use xlink:href="#DejaVuSans-48"/>
<use x="63.623047" xlink:href="#DejaVuSans-46"/>
<use x="95.410156" xlink:href="#DejaVuSans-54"/>
</g>
</g>
</g>
</g>
<g id="patch_8">
<path d="M 38.482813 333.36
L 38.482813 7.2
" style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/>
</g>
<g id="patch_9">
<path d="M 540.682813 333.36
L 540.682813 7.2
" style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/>
</g>
<g id="patch_10">
<path d="M 38.482813 333.36
L 540.682813 333.36
" style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/>
</g>
<g id="patch_11">
<path d="M 38.482813 7.2
L 540.682813 7.2
" style="fill:none;stroke:#000000;stroke-linecap:square;stroke-linejoin:miter;stroke-width:0.8;"/>
</g>
</g>
</g>
<defs>
<clipPath id="pae8593db51">
<rect height="326.16" width="502.2" x="38.482813" y="7.2"/>
</clipPath>
</defs>
</svg>

case for 4

fig = plt.figure()
ax = fig.add_subplot(111)
def func_plot():
    alpha1 = 0.25 # np.random.randint(0, 10) / 10
    rect1 = patches.Rectangle((-0.50, -0.50), 1, 1, color='g', alpha = alpha1)
    #rect2 = patches.Rectangle((0, -0.50), 0.5, 1, color='red', alpha = 0.25)
    for a, b in zip([1, 1, 3, 3],[1, 3, 1, 3]):
        circle_ = patches.Circle((a/4-0.5, b/4-.5), radius= 2**0.5/4, 
                                 color='g', alpha = alpha1 * .8)
        ax.add_patch(circle_)
    #circle2 = patches.Circle((+0.5, 0), radius= 2**0.5/2, color='green', alpha = 0.5)
    ax.add_patch(rect1)
#ax.add_patch(rect2)
#fig = plt.figure()
# ax = fig.add_subplot(111)
func_plot()
#ax.add_patch(circle2)
plt.xlim([-1, 1])
plt.ylim([-1, 1])
plt.axis('equal')
plt.grid()
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Riddle_classic of can-you-cover-the-baking-sheet-with-cookies

import matplotlib
from matplotlib import pyplot as plt, patches

fig = plt.figure()
ax = fig.add_subplot()
def func_plot():
    alpha1 = 0.5 # np.random.randint(0, 10) / 10
    rect1 = patches.Rectangle((-0.50, -0.50), 1, 1, color='g', alpha = alpha1/5)
    #rect2 = patches.Rectangle((0, -0.50), 0.5, 1, color='red', alpha = 0.25)
    for a, b in zip([0, -.5, 0, .5, 0],[0.5, 0, 0, 0, -.5]):
        circle_ = patches.Circle((a, b), radius= 0.5, 
                                 color='m', alpha = alpha1 * .8)
        ax.add_patch(circle_)
    
    ax.add_patch(rect1)

ax = fig.add_subplot(111)
func_plot()
plt.xlim([-1, 1])
plt.ylim([-1, 1])
plt.axis('equal')
plt.grid()
@jupihes
Copy link
Author

jupihes commented Sep 17, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment