newsworthycharts 1.72.0__py3-none-any.whl → 1.72.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- newsworthycharts/__init__.py +1 -1
- newsworthycharts/lib/utils.py +4 -0
- {newsworthycharts-1.72.0.dist-info → newsworthycharts-1.72.1.dist-info}/METADATA +8 -3
- {newsworthycharts-1.72.0.dist-info → newsworthycharts-1.72.1.dist-info}/RECORD +7 -7
- {newsworthycharts-1.72.0.dist-info → newsworthycharts-1.72.1.dist-info}/LICENSE.txt +0 -0
- {newsworthycharts-1.72.0.dist-info → newsworthycharts-1.72.1.dist-info}/WHEEL +0 -0
- {newsworthycharts-1.72.0.dist-info → newsworthycharts-1.72.1.dist-info}/top_level.txt +0 -0
newsworthycharts/__init__.py
CHANGED
newsworthycharts/lib/utils.py
CHANGED
@@ -172,6 +172,10 @@ def guess_date_interval(data):
|
|
172
172
|
# Are there decades with more than one year?
|
173
173
|
if len(set(years)) > len(set(decades)):
|
174
174
|
interval = "yearly"
|
175
|
+
# Are years from different parts of the decade?
|
176
|
+
last_digits = [x % 10 for x in years]
|
177
|
+
if len(set(last_digits)) > 1:
|
178
|
+
interval = "yearly"
|
175
179
|
|
176
180
|
months = [x.month for x in dates]
|
177
181
|
yearmonths = [x.strftime("%Y-%m") for x in dates]
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: newsworthycharts
|
3
|
-
Version: 1.72.
|
3
|
+
Version: 1.72.1
|
4
4
|
Summary: Matplotlib wrapper to create charts and publish them on Amazon S3
|
5
5
|
Home-page: https://github.com/jplusplus/newsworthycharts
|
6
|
-
Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.72.
|
6
|
+
Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.72.1.tar.gz
|
7
7
|
Author: Jens Finnäs and Leo Wallentin, J++ Stockholm
|
8
8
|
Author-email: stockholm@jplusplus.org
|
9
9
|
License: MIT
|
@@ -18,7 +18,7 @@ Requires-Dist: PyYAML >=3
|
|
18
18
|
Requires-Dist: adjustText ==1.3.0
|
19
19
|
Requires-Dist: numpy >2
|
20
20
|
Requires-Dist: python-dateutil <3,>=2
|
21
|
-
Requires-Dist: Pillow ==11.1
|
21
|
+
Requires-Dist: Pillow ==11.2.1
|
22
22
|
Requires-Dist: requests >=2.22
|
23
23
|
Requires-Dist: matplotlib-label-lines ==0.5.1
|
24
24
|
Requires-Dist: geopandas ==1.0.1
|
@@ -271,6 +271,11 @@ Roadmap
|
|
271
271
|
Changelog
|
272
272
|
---------
|
273
273
|
|
274
|
+
- 1.72.1
|
275
|
+
|
276
|
+
- Better interval detection in SerialChart when years are all in different decades
|
277
|
+
- Pillow==11.2.0
|
278
|
+
|
274
279
|
- 1.72.0
|
275
280
|
|
276
281
|
- Use gradient legend för continuous choropleth maps
|
@@ -1,4 +1,4 @@
|
|
1
|
-
newsworthycharts/__init__.py,sha256=
|
1
|
+
newsworthycharts/__init__.py,sha256=PQRGF5fVut2-N573MdBk5WLnTRKz9d3WWjMgw_Pru44,1221
|
2
2
|
newsworthycharts/bubblemap.py,sha256=nkocWmpiFgfjEuJGAsthjY5X7Q56jXWsZHUGXw4PwgE,2587
|
3
3
|
newsworthycharts/categoricalchart.py,sha256=Vr-0yFms0hEVCeUa3vLt3FYBqpX4xLQ8YGPc4LGQN_A,18368
|
4
4
|
newsworthycharts/chart.py,sha256=eXgrNCmfE52rFsvTDkMpCZsmL0oSezdkH---LGYsES8,35062
|
@@ -22,15 +22,15 @@ newsworthycharts/lib/formatter.py,sha256=GNH43hE0bC17OgiV8LYH3YUrEhm7OJh9XzfSV4H
|
|
22
22
|
newsworthycharts/lib/geography.py,sha256=K0_teFmuPJwXX7Py-amJB_1YY5_gL2kBYhz1LrRCyTg,584
|
23
23
|
newsworthycharts/lib/locator.py,sha256=rJHdgiA0LASRzdLINhTeU5zOoq1TCMgge4KOBWSagnM,3041
|
24
24
|
newsworthycharts/lib/mimetypes.py,sha256=bL9HtVWbn2Of39LcBt4u4yelkr4bGZiyebq3OfLnfFY,237
|
25
|
-
newsworthycharts/lib/utils.py,sha256=
|
25
|
+
newsworthycharts/lib/utils.py,sha256=zk2hfbZluRcwwxa-N9LocP65HKiHmvgkBw9saAq1lgU,7403
|
26
26
|
newsworthycharts/maps/se-4.gpkg,sha256=oWw5j7FPVpI0ig67jNDim8qSn5SG8rcHp0014-uTKZM,290816
|
27
27
|
newsworthycharts/maps/se-7.gpkg,sha256=Vmvqudq_ZtgV0sd6TY6kuk7vzqmYZCJmaxtsJ87q2a8,331776
|
28
28
|
newsworthycharts/rc/newsworthy,sha256=yOIZvYS6PG1u19VMcdtfj9vbihKQsey5IprwqK59KgE,1589
|
29
29
|
newsworthycharts/translations/datawrapper_regions.csv,sha256=fzZcQRX6RFMlNNP8mpgfYNdR3Y0QAlQxDXk8FXTaWWI,9214
|
30
30
|
newsworthycharts/translations/regions.py,sha256=Nv1McQjggD4S3JRu82rDMTG3pqUVR13E5-FBpSYbm98,239
|
31
31
|
newsworthycharts/translations/se_municipalities.csv,sha256=br_mm-IvzQtj_W55_ATREhJ97jWnCweBFlDAVY2EBxA,7098
|
32
|
-
newsworthycharts-1.72.
|
33
|
-
newsworthycharts-1.72.
|
34
|
-
newsworthycharts-1.72.
|
35
|
-
newsworthycharts-1.72.
|
36
|
-
newsworthycharts-1.72.
|
32
|
+
newsworthycharts-1.72.1.dist-info/LICENSE.txt,sha256=Sq6kGICrehbhC_FolNdXf0djKjTpv3YqjFCIYsxdQN4,1069
|
33
|
+
newsworthycharts-1.72.1.dist-info/METADATA,sha256=Vz1Yjzk7s9RfcTHDpTIkSB5fb-meY0zgrKRVWENQnxA,34137
|
34
|
+
newsworthycharts-1.72.1.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
35
|
+
newsworthycharts-1.72.1.dist-info/top_level.txt,sha256=dn_kzIj8UgUCMsh1PHdVEQJHVGSsN7Z8YJF-8xXa8n0,17
|
36
|
+
newsworthycharts-1.72.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|