Skip to content

Commit 2a75b3e

Browse files
committed
fix: Adjust chart width.
1 parent 1e2dda4 commit 2a75b3e

2 files changed

Lines changed: 81 additions & 85 deletions

File tree

docs/base_scripts/base_exploratory_data_analysis_primer.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,7 @@ T.putStrLn $
219219
(bins 30 140000 502000)
220220
houseValues
221221
defPlot
222-
{ widthChars = 68
223-
, heightChars = 18
224-
, legendPos = LegendBottom
222+
{ legendPos = LegendBottom
225223
, xFormatter = \_ _ v -> T.pack (show (round v :: Int))
226224
, xNumTicks = 10
227225
, yNumTicks = 5

docs/exploratory_data_analysis_primer.md

Lines changed: 80 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,7 @@ T.putStrLn $
312312
(bins 30 140000 502000)
313313
houseValues
314314
defPlot
315-
{ widthChars = 68
316-
, heightChars = 18
317-
, legendPos = LegendBottom
315+
{ legendPos = LegendBottom
318316
, xFormatter = \_ _ v -> T.pack (show (round v :: Int))
319317
, xNumTicks = 10
320318
, yNumTicks = 5
@@ -323,88 +321,88 @@ T.putStrLn $
323321

324322
```
325323

326-
> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 770 394" width="770" height="394" font-family="system-ui, -apple-system, sans-serif">
324+
> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 690 426" width="690" height="426" font-family="system-ui, -apple-system, sans-serif">
327325
> <rect width="100%" height="100%" fill="white"/>
328-
> <text x="410" y="26" text-anchor="middle" fill="#222" font-size="14">Median House Prices of California Houses ($)</text>
329-
> <line x1="70" y1="322" x2="750" y2="322" stroke="#aaa" stroke-width="1"/>
330-
> <line x1="70" y1="34" x2="70" y2="322" stroke="#aaa" stroke-width="1"/>
326+
> <text x="370" y="26" text-anchor="middle" fill="#222" font-size="14">Median House Prices of California Houses ($)</text>
327+
> <line x1="70" y1="354" x2="670" y2="354" stroke="#aaa" stroke-width="1"/>
328+
> <line x1="70" y1="34" x2="70" y2="354" stroke="#aaa" stroke-width="1"/>
331329
> <line x1="70" y1="34" x2="66" y2="34" stroke="#aaa" stroke-width="1"/>
332330
> <text x="62" y="38" text-anchor="end" fill="#555" font-size="11">1252.0</text>
333-
> <line x1="70" y1="34" x2="750" y2="34" stroke="#eee" stroke-width="0.50"/>
334-
> <line x1="70" y1="106.25" x2="66" y2="106.25" stroke="#aaa" stroke-width="1"/>
335-
> <text x="62" y="110.25" text-anchor="end" fill="#555" font-size="11">939.0</text>
336-
> <line x1="70" y1="106.25" x2="750" y2="106.25" stroke="#eee" stroke-width="0.50"/>
337-
> <line x1="70" y1="178.50" x2="66" y2="178.50" stroke="#aaa" stroke-width="1"/>
338-
> <text x="62" y="182.50" text-anchor="end" fill="#555" font-size="11">626.0</text>
339-
> <line x1="70" y1="178.50" x2="750" y2="178.50" stroke="#eee" stroke-width="0.50"/>
340-
> <line x1="70" y1="249.75" x2="66" y2="249.75" stroke="#aaa" stroke-width="1"/>
341-
> <text x="62" y="253.75" text-anchor="end" fill="#555" font-size="11">313.0</text>
342-
> <line x1="70" y1="249.75" x2="750" y2="249.75" stroke="#eee" stroke-width="0.50"/>
343-
> <line x1="70" y1="322" x2="66" y2="322" stroke="#aaa" stroke-width="1"/>
344-
> <text x="62" y="326" text-anchor="end" fill="#555" font-size="11">0.0</text>
345-
> <line x1="70" y1="322" x2="750" y2="322" stroke="#eee" stroke-width="0.50"/>
346-
> <line x1="70" y1="322" x2="70" y2="326" stroke="#aaa" stroke-width="1"/>
347-
> <text x="70" y="338" text-anchor="middle" fill="#555" font-size="11">140000</text>
348-
> <line x1="70" y1="34" x2="70" y2="322" stroke="#eee" stroke-width="0.50"/>
349-
> <line x1="145.11" y1="322" x2="145.11" y2="326" stroke="#aaa" stroke-width="1"/>
350-
> <text x="145.11" y="338" text-anchor="middle" fill="#555" font-size="11">180222</text>
351-
> <line x1="145.11" y1="34" x2="145.11" y2="322" stroke="#eee" stroke-width="0.50"/>
352-
> <line x1="221.22" y1="322" x2="221.22" y2="326" stroke="#aaa" stroke-width="1"/>
353-
> <text x="221.22" y="338" text-anchor="middle" fill="#555" font-size="11">220444</text>
354-
> <line x1="221.22" y1="34" x2="221.22" y2="322" stroke="#eee" stroke-width="0.50"/>
355-
> <line x1="296.33" y1="322" x2="296.33" y2="326" stroke="#aaa" stroke-width="1"/>
356-
> <text x="296.33" y="338" text-anchor="middle" fill="#555" font-size="11">260667</text>
357-
> <line x1="296.33" y1="34" x2="296.33" y2="322" stroke="#eee" stroke-width="0.50"/>
358-
> <line x1="372.44" y1="322" x2="372.44" y2="326" stroke="#aaa" stroke-width="1"/>
359-
> <text x="372.44" y="338" text-anchor="middle" fill="#555" font-size="11">300889</text>
360-
> <line x1="372.44" y1="34" x2="372.44" y2="322" stroke="#eee" stroke-width="0.50"/>
361-
> <line x1="447.56" y1="322" x2="447.56" y2="326" stroke="#aaa" stroke-width="1"/>
362-
> <text x="447.56" y="338" text-anchor="middle" fill="#555" font-size="11">341111</text>
363-
> <line x1="447.56" y1="34" x2="447.56" y2="322" stroke="#eee" stroke-width="0.50"/>
364-
> <line x1="523.67" y1="322" x2="523.67" y2="326" stroke="#aaa" stroke-width="1"/>
365-
> <text x="523.67" y="338" text-anchor="middle" fill="#555" font-size="11">381333</text>
366-
> <line x1="523.67" y1="34" x2="523.67" y2="322" stroke="#eee" stroke-width="0.50"/>
367-
> <line x1="598.78" y1="322" x2="598.78" y2="326" stroke="#aaa" stroke-width="1"/>
368-
> <text x="598.78" y="338" text-anchor="middle" fill="#555" font-size="11">421556</text>
369-
> <line x1="598.78" y1="34" x2="598.78" y2="322" stroke="#eee" stroke-width="0.50"/>
370-
> <line x1="674.89" y1="322" x2="674.89" y2="326" stroke="#aaa" stroke-width="1"/>
371-
> <text x="674.89" y="338" text-anchor="middle" fill="#555" font-size="11">461778</text>
372-
> <line x1="674.89" y1="34" x2="674.89" y2="322" stroke="#eee" stroke-width="0.50"/>
373-
> <line x1="750" y1="322" x2="750" y2="326" stroke="#aaa" stroke-width="1"/>
374-
> <text x="750" y="338" text-anchor="middle" fill="#555" font-size="11">502000</text>
375-
> <line x1="750" y1="34" x2="750" y2="322" stroke="#eee" stroke-width="0.50"/>
376-
> <rect x="70" y="86.91" width="21.67" height="235.09" fill="#1abc9c"/>
377-
> <rect x="92.67" y="34.00" width="21.67" height="288.00" fill="#1abc9c"/>
378-
> <rect x="115.33" y="83.92" width="21.67" height="238.08" fill="#1abc9c"/>
379-
> <rect x="138" y="88.98" width="21.67" height="233.02" fill="#1abc9c"/>
380-
> <rect x="160.67" y="123.94" width="21.67" height="198.06" fill="#1abc9c"/>
381-
> <rect x="183.33" y="182.60" width="21.67" height="139.40" fill="#1abc9c"/>
382-
> <rect x="206" y="140.04" width="21.67" height="181.96" fill="#1abc9c"/>
383-
> <rect x="228.67" y="138.66" width="21.67" height="183.34" fill="#1abc9c"/>
384-
> <rect x="251.33" y="175.70" width="21.67" height="146.30" fill="#1abc9c"/>
385-
> <rect x="274" y="202.84" width="21.67" height="119.16" fill="#1abc9c"/>
386-
> <rect x="296.67" y="192.72" width="21.67" height="129.28" fill="#1abc9c"/>
387-
> <rect x="319.33" y="211.81" width="21.67" height="110.19" fill="#1abc9c"/>
388-
> <rect x="342" y="230.91" width="21.67" height="91.09" fill="#1abc9c"/>
389-
> <rect x="364.67" y="260.81" width="21.67" height="61.19" fill="#1abc9c"/>
390-
> <rect x="387.33" y="257.13" width="21.67" height="64.87" fill="#1abc9c"/>
391-
> <rect x="410" y="253.22" width="21.67" height="68.78" fill="#1abc9c"/>
392-
> <rect x="432.67" y="249.08" width="21.67" height="72.92" fill="#1abc9c"/>
393-
> <rect x="455.33" y="246.09" width="21.67" height="75.91" fill="#1abc9c"/>
394-
> <rect x="478" y="265.87" width="21.67" height="56.13" fill="#1abc9c"/>
395-
> <rect x="500.67" y="281.28" width="21.67" height="40.72" fill="#1abc9c"/>
396-
> <rect x="523.33" y="287.96" width="21.67" height="34.04" fill="#1abc9c"/>
397-
> <rect x="546" y="285.88" width="21.67" height="36.12" fill="#1abc9c"/>
398-
> <rect x="568.67" y="292.79" width="21.67" height="29.21" fill="#1abc9c"/>
399-
> <rect x="591.33" y="297.16" width="21.67" height="24.84" fill="#1abc9c"/>
400-
> <rect x="614" y="296.24" width="21.67" height="25.76" fill="#1abc9c"/>
401-
> <rect x="636.67" y="293.71" width="21.67" height="28.29" fill="#1abc9c"/>
402-
> <rect x="659.33" y="305.67" width="21.67" height="16.33" fill="#1abc9c"/>
403-
> <rect x="682" y="305.44" width="21.67" height="16.56" fill="#1abc9c"/>
404-
> <rect x="704.67" y="309.81" width="21.67" height="12.19" fill="#1abc9c"/>
405-
> <rect x="727.33" y="84.61" width="21.67" height="237.39" fill="#1abc9c"/>
406-
> <rect x="377.50" y="375" width="12" height="12" fill="#1abc9c"/>
407-
> <text x="393.50" y="385" text-anchor="start" fill="#555" font-size="11">count</text>
331+
> <line x1="70" y1="34" x2="670" y2="34" stroke="#eee" stroke-width="0.50"/>
332+
> <line x1="70" y1="114.25" x2="66" y2="114.25" stroke="#aaa" stroke-width="1"/>
333+
> <text x="62" y="118.25" text-anchor="end" fill="#555" font-size="11">939.0</text>
334+
> <line x1="70" y1="114.25" x2="670" y2="114.25" stroke="#eee" stroke-width="0.50"/>
335+
> <line x1="70" y1="194.50" x2="66" y2="194.50" stroke="#aaa" stroke-width="1"/>
336+
> <text x="62" y="198.50" text-anchor="end" fill="#555" font-size="11">626.0</text>
337+
> <line x1="70" y1="194.50" x2="670" y2="194.50" stroke="#eee" stroke-width="0.50"/>
338+
> <line x1="70" y1="273.75" x2="66" y2="273.75" stroke="#aaa" stroke-width="1"/>
339+
> <text x="62" y="277.75" text-anchor="end" fill="#555" font-size="11">313.0</text>
340+
> <line x1="70" y1="273.75" x2="670" y2="273.75" stroke="#eee" stroke-width="0.50"/>
341+
> <line x1="70" y1="354" x2="66" y2="354" stroke="#aaa" stroke-width="1"/>
342+
> <text x="62" y="358" text-anchor="end" fill="#555" font-size="11">0.0</text>
343+
> <line x1="70" y1="354" x2="670" y2="354" stroke="#eee" stroke-width="0.50"/>
344+
> <line x1="70" y1="354" x2="70" y2="358" stroke="#aaa" stroke-width="1"/>
345+
> <text x="70" y="370" text-anchor="middle" fill="#555" font-size="11">140000</text>
346+
> <line x1="70" y1="34" x2="70" y2="354" stroke="#eee" stroke-width="0.50"/>
347+
> <line x1="137.11" y1="354" x2="137.11" y2="358" stroke="#aaa" stroke-width="1"/>
348+
> <text x="137.11" y="370" text-anchor="middle" fill="#555" font-size="11">180222</text>
349+
> <line x1="137.11" y1="34" x2="137.11" y2="354" stroke="#eee" stroke-width="0.50"/>
350+
> <line x1="203.22" y1="354" x2="203.22" y2="358" stroke="#aaa" stroke-width="1"/>
351+
> <text x="203.22" y="370" text-anchor="middle" fill="#555" font-size="11">220444</text>
352+
> <line x1="203.22" y1="34" x2="203.22" y2="354" stroke="#eee" stroke-width="0.50"/>
353+
> <line x1="270.33" y1="354" x2="270.33" y2="358" stroke="#aaa" stroke-width="1"/>
354+
> <text x="270.33" y="370" text-anchor="middle" fill="#555" font-size="11">260667</text>
355+
> <line x1="270.33" y1="34" x2="270.33" y2="354" stroke="#eee" stroke-width="0.50"/>
356+
> <line x1="336.44" y1="354" x2="336.44" y2="358" stroke="#aaa" stroke-width="1"/>
357+
> <text x="336.44" y="370" text-anchor="middle" fill="#555" font-size="11">300889</text>
358+
> <line x1="336.44" y1="34" x2="336.44" y2="354" stroke="#eee" stroke-width="0.50"/>
359+
> <line x1="403.56" y1="354" x2="403.56" y2="358" stroke="#aaa" stroke-width="1"/>
360+
> <text x="403.56" y="370" text-anchor="middle" fill="#555" font-size="11">341111</text>
361+
> <line x1="403.56" y1="34" x2="403.56" y2="354" stroke="#eee" stroke-width="0.50"/>
362+
> <line x1="469.67" y1="354" x2="469.67" y2="358" stroke="#aaa" stroke-width="1"/>
363+
> <text x="469.67" y="370" text-anchor="middle" fill="#555" font-size="11">381333</text>
364+
> <line x1="469.67" y1="34" x2="469.67" y2="354" stroke="#eee" stroke-width="0.50"/>
365+
> <line x1="536.78" y1="354" x2="536.78" y2="358" stroke="#aaa" stroke-width="1"/>
366+
> <text x="536.78" y="370" text-anchor="middle" fill="#555" font-size="11">421556</text>
367+
> <line x1="536.78" y1="34" x2="536.78" y2="354" stroke="#eee" stroke-width="0.50"/>
368+
> <line x1="602.89" y1="354" x2="602.89" y2="358" stroke="#aaa" stroke-width="1"/>
369+
> <text x="602.89" y="370" text-anchor="middle" fill="#555" font-size="11">461778</text>
370+
> <line x1="602.89" y1="34" x2="602.89" y2="354" stroke="#eee" stroke-width="0.50"/>
371+
> <line x1="670" y1="354" x2="670" y2="358" stroke="#aaa" stroke-width="1"/>
372+
> <text x="670" y="370" text-anchor="middle" fill="#555" font-size="11">502000</text>
373+
> <line x1="670" y1="34" x2="670" y2="354" stroke="#eee" stroke-width="0.50"/>
374+
> <rect x="70" y="92.79" width="19" height="261.21" fill="#1abc9c"/>
375+
> <rect x="90" y="34.00" width="19" height="320.00" fill="#1abc9c"/>
376+
> <rect x="110" y="89.46" width="19" height="264.54" fill="#1abc9c"/>
377+
> <rect x="130" y="95.09" width="19" height="258.91" fill="#1abc9c"/>
378+
> <rect x="150" y="133.94" width="19" height="220.06" fill="#1abc9c"/>
379+
> <rect x="170" y="199.11" width="19" height="154.89" fill="#1abc9c"/>
380+
> <rect x="190" y="151.83" width="19" height="202.17" fill="#1abc9c"/>
381+
> <rect x="210" y="150.29" width="19" height="203.71" fill="#1abc9c"/>
382+
> <rect x="230" y="191.44" width="19" height="162.56" fill="#1abc9c"/>
383+
> <rect x="250" y="221.60" width="19" height="132.40" fill="#1abc9c"/>
384+
> <rect x="270" y="210.36" width="19" height="143.64" fill="#1abc9c"/>
385+
> <rect x="290" y="231.57" width="19" height="122.43" fill="#1abc9c"/>
386+
> <rect x="310" y="252.79" width="19" height="101.21" fill="#1abc9c"/>
387+
> <rect x="330" y="286.01" width="19" height="67.99" fill="#1abc9c"/>
388+
> <rect x="350" y="281.92" width="19" height="72.08" fill="#1abc9c"/>
389+
> <rect x="370" y="277.58" width="19" height="76.42" fill="#1abc9c"/>
390+
> <rect x="390" y="272.98" width="19" height="81.02" fill="#1abc9c"/>
391+
> <rect x="410" y="269.65" width="19" height="84.35" fill="#1abc9c"/>
392+
> <rect x="430" y="291.64" width="19" height="62.36" fill="#1abc9c"/>
393+
> <rect x="450" y="308.76" width="19" height="45.24" fill="#1abc9c"/>
394+
> <rect x="470" y="316.17" width="19" height="37.83" fill="#1abc9c"/>
395+
> <rect x="490" y="313.87" width="19" height="40.13" fill="#1abc9c"/>
396+
> <rect x="510" y="321.54" width="19" height="32.46" fill="#1abc9c"/>
397+
> <rect x="530" y="326.40" width="19" height="27.60" fill="#1abc9c"/>
398+
> <rect x="550" y="325.37" width="19" height="28.63" fill="#1abc9c"/>
399+
> <rect x="570" y="322.56" width="19" height="31.44" fill="#1abc9c"/>
400+
> <rect x="590" y="335.85" width="19" height="18.15" fill="#1abc9c"/>
401+
> <rect x="610" y="335.60" width="19" height="18.40" fill="#1abc9c"/>
402+
> <rect x="630" y="340.45" width="19" height="13.55" fill="#1abc9c"/>
403+
> <rect x="650" y="90.23" width="19" height="263.77" fill="#1abc9c"/>
404+
> <rect x="337.50" y="407" width="12" height="12" fill="#1abc9c"/>
405+
> <text x="353.50" y="417" text-anchor="start" fill="#555" font-size="11">count</text>
408406
> </svg>
409407
410408

0 commit comments

Comments
 (0)