newsworthycharts 1.61.2__tar.gz → 1.61.3__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.2/newsworthycharts.egg-info → newsworthycharts-1.61.3}/PKG-INFO +7 -2
  2. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/README.rst +5 -0
  3. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/__init__.py +1 -1
  4. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/rc/newsworthy +1 -1
  5. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/serialchart.py +10 -7
  6. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3/newsworthycharts.egg-info}/PKG-INFO +7 -2
  7. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/LICENSE.txt +0 -0
  8. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/MANIFEST.in +0 -0
  9. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/bubblemap.py +0 -0
  10. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/categoricalchart.py +0 -0
  11. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/chart.py +0 -0
  12. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/choroplethmap.py +0 -0
  13. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/custom/__init__.py +0 -0
  14. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/custom/climate_cars.py +0 -0
  15. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/datawrapper.py +0 -0
  16. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/lib/__init__.py +0 -0
  17. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/lib/color_fn.py +0 -0
  18. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/lib/colors.py +0 -0
  19. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/lib/datalist.py +0 -0
  20. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/lib/formatter.py +0 -0
  21. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/lib/geography.py +0 -0
  22. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/lib/locator.py +0 -0
  23. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/lib/mimetypes.py +0 -0
  24. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/lib/utils.py +0 -0
  25. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/map.py +0 -0
  26. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/maps/se-4.gpkg +0 -0
  27. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/maps/se-7.gpkg +0 -0
  28. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/rangeplot.py +0 -0
  29. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/scatterplot.py +0 -0
  30. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/seasonalchart.py +0 -0
  31. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/storage.py +0 -0
  32. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/stripechart.py +0 -0
  33. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/translations/datawrapper_regions.csv +0 -0
  34. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/translations/regions.py +0 -0
  35. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts/translations/se_municipalities.csv +0 -0
  36. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts.egg-info/SOURCES.txt +0 -0
  37. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts.egg-info/dependency_links.txt +0 -0
  38. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts.egg-info/not-zip-safe +0 -0
  39. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts.egg-info/requires.txt +0 -0
  40. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/newsworthycharts.egg-info/top_level.txt +0 -0
  41. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/setup.cfg +0 -0
  42. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/setup.py +0 -0
  43. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/test/test_categorical_chart.py +0 -0
  44. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/test/test_choropleth_maps.py +0 -0
  45. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/test/test_custom_climate_cars.py +0 -0
  46. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/test/test_data_list.py +0 -0
  47. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/test/test_datawrapper.py +0 -0
  48. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/test/test_main.py +0 -0
  49. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/test/test_rangeplot.py +0 -0
  50. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/test/test_scatterplot.py +0 -0
  51. {newsworthycharts-1.61.2 → newsworthycharts-1.61.3}/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.2
3
+ Version: 1.61.3
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.2.tar.gz
6
+ Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.61.3.tar.gz
7
7
  Author: Jens Finnäs and Leo Wallentin, J++ Stockholm
8
8
  Author-email: stockholm@jplusplus.org
9
9
  License: MIT
@@ -253,6 +253,11 @@ Roadmap
253
253
  Changelog
254
254
  ---------
255
255
 
256
+ - 1.61.3
257
+
258
+ - z-ordering fix in stacked bar charts
259
+ - added an extra categorical color to the newsworthy style
260
+
256
261
  - 1.61.2
257
262
 
258
263
  - Remove horizontal line between bars in stacked bar charts
@@ -226,6 +226,11 @@ Roadmap
226
226
  Changelog
227
227
  ---------
228
228
 
229
+ - 1.61.3
230
+
231
+ - z-ordering fix in stacked bar charts
232
+ - added an extra categorical color to the newsworthy style
233
+
229
234
  - 1.61.2
230
235
 
231
236
  - Remove horizontal line between bars in stacked bar charts
@@ -1,4 +1,4 @@
1
- __version__ = "1.61.2"
1
+ __version__ = "1.61.3"
2
2
 
3
3
  from .chart import Chart
4
4
  from .choroplethmap import ChoroplethMap
@@ -55,7 +55,7 @@ lines.markersize : 8
55
55
 
56
56
  #! neutral_color : 6f6e75
57
57
  #! strong_color : 00a39a
58
- #! qualitative_colors : 00a39a, DBAD58, A6426A, 93003a
58
+ #! qualitative_colors : 00a39a, DBAD58, A6426A, 93003a, C8C7D1
59
59
  #! positive_color : 00a39a
60
60
  #! negative_color : 93003a
61
61
 
@@ -342,7 +342,6 @@ class SerialChart(Chart):
342
342
  """
343
343
  bar_widths_ = [self._days_in(self.interval, d) for d in dates]
344
344
 
345
- # Put whitespace betw bars, unless there are a lot of bars
346
345
  bbox = self.ax.get_window_extent()
347
346
  if (sum(bar_widths_) * 2 / len(dates)) > bbox.width:
348
347
  bar_widths = bar_widths_
@@ -441,7 +440,7 @@ class SerialChart(Chart):
441
440
  # Could happen if we have two or more lines,
442
441
  # with different start and end points.
443
442
  continue
444
- self._annotate_point(value_label, xy, direction=dir)
443
+ self._annotate_point(value_label, xy, direction=dir, zorder=15)
445
444
 
446
445
  # Add some padding around bars, but only left/right to avoid lines in stacked bars
447
446
  if len(dates) < 100:
@@ -450,8 +449,8 @@ class SerialChart(Chart):
450
449
  for bar in bars:
451
450
  x, y = bar.get_xy()
452
451
  w, h = bar.get_width(), bar.get_height()
453
- self.ax.plot([x + w, x + w], [y, y + h], color='white', lw=1, zorder=zo + 1)
454
- self.ax.plot([x, x], [y, y + h], color='white', lw=1, zorder=zo + 1)
452
+ self.ax.plot([x + w, x + w], [y, y + h], color='white', lw=1, zorder=10)
453
+ self.ax.plot([x, x], [y, y + h], color='white', lw=1, zorder=10)
455
454
 
456
455
  # Add background highlights
457
456
  for (x0, x1) in self.highlighted_x_ranges:
@@ -613,9 +612,13 @@ class SerialChart(Chart):
613
612
  for i, date in enumerate(dates):
614
613
  xy = (date, values[i])
615
614
  dir = self._get_annotation_direction(i, values)
616
- self._annotate_point(a_formatter(values[i]), xy,
617
- color=trendline_color,
618
- direction=dir)
615
+ self._annotate_point(
616
+ a_formatter(values[i]),
617
+ xy,
618
+ color=trendline_color,
619
+ direction=dir,
620
+ zorder=15
621
+ )
619
622
 
620
623
  # x = [a.xy[0] for a in self._annotations]
621
624
  # y = [a.xy[1] for a in self._annotations]
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: newsworthycharts
3
- Version: 1.61.2
3
+ Version: 1.61.3
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.2.tar.gz
6
+ Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.61.3.tar.gz
7
7
  Author: Jens Finnäs and Leo Wallentin, J++ Stockholm
8
8
  Author-email: stockholm@jplusplus.org
9
9
  License: MIT
@@ -253,6 +253,11 @@ Roadmap
253
253
  Changelog
254
254
  ---------
255
255
 
256
+ - 1.61.3
257
+
258
+ - z-ordering fix in stacked bar charts
259
+ - added an extra categorical color to the newsworthy style
260
+
256
261
  - 1.61.2
257
262
 
258
263
  - Remove horizontal line between bars in stacked bar charts