From fb1d31fdcd5d5c8b31bb098c34143996d47e618f Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Tue, 25 Aug 2026 16:09:31 +0200 Subject: chart: label a narrow axis in decimals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A span of 1.2 degrees rounded to whole degrees printed "15" against both the middle and bottom rows, so the axis asserted that two rows drawn at different heights were the same temperature. It reads as a rendering fault, and the scale becomes useless exactly when the chart is at its most magnified. Below a two degree span the labels carry one decimal. Two degrees is where five rows put adjacent labels half a degree apart, which still rounds apart; below that they collide. A decimal label that would not fit the gutter -- well below freezing, where the minus sign costs a column -- falls back to whole degrees, which is wrong but legible and beats shearing the column. The gutter widens by one to hold "16.0°". --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 50ce8fd..1d79322 100644 --- a/README.md +++ b/README.md @@ -13,26 +13,26 @@ one creeps in. ``` Krakow, PL Tue 25 Aug 05:44 up 19:39 down GMT+2 day 12-17° rain 1.9mm over 7h sun 0h43m of 13h54m daylight - pollen ragweed 6.9 mugwort 4.4 low grass 3.1 low birch 0.0 none + pollen ragweed 5.0 mugwort 4.4 low grass 3.1 low birch 0.0 none hr temp feels conditions hum mm rain - 15 16° lt drizzle 79% 0.3 70% - 16 16° 80% 0.3 44% + 16 16° lt drizzle 80% 0.3 44% 17 16° overcast 77% 0.0 27% 18 16° lt drizzle 78% 0.1 27% 19 15° 86% 0.2 36% 20 15° 87% 0.4 45% 21 15° 85% 0.2 52% 22 15° (14) overcast 80% 0.0 58% - - 16°│ ████████████████ - │████████▄▄▄▄▄▄▄▄████████████████ - 15°│████████████████████████████████ - │████████████████████████████████▄▄▄▄▄▄▄▄ ████████ - 15°│████████████████████████████████████████▄▄▄▄▄▄▄▄████████████████ -rain│▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▁▁▁▁▁▁▁▁▃▃▃▃▃▃▃▃▅▅▅▅▅▅▅▅████████▅▅▅▅▅▅▅▅▁▁▁▁▁▁▁▁ max 0.4mm - 15 16 17 18 19 20 21 22 - 15-16° + 23 15° 78% 0.0 59% + +15.9°│ ████████████████ + │▄▄▄▄▄▄▄▄████████████████ +15.2°│████████████████████████ ▄▄▄▄▄▄▄▄ + │████████████████████████▄▄▄▄▄▄▄▄ ████████████████ +14.6°│████████████████████████████████▄▄▄▄▄▄▄▄████████████████████████ + rain│▆▆▆▆▆▆▆▆▁▁▁▁▁▁▁▁▃▃▃▃▃▃▃▃▅▅▅▅▅▅▅▅████████▅▅▅▅▅▅▅▅▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ max 0.4mm + 16 17 18 19 20 21 22 23 + 14.6°-15.9° ``` When IMGW has issued a warning for your powiat, it leads the output: -- cgit v1.3