newsworthycharts 1.61.2__tar.gz → 1.61.4__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.4}/PKG-INFO +12 -2
  2. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/README.rst +10 -0
  3. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/__init__.py +1 -1
  4. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/rc/newsworthy +1 -1
  5. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/serialchart.py +12 -9
  6. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4/newsworthycharts.egg-info}/PKG-INFO +12 -2
  7. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/LICENSE.txt +0 -0
  8. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/MANIFEST.in +0 -0
  9. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/bubblemap.py +0 -0
  10. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/categoricalchart.py +0 -0
  11. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/chart.py +0 -0
  12. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/choroplethmap.py +0 -0
  13. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/custom/__init__.py +0 -0
  14. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/custom/climate_cars.py +0 -0
  15. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/datawrapper.py +0 -0
  16. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/lib/__init__.py +0 -0
  17. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/lib/color_fn.py +0 -0
  18. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/lib/colors.py +0 -0
  19. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/lib/datalist.py +0 -0
  20. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/lib/formatter.py +0 -0
  21. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/lib/geography.py +0 -0
  22. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/lib/locator.py +0 -0
  23. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/lib/mimetypes.py +0 -0
  24. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/lib/utils.py +0 -0
  25. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/map.py +0 -0
  26. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/maps/se-4.gpkg +0 -0
  27. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/maps/se-7.gpkg +0 -0
  28. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/rangeplot.py +0 -0
  29. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/scatterplot.py +0 -0
  30. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/seasonalchart.py +0 -0
  31. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/storage.py +0 -0
  32. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/stripechart.py +0 -0
  33. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/translations/datawrapper_regions.csv +0 -0
  34. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/translations/regions.py +0 -0
  35. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts/translations/se_municipalities.csv +0 -0
  36. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts.egg-info/SOURCES.txt +0 -0
  37. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts.egg-info/dependency_links.txt +0 -0
  38. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts.egg-info/not-zip-safe +0 -0
  39. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts.egg-info/requires.txt +0 -0
  40. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/newsworthycharts.egg-info/top_level.txt +0 -0
  41. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/setup.cfg +0 -0
  42. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/setup.py +0 -0
  43. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/test/test_categorical_chart.py +0 -0
  44. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/test/test_choropleth_maps.py +0 -0
  45. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/test/test_custom_climate_cars.py +0 -0
  46. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/test/test_data_list.py +0 -0
  47. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/test/test_datawrapper.py +0 -0
  48. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/test/test_main.py +0 -0
  49. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/test/test_rangeplot.py +0 -0
  50. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/test/test_scatterplot.py +0 -0
  51. {newsworthycharts-1.61.2 → newsworthycharts-1.61.4}/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.4
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.4.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,16 @@ Roadmap
253
253
  Changelog
254
254
  ---------
255
255
 
256
+ - 1.61.4
257
+
258
+ - Make sure y axis and/or baseline is in front of bar padding
259
+ - Make sure hlines are in front of bar padding
260
+
261
+ - 1.61.3
262
+
263
+ - z-ordering fix in stacked bar charts
264
+ - added an extra categorical color to the newsworthy style
265
+
256
266
  - 1.61.2
257
267
 
258
268
  - Remove horizontal line between bars in stacked bar charts
@@ -226,6 +226,16 @@ Roadmap
226
226
  Changelog
227
227
  ---------
228
228
 
229
+ - 1.61.4
230
+
231
+ - Make sure y axis and/or baseline is in front of bar padding
232
+ - Make sure hlines are in front of bar padding
233
+
234
+ - 1.61.3
235
+
236
+ - z-ordering fix in stacked bar charts
237
+ - added an extra categorical color to the newsworthy style
238
+
229
239
  - 1.61.2
230
240
 
231
241
  - Remove horizontal line between bars in stacked bar charts
@@ -1,4 +1,4 @@
1
- __version__ = "1.61.2"
1
+ __version__ = "1.61.4"
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:
@@ -479,7 +478,7 @@ class SerialChart(Chart):
479
478
  y=self.baseline,
480
479
  linewidth=1,
481
480
  color="#444444",
482
- zorder=6,
481
+ zorder=11,
483
482
  linestyle="--" if self.baseline else "-"
484
483
  )
485
484
  if self.baseline_annotation:
@@ -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]
@@ -637,7 +640,7 @@ class SerialChart(Chart):
637
640
  xmin=0,
638
641
  xmax=1,
639
642
  clip_on=False,
640
- zorder=6,
643
+ zorder=11,
641
644
  )
642
645
 
643
646
  def _adust_texts_vertically(self, elements, ha="left"):
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: newsworthycharts
3
- Version: 1.61.2
3
+ Version: 1.61.4
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.4.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,16 @@ Roadmap
253
253
  Changelog
254
254
  ---------
255
255
 
256
+ - 1.61.4
257
+
258
+ - Make sure y axis and/or baseline is in front of bar padding
259
+ - Make sure hlines are in front of bar padding
260
+
261
+ - 1.61.3
262
+
263
+ - z-ordering fix in stacked bar charts
264
+ - added an extra categorical color to the newsworthy style
265
+
256
266
  - 1.61.2
257
267
 
258
268
  - Remove horizontal line between bars in stacked bar charts