newsworthycharts 1.54.3__tar.gz → 1.54.5__tar.gz
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-1.54.3 → newsworthycharts-1.54.5}/PKG-INFO +14 -3
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/README.rst +12 -1
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/__init__.py +1 -1
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/chart.py +0 -1
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/lib/formatter.py +4 -4
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/lib/locator.py +4 -1
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts.egg-info/PKG-INFO +14 -3
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts.egg-info/SOURCES.txt +1 -13
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts.egg-info/requires.txt +6 -6
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/setup.cfg +1 -1
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/setup.py +6 -6
- newsworthycharts-1.54.3/.flake8 +0 -7
- newsworthycharts-1.54.3/.github/workflows/lint.yml +0 -17
- newsworthycharts-1.54.3/.pre-commit-config.yaml +0 -5
- newsworthycharts-1.54.3/.pylintrc +0 -3
- newsworthycharts-1.54.3/requirements.txt +0 -16
- newsworthycharts-1.54.3/test/__init__.py +0 -0
- newsworthycharts-1.54.3/test/data/__init__.py +0 -0
- newsworthycharts-1.54.3/test/data/elpriser.json +0 -1604
- newsworthycharts-1.54.3/test/data/range_plot_with_long_labels.json +0 -227
- newsworthycharts-1.54.3/test/data/scatterplot.py +0 -292
- newsworthycharts-1.54.3/test/data/test-so2.csv +0 -291
- newsworthycharts-1.54.3/test/images/logo.png +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/LICENSE.txt +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/MANIFEST.in +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/bubblemap.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/categoricalchart.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/choroplethmap.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/custom/__init__.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/custom/climate_cars.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/datawrapper.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/lib/__init__.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/lib/color_fn.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/lib/colors.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/lib/datalist.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/lib/geography.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/lib/mimetypes.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/lib/utils.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/map.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/maps/se-4.gpkg +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/maps/se-7.gpkg +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/rangeplot.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/rc/newsworthy +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/scatterplot.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/seasonalchart.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/serialchart.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/storage.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/stripechart.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/translations/datawrapper_regions.csv +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/translations/regions.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts/translations/se_municipalities.csv +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts.egg-info/dependency_links.txt +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts.egg-info/not-zip-safe +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/newsworthycharts.egg-info/top_level.txt +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/test/test_categorical_chart.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/test/test_choropleth_maps.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/test/test_custom_climate_cars.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/test/test_data_list.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/test/test_datawrapper.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/test/test_main.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/test/test_rangeplot.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/test/test_scatterplot.py +0 -0
- {newsworthycharts-1.54.3 → newsworthycharts-1.54.5}/test/test_serial_chart.py +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: newsworthycharts
|
3
|
-
Version: 1.54.
|
3
|
+
Version: 1.54.5
|
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.54.
|
6
|
+
Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.54.5.tar.gz
|
7
7
|
Author: Jens Finnäs and Leo Wallentin, J++ Stockholm
|
8
8
|
Author-email: stockholm@jplusplus.org
|
9
9
|
License: MIT
|
@@ -168,6 +168,17 @@ Roadmap
|
|
168
168
|
Changelog
|
169
169
|
---------
|
170
170
|
|
171
|
+
- 1.54.5
|
172
|
+
|
173
|
+
- Improved tick placement in daily charts
|
174
|
+
- Minor upgrades: matplotlib==3.8.3; Pillow==10.2.0; geopandas==0.14.3
|
175
|
+
|
176
|
+
- 1.54.4
|
177
|
+
|
178
|
+
- Use Babel 2.14, and pin version
|
179
|
+
- Require numpy>=1.21.0 (now required by Matplotlib)
|
180
|
+
- Patch upgrades: matplotlib==3.8.2; geopandas==0.14.1
|
181
|
+
|
171
182
|
- 1.54.3
|
172
183
|
|
173
184
|
- Fix duplicated integer values in y axis
|
@@ -194,7 +205,7 @@ Changelog
|
|
194
205
|
- 1.53.0
|
195
206
|
|
196
207
|
- Fixed bug in value_labels, trying to access a color value that didn't exist
|
197
|
-
- Dropped Python 3.
|
208
|
+
- Dropped Python 3.8 support (upstream)
|
198
209
|
- Uses Matplotlib 3.8
|
199
210
|
- Uses Pillow 10
|
200
211
|
|
@@ -155,6 +155,17 @@ Roadmap
|
|
155
155
|
Changelog
|
156
156
|
---------
|
157
157
|
|
158
|
+
- 1.54.5
|
159
|
+
|
160
|
+
- Improved tick placement in daily charts
|
161
|
+
- Minor upgrades: matplotlib==3.8.3; Pillow==10.2.0; geopandas==0.14.3
|
162
|
+
|
163
|
+
- 1.54.4
|
164
|
+
|
165
|
+
- Use Babel 2.14, and pin version
|
166
|
+
- Require numpy>=1.21.0 (now required by Matplotlib)
|
167
|
+
- Patch upgrades: matplotlib==3.8.2; geopandas==0.14.1
|
168
|
+
|
158
169
|
- 1.54.3
|
159
170
|
|
160
171
|
- Fix duplicated integer values in y axis
|
@@ -181,7 +192,7 @@ Changelog
|
|
181
192
|
- 1.53.0
|
182
193
|
|
183
194
|
- Fixed bug in value_labels, trying to access a color value that didn't exist
|
184
|
-
- Dropped Python 3.
|
195
|
+
- Dropped Python 3.8 support (upstream)
|
185
196
|
- Uses Matplotlib 3.8
|
186
197
|
- Uses Pillow 10
|
187
198
|
|
@@ -376,7 +376,6 @@ class Chart(object):
|
|
376
376
|
loc = get_best_locator(delta, len(dates), self.interval)
|
377
377
|
self.ax.xaxis.set_major_locator(loc)
|
378
378
|
formatter = Formatter(self._language)
|
379
|
-
print(self._language)
|
380
379
|
|
381
380
|
# if isinstance(loc, WeekdayLocator):
|
382
381
|
if self.interval == "weekly":
|
@@ -67,7 +67,7 @@ class Formatter(object):
|
|
67
67
|
pattern[1] = ".#" + pattern[1]
|
68
68
|
pattern = "0".join(pattern)
|
69
69
|
string = format_decimal(x, locale=self.l, format=pattern)
|
70
|
-
minus = self.l.number_symbols["minusSign"]
|
70
|
+
minus = self.l.number_symbols["latn"]["minusSign"]
|
71
71
|
string = string.replace("-", minus)
|
72
72
|
return string
|
73
73
|
|
@@ -79,7 +79,7 @@ class Formatter(object):
|
|
79
79
|
|
80
80
|
x = round(Decimal(x), decimals)
|
81
81
|
string = format_unit(x, 'temperature-generic', "short", locale=self.l)
|
82
|
-
minus = self.l.number_symbols["minusSign"]
|
82
|
+
minus = self.l.number_symbols["latn"]["minusSign"]
|
83
83
|
string = string.replace("-", minus)
|
84
84
|
# if x > 0:
|
85
85
|
# string = "+" + string
|
@@ -94,7 +94,7 @@ class Formatter(object):
|
|
94
94
|
scale = "temperature-{}".format(self.scale)
|
95
95
|
x = round(Decimal(x), decimals)
|
96
96
|
string = format_unit(x, scale, "short", locale=self.l)
|
97
|
-
minus = self.l.number_symbols["minusSign"]
|
97
|
+
minus = self.l.number_symbols["latn"]["minusSign"]
|
98
98
|
string = string.replace("-", minus)
|
99
99
|
return string
|
100
100
|
|
@@ -117,7 +117,7 @@ class Formatter(object):
|
|
117
117
|
pattern[1] = "0" * decimals + pattern[1]
|
118
118
|
pattern = ".".join(pattern)
|
119
119
|
string = format_decimal(x, locale=self.l, format=pattern)
|
120
|
-
minus = self.l.number_symbols["minusSign"]
|
120
|
+
minus = self.l.number_symbols["latn"]["minusSign"]
|
121
121
|
string = string.replace("-", minus)
|
122
122
|
return string
|
123
123
|
|
@@ -79,7 +79,10 @@ def get_best_locator(delta, points, interval=None):
|
|
79
79
|
|
80
80
|
elif interval == "daily" or interval is None:
|
81
81
|
if delta.days > 30:
|
82
|
-
# FIXME dont print every month
|
83
82
|
return MonthLocator()
|
83
|
+
elif delta.days > 21:
|
84
|
+
return DayLocator(interval=10)
|
85
|
+
elif delta.days > 7:
|
86
|
+
return DayLocator(interval=5)
|
84
87
|
else:
|
85
88
|
return DayLocator()
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: newsworthycharts
|
3
|
-
Version: 1.54.
|
3
|
+
Version: 1.54.5
|
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.54.
|
6
|
+
Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.54.5.tar.gz
|
7
7
|
Author: Jens Finnäs and Leo Wallentin, J++ Stockholm
|
8
8
|
Author-email: stockholm@jplusplus.org
|
9
9
|
License: MIT
|
@@ -168,6 +168,17 @@ Roadmap
|
|
168
168
|
Changelog
|
169
169
|
---------
|
170
170
|
|
171
|
+
- 1.54.5
|
172
|
+
|
173
|
+
- Improved tick placement in daily charts
|
174
|
+
- Minor upgrades: matplotlib==3.8.3; Pillow==10.2.0; geopandas==0.14.3
|
175
|
+
|
176
|
+
- 1.54.4
|
177
|
+
|
178
|
+
- Use Babel 2.14, and pin version
|
179
|
+
- Require numpy>=1.21.0 (now required by Matplotlib)
|
180
|
+
- Patch upgrades: matplotlib==3.8.2; geopandas==0.14.1
|
181
|
+
|
171
182
|
- 1.54.3
|
172
183
|
|
173
184
|
- Fix duplicated integer values in y axis
|
@@ -194,7 +205,7 @@ Changelog
|
|
194
205
|
- 1.53.0
|
195
206
|
|
196
207
|
- Fixed bug in value_labels, trying to access a color value that didn't exist
|
197
|
-
- Dropped Python 3.
|
208
|
+
- Dropped Python 3.8 support (upstream)
|
198
209
|
- Uses Matplotlib 3.8
|
199
210
|
- Uses Pillow 10
|
200
211
|
|
@@ -1,13 +1,8 @@
|
|
1
|
-
.flake8
|
2
|
-
.pre-commit-config.yaml
|
3
|
-
.pylintrc
|
4
1
|
LICENSE.txt
|
5
2
|
MANIFEST.in
|
6
3
|
README.rst
|
7
|
-
requirements.txt
|
8
4
|
setup.cfg
|
9
5
|
setup.py
|
10
|
-
.github/workflows/lint.yml
|
11
6
|
newsworthycharts/__init__.py
|
12
7
|
newsworthycharts/bubblemap.py
|
13
8
|
newsworthycharts/categoricalchart.py
|
@@ -44,7 +39,6 @@ newsworthycharts/rc/newsworthy
|
|
44
39
|
newsworthycharts/translations/datawrapper_regions.csv
|
45
40
|
newsworthycharts/translations/regions.py
|
46
41
|
newsworthycharts/translations/se_municipalities.csv
|
47
|
-
test/__init__.py
|
48
42
|
test/test_categorical_chart.py
|
49
43
|
test/test_choropleth_maps.py
|
50
44
|
test/test_custom_climate_cars.py
|
@@ -53,10 +47,4 @@ test/test_datawrapper.py
|
|
53
47
|
test/test_main.py
|
54
48
|
test/test_rangeplot.py
|
55
49
|
test/test_scatterplot.py
|
56
|
-
test/test_serial_chart.py
|
57
|
-
test/data/__init__.py
|
58
|
-
test/data/elpriser.json
|
59
|
-
test/data/range_plot_with_long_labels.json
|
60
|
-
test/data/scatterplot.py
|
61
|
-
test/data/test-so2.csv
|
62
|
-
test/images/logo.png
|
50
|
+
test/test_serial_chart.py
|
@@ -1,13 +1,13 @@
|
|
1
|
-
Babel
|
2
|
-
Pillow==10.
|
1
|
+
Babel<3,>=2.14.0
|
2
|
+
Pillow==10.2.0
|
3
3
|
PyYAML>=3
|
4
4
|
adjustText==0.7.3
|
5
5
|
boto3>=1.26
|
6
|
-
geopandas==0.14.
|
6
|
+
geopandas==0.14.3
|
7
7
|
langcodes>=3.3
|
8
8
|
mapclassify==2.6.1
|
9
9
|
matplotlib-label-lines==0.5.1
|
10
|
-
matplotlib==3.8.
|
11
|
-
numpy<2,>=1.
|
12
|
-
python-dateutil
|
10
|
+
matplotlib==3.8.3
|
11
|
+
numpy<2,>=1.21.0
|
12
|
+
python-dateutil<3,>=2
|
13
13
|
requests>=2.22
|
@@ -25,17 +25,17 @@ setup(
|
|
25
25
|
python_requires='>=3.9',
|
26
26
|
install_requires=[
|
27
27
|
"boto3>=1.26",
|
28
|
-
"matplotlib==3.8.
|
28
|
+
"matplotlib==3.8.3",
|
29
29
|
"langcodes>=3.3",
|
30
|
-
"Babel>=2.
|
30
|
+
"Babel>=2.14.0,<3",
|
31
31
|
"PyYAML>=3",
|
32
32
|
"adjustText==0.7.3",
|
33
|
-
"numpy>=1.
|
34
|
-
"python-dateutil>=2",
|
35
|
-
"Pillow==10.
|
33
|
+
"numpy>=1.21.0,<2",
|
34
|
+
"python-dateutil>=2,<3",
|
35
|
+
"Pillow==10.2.0",
|
36
36
|
"requests>=2.22",
|
37
37
|
"matplotlib-label-lines==0.5.1",
|
38
|
-
"geopandas==0.14.
|
38
|
+
"geopandas==0.14.3",
|
39
39
|
"mapclassify==2.6.1",
|
40
40
|
],
|
41
41
|
setup_requires=["flake8"],
|
newsworthycharts-1.54.3/.flake8
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
name: flake8 Lint
|
2
|
-
|
3
|
-
on: [push, pull_request]
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
flake8-lint:
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
name: Lint
|
9
|
-
steps:
|
10
|
-
- name: Check out source repository
|
11
|
-
uses: actions/checkout@v3
|
12
|
-
- name: Set up Python environment
|
13
|
-
uses: actions/setup-python@v4
|
14
|
-
with:
|
15
|
-
python-version: "3.11"
|
16
|
-
- name: flake8 Lint
|
17
|
-
uses: py-actions/flake8@v2
|
@@ -1,16 +0,0 @@
|
|
1
|
-
boto3==1.28.72
|
2
|
-
matplotlib==3.8.1
|
3
|
-
langcodes==3.3.0
|
4
|
-
Babel==2.13.1
|
5
|
-
PyYAML==6.0.1
|
6
|
-
adjustText==0.7.3
|
7
|
-
numpy==1.26.1
|
8
|
-
python-dateutil==2.8.2
|
9
|
-
pytest==7.4.3
|
10
|
-
flake8==6.1.0
|
11
|
-
requests==2.31.0
|
12
|
-
python-dotenv==1.0.0
|
13
|
-
matplotlib-label-lines==0.5.1
|
14
|
-
Pillow==10.1.0
|
15
|
-
geopandas==0.14.0
|
16
|
-
mapclassify==2.6.1
|
File without changes
|
File without changes
|