newsworthycharts 1.61.0__tar.gz → 1.61.1__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.
Files changed (51) hide show
  1. {newsworthycharts-1.61.0/newsworthycharts.egg-info → newsworthycharts-1.61.1}/PKG-INFO +7 -3
  2. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/README.rst +5 -1
  3. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/__init__.py +1 -1
  4. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/chart.py +2 -2
  5. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/serialchart.py +7 -2
  6. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1/newsworthycharts.egg-info}/PKG-INFO +7 -3
  7. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/LICENSE.txt +0 -0
  8. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/MANIFEST.in +0 -0
  9. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/bubblemap.py +0 -0
  10. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/categoricalchart.py +0 -0
  11. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/choroplethmap.py +0 -0
  12. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/custom/__init__.py +0 -0
  13. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/custom/climate_cars.py +0 -0
  14. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/datawrapper.py +0 -0
  15. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/lib/__init__.py +0 -0
  16. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/lib/color_fn.py +0 -0
  17. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/lib/colors.py +0 -0
  18. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/lib/datalist.py +0 -0
  19. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/lib/formatter.py +0 -0
  20. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/lib/geography.py +0 -0
  21. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/lib/locator.py +0 -0
  22. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/lib/mimetypes.py +0 -0
  23. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/lib/utils.py +0 -0
  24. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/map.py +0 -0
  25. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/maps/se-4.gpkg +0 -0
  26. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/maps/se-7.gpkg +0 -0
  27. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/rangeplot.py +0 -0
  28. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/rc/newsworthy +0 -0
  29. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/scatterplot.py +0 -0
  30. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/seasonalchart.py +0 -0
  31. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/storage.py +0 -0
  32. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/stripechart.py +0 -0
  33. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/translations/datawrapper_regions.csv +0 -0
  34. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/translations/regions.py +0 -0
  35. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts/translations/se_municipalities.csv +0 -0
  36. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts.egg-info/SOURCES.txt +0 -0
  37. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts.egg-info/dependency_links.txt +0 -0
  38. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts.egg-info/not-zip-safe +0 -0
  39. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts.egg-info/requires.txt +0 -0
  40. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/newsworthycharts.egg-info/top_level.txt +0 -0
  41. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/setup.cfg +0 -0
  42. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/setup.py +0 -0
  43. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/test/test_categorical_chart.py +0 -0
  44. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/test/test_choropleth_maps.py +0 -0
  45. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/test/test_custom_climate_cars.py +0 -0
  46. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/test/test_data_list.py +0 -0
  47. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/test/test_datawrapper.py +0 -0
  48. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/test/test_main.py +0 -0
  49. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/test/test_rangeplot.py +0 -0
  50. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/test/test_scatterplot.py +0 -0
  51. {newsworthycharts-1.61.0 → newsworthycharts-1.61.1}/test/test_serial_chart.py +0 -0
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: newsworthycharts
3
- Version: 1.61.0
3
+ Version: 1.61.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.61.0.tar.gz
6
+ Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.61.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
@@ -167,7 +167,7 @@ These settings are available for all chart types:
167
167
  - value_labels = False # Print out values at points on line?
168
168
  - highlighted_x_ranges = [] # List of tuples with start and end of highlighted areas
169
169
  - x_range_labels = [] # List of labels for highlighted areas
170
- - label_placement = "legend" # legend|inline|outside
170
+ - label_placement = "legend" # legend|inline|outside|line
171
171
  - color_labels = None # A dictionary of label/color, to override style colors
172
172
 
173
173
  **SeasonalChart**
@@ -252,6 +252,10 @@ Roadmap
252
252
  Changelog
253
253
  ---------
254
254
 
255
+ - 1.61.1
256
+
257
+ - Improved handling of label_placement = "outside" in SerialChart
258
+
255
259
  - 1.61.0
256
260
 
257
261
  - Added non-binned color ramp support to ChoroplethMap, with `use_bins=False`
@@ -140,7 +140,7 @@ These settings are available for all chart types:
140
140
  - value_labels = False # Print out values at points on line?
141
141
  - highlighted_x_ranges = [] # List of tuples with start and end of highlighted areas
142
142
  - x_range_labels = [] # List of labels for highlighted areas
143
- - label_placement = "legend" # legend|inline|outside
143
+ - label_placement = "legend" # legend|inline|outside|line
144
144
  - color_labels = None # A dictionary of label/color, to override style colors
145
145
 
146
146
  **SeasonalChart**
@@ -225,6 +225,10 @@ Roadmap
225
225
  Changelog
226
226
  ---------
227
227
 
228
+ - 1.61.1
229
+
230
+ - Improved handling of label_placement = "outside" in SerialChart
231
+
228
232
  - 1.61.0
229
233
 
230
234
  - Added non-binned color ramp support to ChoroplethMap, with `use_bins=False`
@@ -1,4 +1,4 @@
1
- __version__ = "1.61.0"
1
+ __version__ = "1.61.1"
2
2
 
3
3
  from .chart import Chart
4
4
  from .choroplethmap import ChoroplethMap
@@ -667,7 +667,7 @@ class Chart(object):
667
667
  'Creator': f"NWCharts {__version__}",
668
668
  }
669
669
  """
670
- self._fig.savefig(buf, **args)
670
+ self._fig.savefig(buf, **args) # , bbox_inches="tight")
671
671
  buf.seek(0)
672
672
  self._storage.save(key, buf, img_format, storage_options)
673
673
 
@@ -716,7 +716,7 @@ class Chart(object):
716
716
  'Creator': f"NWCharts {__version__}",
717
717
  }
718
718
  """
719
- self._fig.savefig(buf, **args)
719
+ self._fig.savefig(buf, **args) #, bbox_inches="tight")
720
720
  buf.seek(0)
721
721
  self._storage.save(key, buf, file_format, storage_options)
722
722
 
@@ -46,7 +46,7 @@ class SerialChart(Chart):
46
46
  self.colors = None
47
47
 
48
48
  # Optional: where to place series label
49
- self.label_placement = "legend" # legend|inline|outside
49
+ self.label_placement = "legend" # legend|inline|outside|line
50
50
 
51
51
  # Optional: annotate each point with a value label
52
52
  self.value_labels = False
@@ -549,7 +549,12 @@ class SerialChart(Chart):
549
549
  _ = self.ax.legend(loc="best")
550
550
  _.set(zorder=20)
551
551
  elif self.label_placement == "outside":
552
- self.ax.legend(bbox_to_anchor=(0, 1, 1, 0), loc="lower right")
552
+ # mpl 3.7 has loc=outside, but it will lead to overlaps with titles
553
+ # also, has to be set on the figure, causing image size to change
554
+ _ = self.ax.legend(bbox_to_anchor=(1.04, 1), loc="upper left")
555
+ # self._fig.subplots_adjust(right=0.8)
556
+ # self._fig.tight_layout()
557
+ _.set(zorder=20)
553
558
  elif self.label_placement == "inline":
554
559
  labelLines(self.ax.get_lines(), align=False, zorder=13, outline_width=4, fontweight="bold")
555
560
 
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: newsworthycharts
3
- Version: 1.61.0
3
+ Version: 1.61.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.61.0.tar.gz
6
+ Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.61.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
@@ -167,7 +167,7 @@ These settings are available for all chart types:
167
167
  - value_labels = False # Print out values at points on line?
168
168
  - highlighted_x_ranges = [] # List of tuples with start and end of highlighted areas
169
169
  - x_range_labels = [] # List of labels for highlighted areas
170
- - label_placement = "legend" # legend|inline|outside
170
+ - label_placement = "legend" # legend|inline|outside|line
171
171
  - color_labels = None # A dictionary of label/color, to override style colors
172
172
 
173
173
  **SeasonalChart**
@@ -252,6 +252,10 @@ Roadmap
252
252
  Changelog
253
253
  ---------
254
254
 
255
+ - 1.61.1
256
+
257
+ - Improved handling of label_placement = "outside" in SerialChart
258
+
255
259
  - 1.61.0
256
260
 
257
261
  - Added non-binned color ramp support to ChoroplethMap, with `use_bins=False`