newsworthycharts 1.65.0__py3-none-any.whl → 1.65.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/categoricalchart.py +2 -2
- newsworthycharts/custom/pts.py +8 -0
- newsworthycharts/custom/temperature.py +20 -0
- newsworthycharts/translations/.~lock.datawrapper_regions.csv# +1 -0
- newsworthycharts/translations/.~lock.se_municipalities.csv# +1 -0
- {newsworthycharts-1.65.0.dist-info → newsworthycharts-1.65.1.dist-info}/METADATA +20 -16
- {newsworthycharts-1.65.0.dist-info → newsworthycharts-1.65.1.dist-info}/RECORD +11 -7
- {newsworthycharts-1.65.0.dist-info → newsworthycharts-1.65.1.dist-info}/WHEEL +1 -1
- {newsworthycharts-1.65.0.dist-info → newsworthycharts-1.65.1.dist-info}/top_level.txt +0 -0
- {newsworthycharts-1.65.0.dist-info → newsworthycharts-1.65.1.dist-info}/LICENSE.txt +0 -0
newsworthycharts/__init__.py
CHANGED
@@ -292,13 +292,13 @@ class ProgressChart(CategoricalChart):
|
|
292
292
|
def __init__(self, *args, **kwargs):
|
293
293
|
self.target = None
|
294
294
|
self.target_label = None
|
295
|
-
self.legend = False
|
296
295
|
|
297
296
|
# should value labels be rendered?
|
298
297
|
self.value_labels = None # "progress"|"remaining"
|
299
298
|
|
300
299
|
super().__init__(*args, **kwargs)
|
301
300
|
self.stacked = True
|
301
|
+
self.legend = False
|
302
302
|
|
303
303
|
def _add_data(self):
|
304
304
|
if self.target is None:
|
@@ -339,7 +339,7 @@ class ProgressChart(CategoricalChart):
|
|
339
339
|
|
340
340
|
# rect.set_linewidth(1)
|
341
341
|
# rect.set_edgecolor(color_progress)
|
342
|
-
|
342
|
+
|
343
343
|
# LABELING: Target
|
344
344
|
if self.target_label:
|
345
345
|
offset = 25
|
@@ -0,0 +1,20 @@
|
|
1
|
+
from newsworthycharts import SerialChart
|
2
|
+
import numpy as np
|
3
|
+
|
4
|
+
class TemperatueChart(SerialChart):
|
5
|
+
def _add_data(self):
|
6
|
+
self.color_fn = "positive_negative"
|
7
|
+
if len(self.data) != 1:
|
8
|
+
raise ValueError("TemperatueChart takes one and only one data series.")
|
9
|
+
|
10
|
+
dates = [x[0] for x in self.data[0]]
|
11
|
+
values = [x[1] for x in self.data[0]]
|
12
|
+
s = np.array(values, dtype=np.float)
|
13
|
+
mean = np.nanmean(s)
|
14
|
+
vs_mean = s - mean
|
15
|
+
self.data[0] = list(zip(dates, vs_mean.tolist()))
|
16
|
+
self._ymin = np.nanmin(vs_mean)
|
17
|
+
self.data.max_val = np.nanmax(vs_mean)
|
18
|
+
|
19
|
+
|
20
|
+
super(TemperatueChart, self)._add_data()
|
@@ -0,0 +1 @@
|
|
1
|
+
,jens,jens-XPS-13,10.02.2020 11:26,file:///home/jens/.config/libreoffice/4;
|
@@ -0,0 +1 @@
|
|
1
|
+
,jens,jens-XPS-13-9310,20.03.2023 13:52,file:///home/jens/.config/libreoffice/4;
|
@@ -1,29 +1,29 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: newsworthycharts
|
3
|
-
Version: 1.65.
|
3
|
+
Version: 1.65.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.65.
|
6
|
+
Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.65.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
|
10
10
|
Requires-Python: >=3.9
|
11
11
|
Description-Content-Type: text/x-rst
|
12
12
|
License-File: LICENSE.txt
|
13
|
-
Requires-Dist: boto3
|
14
|
-
Requires-Dist: matplotlib
|
15
|
-
Requires-Dist: langcodes
|
16
|
-
Requires-Dist: Babel
|
17
|
-
Requires-Dist: PyYAML
|
18
|
-
Requires-Dist: adjustText
|
19
|
-
Requires-Dist: numpy
|
20
|
-
Requires-Dist: python-dateutil
|
21
|
-
Requires-Dist: Pillow
|
22
|
-
Requires-Dist: requests
|
23
|
-
Requires-Dist: matplotlib-label-lines
|
24
|
-
Requires-Dist: geopandas
|
25
|
-
Requires-Dist: mapclassify
|
26
|
-
Requires-Dist: puremagic
|
13
|
+
Requires-Dist: boto3>=1.26
|
14
|
+
Requires-Dist: matplotlib==3.9.2
|
15
|
+
Requires-Dist: langcodes>=3.3
|
16
|
+
Requires-Dist: Babel<3,>=2.14.0
|
17
|
+
Requires-Dist: PyYAML>=3
|
18
|
+
Requires-Dist: adjustText==0.7.3
|
19
|
+
Requires-Dist: numpy>2
|
20
|
+
Requires-Dist: python-dateutil<3,>=2
|
21
|
+
Requires-Dist: Pillow==11.0.0
|
22
|
+
Requires-Dist: requests>=2.22
|
23
|
+
Requires-Dist: matplotlib-label-lines==0.5.1
|
24
|
+
Requires-Dist: geopandas>=1
|
25
|
+
Requires-Dist: mapclassify==2.8.1
|
26
|
+
Requires-Dist: puremagic>=1
|
27
27
|
|
28
28
|
This module contains methods for producing graphs and publishing them on Amazon S3, or in the location of your choice.
|
29
29
|
|
@@ -259,6 +259,10 @@ Roadmap
|
|
259
259
|
Changelog
|
260
260
|
---------
|
261
261
|
|
262
|
+
- 1.65.1
|
263
|
+
|
264
|
+
- Fixed legend bug in ProgressChart
|
265
|
+
|
262
266
|
- 1.65.0
|
263
267
|
|
264
268
|
- Stacked data with percentages summing to very close to 100 % will now be treated as 100 %, assuming rounding error artifacts
|
@@ -1,6 +1,6 @@
|
|
1
|
-
newsworthycharts/__init__.py,sha256=
|
1
|
+
newsworthycharts/__init__.py,sha256=EGDm4UzvQMtB6QL_R1B1b9K2q75byHoVZtmNgz2imX4,1160
|
2
2
|
newsworthycharts/bubblemap.py,sha256=nkocWmpiFgfjEuJGAsthjY5X7Q56jXWsZHUGXw4PwgE,2587
|
3
|
-
newsworthycharts/categoricalchart.py,sha256=
|
3
|
+
newsworthycharts/categoricalchart.py,sha256=wLrS8H69Sx3FT-0r3w3ZOIC83IHb8HCHD0zTsXiIiNA,15737
|
4
4
|
newsworthycharts/chart.py,sha256=y-OjOcFYL4YaqgJEdUyqN6sAqk-8a0wOz5vjktRCr6E,34170
|
5
5
|
newsworthycharts/choroplethmap.py,sha256=bCLf4kcchp1C2djg5AxcOM8BdbaMj0xg7UHrZsDafhI,8013
|
6
6
|
newsworthycharts/datawrapper.py,sha256=RRkAVTpfP4updKxUIBaSmKuBi2RUVPaBRF8HDQhlGGA,11250
|
@@ -13,6 +13,8 @@ newsworthycharts/storage.py,sha256=myERhlpvXyExXxUByBq9eW1bWkCyfH9SwTZbsWSyy3Q,4
|
|
13
13
|
newsworthycharts/stripechart.py,sha256=9B6PX2MyLuKNQ8W0OGdKbP0-U32kju0K_NHHwwz_J68,1547
|
14
14
|
newsworthycharts/custom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
15
|
newsworthycharts/custom/climate_cars.py,sha256=WyNLgjgRCv_zRrzVuk_BmcigFSzpzudjEAYmdvdBe8I,9407
|
16
|
+
newsworthycharts/custom/pts.py,sha256=B_7y0rwvUMSlGoGopqlaS9RipjRrQ7cc4NXmQV_U31E,220
|
17
|
+
newsworthycharts/custom/temperature.py,sha256=8WE5xXTzP1zLc655ltqdE7ypl2pguC6kX9HG_paW4BE,679
|
16
18
|
newsworthycharts/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
19
|
newsworthycharts/lib/color_fn.py,sha256=ck65GzTS9oPgHUCnKDwX2z8zlnNyzncw97MmhXwi8z8,1282
|
18
20
|
newsworthycharts/lib/colors.py,sha256=U04TDkvoMQkcldRFXfnwyLOTwq1SWW2se-Ad-DNcw9o,485
|
@@ -25,11 +27,13 @@ newsworthycharts/lib/utils.py,sha256=l4SUVB-8lnm3XHqHNo5KgZuZNv_VaFnrH76hrZmDq1s
|
|
25
27
|
newsworthycharts/maps/se-4.gpkg,sha256=oWw5j7FPVpI0ig67jNDim8qSn5SG8rcHp0014-uTKZM,290816
|
26
28
|
newsworthycharts/maps/se-7.gpkg,sha256=Vmvqudq_ZtgV0sd6TY6kuk7vzqmYZCJmaxtsJ87q2a8,331776
|
27
29
|
newsworthycharts/rc/newsworthy,sha256=vbYTav1w3DmB5tpaaV7Xl5q7TQJsc9eou6pLCoWc2vs,1589
|
30
|
+
newsworthycharts/translations/.~lock.datawrapper_regions.csv#,sha256=lISyvTWrw8LTG01qMC_F5RxDwamXBeq9vJRKKwBYtRg,75
|
31
|
+
newsworthycharts/translations/.~lock.se_municipalities.csv#,sha256=MEff-0d958fdtjBWyt0UnzZWf8OBFx-6PFKeGqGR8NM,80
|
28
32
|
newsworthycharts/translations/datawrapper_regions.csv,sha256=fzZcQRX6RFMlNNP8mpgfYNdR3Y0QAlQxDXk8FXTaWWI,9214
|
29
33
|
newsworthycharts/translations/regions.py,sha256=Nv1McQjggD4S3JRu82rDMTG3pqUVR13E5-FBpSYbm98,239
|
30
34
|
newsworthycharts/translations/se_municipalities.csv,sha256=br_mm-IvzQtj_W55_ATREhJ97jWnCweBFlDAVY2EBxA,7098
|
31
|
-
newsworthycharts-1.65.
|
32
|
-
newsworthycharts-1.65.
|
33
|
-
newsworthycharts-1.65.
|
34
|
-
newsworthycharts-1.65.
|
35
|
-
newsworthycharts-1.65.
|
35
|
+
newsworthycharts-1.65.1.dist-info/LICENSE.txt,sha256=Sq6kGICrehbhC_FolNdXf0djKjTpv3YqjFCIYsxdQN4,1069
|
36
|
+
newsworthycharts-1.65.1.dist-info/METADATA,sha256=tGThxBsEGRsa_-sZGyAbldfJZQEdW9h-JxqN5kpGJSs,30708
|
37
|
+
newsworthycharts-1.65.1.dist-info/WHEEL,sha256=bFJAMchF8aTQGUgMZzHJyDDMPTO3ToJ7x23SLJa1SVo,92
|
38
|
+
newsworthycharts-1.65.1.dist-info/top_level.txt,sha256=dn_kzIj8UgUCMsh1PHdVEQJHVGSsN7Z8YJF-8xXa8n0,17
|
39
|
+
newsworthycharts-1.65.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|