newsworthycharts 1.57.0__py3-none-any.whl → 1.57.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/choroplethmap.py +2 -16
- {newsworthycharts-1.57.0.dist-info → newsworthycharts-1.57.1.dist-info}/METADATA +10 -5
- {newsworthycharts-1.57.0.dist-info → newsworthycharts-1.57.1.dist-info}/RECORD +7 -7
- {newsworthycharts-1.57.0.dist-info → newsworthycharts-1.57.1.dist-info}/LICENSE.txt +0 -0
- {newsworthycharts-1.57.0.dist-info → newsworthycharts-1.57.1.dist-info}/WHEEL +0 -0
- {newsworthycharts-1.57.0.dist-info → newsworthycharts-1.57.1.dist-info}/top_level.txt +0 -0
newsworthycharts/__init__.py
CHANGED
@@ -112,27 +112,13 @@ class ChoroplethMap(Map):
|
|
112
112
|
|
113
113
|
fig = df.plot(ax=self.ax, **args)
|
114
114
|
# Add outer edge
|
115
|
-
|
116
|
-
mp = MultiPolygon([g for g in df.explode(index_parts=True).geometry])
|
117
|
-
gpd.GeoSeries(mp.boundary).plot(
|
115
|
+
gpd.GeoSeries(df.unary_union).plot(
|
118
116
|
ax=self.ax,
|
119
117
|
edgecolor="lightgrey",
|
120
118
|
linewidth=0.2,
|
119
|
+
facecolor="none",
|
121
120
|
color="none",
|
122
121
|
)
|
123
|
-
"""
|
124
|
-
unary = df.unary_union
|
125
|
-
if unary.geom_type == "Polygon":
|
126
|
-
# We don't know in advance if unary_union will produce a polugon or a multipolygon
|
127
|
-
unary = MultiPolygon([unary])
|
128
|
-
for uu in unary.geoms:
|
129
|
-
gpd.GeoSeries(uu).plot(
|
130
|
-
ax=self.ax,
|
131
|
-
edgecolor="lightgrey",
|
132
|
-
linewidth=0.2,
|
133
|
-
facecolor="none",
|
134
|
-
)
|
135
|
-
"""
|
136
122
|
self.ax.axis("off")
|
137
123
|
|
138
124
|
# Format numbers in legend
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: newsworthycharts
|
3
|
-
Version: 1.57.
|
3
|
+
Version: 1.57.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.57.
|
6
|
+
Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.57.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
|
@@ -11,7 +11,7 @@ Requires-Python: >=3.9
|
|
11
11
|
Description-Content-Type: text/x-rst
|
12
12
|
License-File: LICENSE.txt
|
13
13
|
Requires-Dist: Babel <3,>=2.14.0
|
14
|
-
Requires-Dist: Pillow ==10.
|
14
|
+
Requires-Dist: Pillow ==10.3.0
|
15
15
|
Requires-Dist: PyYAML >=3
|
16
16
|
Requires-Dist: adjustText ==0.7.3
|
17
17
|
Requires-Dist: boto3 >=1.26
|
@@ -19,7 +19,7 @@ Requires-Dist: geopandas ==0.14.3
|
|
19
19
|
Requires-Dist: langcodes >=3.3
|
20
20
|
Requires-Dist: mapclassify ==2.6.1
|
21
21
|
Requires-Dist: matplotlib-label-lines ==0.5.1
|
22
|
-
Requires-Dist: matplotlib ==3.8.
|
22
|
+
Requires-Dist: matplotlib ==3.8.4
|
23
23
|
Requires-Dist: numpy <2,>=1.21.0
|
24
24
|
Requires-Dist: python-dateutil <3,>=2
|
25
25
|
Requires-Dist: requests >=2.22
|
@@ -237,9 +237,14 @@ Roadmap
|
|
237
237
|
Changelog
|
238
238
|
---------
|
239
239
|
|
240
|
+
- 1.57.1
|
241
|
+
|
242
|
+
- Fix missing outline in choropleth maps
|
243
|
+
- matplotlib==3.8.4; Pillow==10.3.0
|
244
|
+
|
240
245
|
- 1.57.0
|
241
246
|
|
242
|
-
-
|
247
|
+
- Changed z-ordering so that line are always on top of bars, and ylines/zero lines are behind lines but in front of bars
|
243
248
|
- Avoid using the same color for trendline and lines
|
244
249
|
- `yline` was moved to the SerialChart class, where it makes sense.
|
245
250
|
|
@@ -1,8 +1,8 @@
|
|
1
|
-
newsworthycharts/__init__.py,sha256=
|
1
|
+
newsworthycharts/__init__.py,sha256=KwgSbe7UCJDXJhb66gLqhiZ1or8woAGXKYTXvM3YQo8,1160
|
2
2
|
newsworthycharts/bubblemap.py,sha256=nkocWmpiFgfjEuJGAsthjY5X7Q56jXWsZHUGXw4PwgE,2587
|
3
3
|
newsworthycharts/categoricalchart.py,sha256=k2cd96pNysbVU88nZduiLGpzyjMsDXTbASAVu6ov-kI,14686
|
4
4
|
newsworthycharts/chart.py,sha256=YXoK2VvB7t8sfVrCVkLpPulHHsDKQZKAm_aTCig_4ck,30583
|
5
|
-
newsworthycharts/choroplethmap.py,sha256=
|
5
|
+
newsworthycharts/choroplethmap.py,sha256=YamK4yf7X5y7VU_13I3iKE4KbwJ1Ie2x9fezwCh17cg,6124
|
6
6
|
newsworthycharts/datawrapper.py,sha256=RRkAVTpfP4updKxUIBaSmKuBi2RUVPaBRF8HDQhlGGA,11250
|
7
7
|
newsworthycharts/map.py,sha256=e0WRcLTmb1KPZ7_-05QXgthMEmKrTpnci40DXnmd6Rc,5984
|
8
8
|
newsworthycharts/rangeplot.py,sha256=NE1W9TnmlpK6T3RvBJOU3nd73EXqkj17OY9i5zlw_cQ,8366
|
@@ -28,8 +28,8 @@ newsworthycharts/rc/newsworthy,sha256=X0btLNrmk2DRrfOsKj_WCSIgeD6btacEN2tRF_B4m8
|
|
28
28
|
newsworthycharts/translations/datawrapper_regions.csv,sha256=fzZcQRX6RFMlNNP8mpgfYNdR3Y0QAlQxDXk8FXTaWWI,9214
|
29
29
|
newsworthycharts/translations/regions.py,sha256=Nv1McQjggD4S3JRu82rDMTG3pqUVR13E5-FBpSYbm98,239
|
30
30
|
newsworthycharts/translations/se_municipalities.csv,sha256=br_mm-IvzQtj_W55_ATREhJ97jWnCweBFlDAVY2EBxA,7098
|
31
|
-
newsworthycharts-1.57.
|
32
|
-
newsworthycharts-1.57.
|
33
|
-
newsworthycharts-1.57.
|
34
|
-
newsworthycharts-1.57.
|
35
|
-
newsworthycharts-1.57.
|
31
|
+
newsworthycharts-1.57.1.dist-info/LICENSE.txt,sha256=Sq6kGICrehbhC_FolNdXf0djKjTpv3YqjFCIYsxdQN4,1069
|
32
|
+
newsworthycharts-1.57.1.dist-info/METADATA,sha256=RnpK8VFn5k0_gYUJOEUlLkIAaKb_8Cwm57K9akt8YIg,26362
|
33
|
+
newsworthycharts-1.57.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
34
|
+
newsworthycharts-1.57.1.dist-info/top_level.txt,sha256=dn_kzIj8UgUCMsh1PHdVEQJHVGSsN7Z8YJF-8xXa8n0,17
|
35
|
+
newsworthycharts-1.57.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|