newsworthycharts 1.67.0__tar.gz → 1.68.0__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.67.0/newsworthycharts.egg-info → newsworthycharts-1.68.0}/PKG-INFO +8 -2
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/README.rst +6 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/__init__.py +1 -1
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/categoricalchart.py +7 -4
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/chart.py +1 -1
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0/newsworthycharts.egg-info}/PKG-INFO +8 -2
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/LICENSE.txt +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/MANIFEST.in +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/bubblemap.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/choroplethmap.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/custom/__init__.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/custom/climate_cars.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/datawrapper.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/lib/__init__.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/lib/color_fn.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/lib/colors.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/lib/datalist.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/lib/formatter.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/lib/geography.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/lib/locator.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/lib/mimetypes.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/lib/utils.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/map.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/maps/se-4.gpkg +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/maps/se-7.gpkg +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/rangeplot.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/rc/newsworthy +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/scatterplot.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/seasonalchart.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/serialchart.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/storage.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/stripechart.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/translations/datawrapper_regions.csv +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/translations/regions.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/translations/se_municipalities.csv +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts.egg-info/SOURCES.txt +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts.egg-info/dependency_links.txt +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts.egg-info/not-zip-safe +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts.egg-info/requires.txt +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts.egg-info/top_level.txt +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/setup.cfg +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/setup.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/test/test_categorical_chart.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/test/test_choropleth_maps.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/test/test_custom_climate_cars.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/test/test_data_list.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/test/test_datawrapper.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/test/test_main.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/test/test_rangeplot.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/test/test_scatterplot.py +0 -0
- {newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/test/test_serial_chart.py +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: newsworthycharts
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.68.0
|
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.
|
6
|
+
Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.68.0.tar.gz
|
7
7
|
Author: Jens Finnäs and Leo Wallentin, J++ Stockholm
|
8
8
|
Author-email: stockholm@jplusplus.org
|
9
9
|
License: MIT
|
@@ -259,6 +259,12 @@ Roadmap
|
|
259
259
|
Changelog
|
260
260
|
---------
|
261
261
|
|
262
|
+
- 1.68.0
|
263
|
+
|
264
|
+
- Matplotlib==3.9.3
|
265
|
+
- More padding below chart
|
266
|
+
- Fix zorder issue in labeled multiple pie charts
|
267
|
+
|
262
268
|
- 1.67.0
|
263
269
|
|
264
270
|
- Fixed label margins in pie charts
|
@@ -29,7 +29,7 @@ class CategoricalChart(Chart):
|
|
29
29
|
self.show_ticks = False
|
30
30
|
|
31
31
|
if len(self.data) > 1:
|
32
|
-
subaxes = self._fig.subplots(1, len(self.data))
|
32
|
+
subaxes = self._fig.subplots(1, len(self.data), subplot_kw={"zorder": -1})
|
33
33
|
patches = []
|
34
34
|
for idx, serie in enumerate(self.data):
|
35
35
|
if len(self.data) == 1:
|
@@ -52,18 +52,21 @@ class CategoricalChart(Chart):
|
|
52
52
|
labels=labels if legend_placement == "inline" else None,
|
53
53
|
startangle=90,
|
54
54
|
colors=colors,
|
55
|
-
explode=explode
|
55
|
+
explode=explode,
|
56
56
|
)
|
57
57
|
if idx == 0:
|
58
58
|
patches += _pie[0]
|
59
|
-
|
59
|
+
if len(self.data) > 1:
|
60
|
+
subax.axis('equal')
|
60
61
|
# `labels` in pie charts are used to label the series, not the values
|
61
62
|
if self.labels:
|
62
63
|
subax.set_title(self.labels[idx], loc='center', y=0)
|
63
64
|
if legend_placement == "inline":
|
64
65
|
self.legend = False
|
65
66
|
elif legend_placement == "legend":
|
66
|
-
self.ax.legend(patches, labels, loc='best', frameon=True, fancybox=True)
|
67
|
+
_ = self.ax.legend(patches, labels, loc='best', frameon=True, fancybox=True)
|
68
|
+
_.set(zorder=20)
|
69
|
+
# self.ax.figure.subplots_adjust()
|
67
70
|
elif legend_placement == "outside":
|
68
71
|
_ = self.ax.legend(patches, labels, bbox_to_anchor=(1.04, 1), loc="upper left")
|
69
72
|
_.set(zorder=20)
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: newsworthycharts
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.68.0
|
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.
|
6
|
+
Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.68.0.tar.gz
|
7
7
|
Author: Jens Finnäs and Leo Wallentin, J++ Stockholm
|
8
8
|
Author-email: stockholm@jplusplus.org
|
9
9
|
License: MIT
|
@@ -259,6 +259,12 @@ Roadmap
|
|
259
259
|
Changelog
|
260
260
|
---------
|
261
261
|
|
262
|
+
- 1.68.0
|
263
|
+
|
264
|
+
- Matplotlib==3.9.3
|
265
|
+
- More padding below chart
|
266
|
+
- Fix zorder issue in labeled multiple pie charts
|
267
|
+
|
262
268
|
- 1.67.0
|
263
269
|
|
264
270
|
- Fixed label margins in pie charts
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts/translations/regions.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{newsworthycharts-1.67.0 → newsworthycharts-1.68.0}/newsworthycharts.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|