newsworthycharts 1.61.3__tar.gz → 1.62.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.
Files changed (51) hide show
  1. {newsworthycharts-1.61.3/newsworthycharts.egg-info → newsworthycharts-1.62.0}/PKG-INFO +13 -3
  2. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/README.rst +11 -1
  3. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/__init__.py +1 -1
  4. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/scatterplot.py +1 -1
  5. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/serialchart.py +5 -5
  6. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0/newsworthycharts.egg-info}/PKG-INFO +13 -3
  7. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/LICENSE.txt +0 -0
  8. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/MANIFEST.in +0 -0
  9. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/bubblemap.py +0 -0
  10. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/categoricalchart.py +0 -0
  11. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/chart.py +0 -0
  12. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/choroplethmap.py +0 -0
  13. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/custom/__init__.py +0 -0
  14. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/custom/climate_cars.py +0 -0
  15. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/datawrapper.py +0 -0
  16. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/lib/__init__.py +0 -0
  17. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/lib/color_fn.py +0 -0
  18. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/lib/colors.py +0 -0
  19. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/lib/datalist.py +0 -0
  20. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/lib/formatter.py +0 -0
  21. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/lib/geography.py +0 -0
  22. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/lib/locator.py +0 -0
  23. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/lib/mimetypes.py +0 -0
  24. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/lib/utils.py +0 -0
  25. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/map.py +0 -0
  26. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/maps/se-4.gpkg +0 -0
  27. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/maps/se-7.gpkg +0 -0
  28. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/rangeplot.py +0 -0
  29. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/rc/newsworthy +0 -0
  30. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/seasonalchart.py +0 -0
  31. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/storage.py +0 -0
  32. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/stripechart.py +0 -0
  33. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/translations/datawrapper_regions.csv +0 -0
  34. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/translations/regions.py +0 -0
  35. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts/translations/se_municipalities.csv +0 -0
  36. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts.egg-info/SOURCES.txt +0 -0
  37. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts.egg-info/dependency_links.txt +0 -0
  38. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts.egg-info/not-zip-safe +0 -0
  39. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts.egg-info/requires.txt +0 -0
  40. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/newsworthycharts.egg-info/top_level.txt +0 -0
  41. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/setup.cfg +0 -0
  42. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/setup.py +0 -0
  43. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/test/test_categorical_chart.py +0 -0
  44. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/test/test_choropleth_maps.py +0 -0
  45. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/test/test_custom_climate_cars.py +0 -0
  46. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/test/test_data_list.py +0 -0
  47. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/test/test_datawrapper.py +0 -0
  48. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/test/test_main.py +0 -0
  49. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/test/test_rangeplot.py +0 -0
  50. {newsworthycharts-1.61.3 → newsworthycharts-1.62.0}/test/test_scatterplot.py +0 -0
  51. {newsworthycharts-1.61.3 → newsworthycharts-1.62.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.61.3
3
+ Version: 1.62.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.61.3.tar.gz
6
+ Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.62.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
@@ -160,7 +160,7 @@ These settings are available for all chart types:
160
160
  - baseline = 0 # The “zero” line. Useful for plotting deviations, e.g. temperatures above/below mean
161
161
  - baseline_annotation = None # A label for the baseline
162
162
  - line_width = None # To override style settings
163
- - max_ticks = 7 # Maximum number of ticks on the x axis
163
+ - max_ticks = 10 # Maximum number of ticks on the x axis
164
164
  - ticks = None # Custom ticks on the x axis, as a list of lists or tuples: `[(2013-01-01, "-13"), (2014-01-01, "-14"), (2015-01-01, "-15")]`
165
165
  - ymin = None # Minimum value on y axis. If None, it will be calculated from data
166
166
  - ymax = None # Maximum value on y axis. If None, it will be calculated from data
@@ -253,6 +253,16 @@ Roadmap
253
253
  Changelog
254
254
  ---------
255
255
 
256
+ - 1.62.0
257
+
258
+ - max_ticks default is now 10 in SerialChart and 7 in ScatterPlot
259
+ - Don't print legend labels for empty series
260
+
261
+ - 1.61.4
262
+
263
+ - Make sure y axis and/or baseline is in front of bar padding
264
+ - Make sure hlines are in front of bar padding
265
+
256
266
  - 1.61.3
257
267
 
258
268
  - z-ordering fix in stacked bar charts
@@ -133,7 +133,7 @@ These settings are available for all chart types:
133
133
  - baseline = 0 # The “zero” line. Useful for plotting deviations, e.g. temperatures above/below mean
134
134
  - baseline_annotation = None # A label for the baseline
135
135
  - line_width = None # To override style settings
136
- - max_ticks = 7 # Maximum number of ticks on the x axis
136
+ - max_ticks = 10 # Maximum number of ticks on the x axis
137
137
  - ticks = None # Custom ticks on the x axis, as a list of lists or tuples: `[(2013-01-01, "-13"), (2014-01-01, "-14"), (2015-01-01, "-15")]`
138
138
  - ymin = None # Minimum value on y axis. If None, it will be calculated from data
139
139
  - ymax = None # Maximum value on y axis. If None, it will be calculated from data
@@ -226,6 +226,16 @@ Roadmap
226
226
  Changelog
227
227
  ---------
228
228
 
229
+ - 1.62.0
230
+
231
+ - max_ticks default is now 10 in SerialChart and 7 in ScatterPlot
232
+ - Don't print legend labels for empty series
233
+
234
+ - 1.61.4
235
+
236
+ - Make sure y axis and/or baseline is in front of bar padding
237
+ - Make sure hlines are in front of bar padding
238
+
229
239
  - 1.61.3
230
240
 
231
241
  - z-ordering fix in stacked bar charts
@@ -1,4 +1,4 @@
1
- __version__ = "1.61.3"
1
+ __version__ = "1.62.0"
2
2
 
3
3
  from .chart import Chart
4
4
  from .choroplethmap import ChoroplethMap
@@ -47,7 +47,7 @@ class ScatterPlot(Chart):
47
47
 
48
48
  # hard coded max number of ticks for now
49
49
  # consider dynamic/more clever approach
50
- max_ticks = 5
50
+ max_ticks = 7
51
51
  self.ax.yaxis.set_major_locator(MaxNLocator(nbins=max_ticks))
52
52
  self.ax.xaxis.set_major_locator(MaxNLocator(nbins=max_ticks))
53
53
 
@@ -34,7 +34,7 @@ class SerialChart(Chart):
34
34
  # Set with of lines explicitly (otherwise determined by style file)
35
35
  self.line_width = None
36
36
 
37
- self.max_ticks = 7
37
+ self.max_ticks = 10
38
38
 
39
39
  # Manually set tick locations and labels? Provide a list of tuples:
40
40
  # [(2013-01-01, "-13"), (2014-01-01, "-14"), (2015-01-01, "-15")]
@@ -266,7 +266,7 @@ class SerialChart(Chart):
266
266
  marker='.',
267
267
  zorder=12)
268
268
 
269
- if len(self.labels) > i:
269
+ if len(self.labels) > i and any([x[1] for x in serie]):
270
270
  line.set_label(self.labels[i])
271
271
 
272
272
  if self.label_placement == "line":
@@ -381,7 +381,7 @@ class SerialChart(Chart):
381
381
  bars = self.ax.bar(dates, values, **bar_kwargs)
382
382
  bar_elems.append(bars)
383
383
 
384
- if len(self.labels) > i:
384
+ if len(self.labels) > i and any([x[1] for x in serie]):
385
385
  bars.set_label(self.labels[i])
386
386
 
387
387
  # Add annotations
@@ -478,7 +478,7 @@ class SerialChart(Chart):
478
478
  y=self.baseline,
479
479
  linewidth=1,
480
480
  color="#444444",
481
- zorder=6,
481
+ zorder=11,
482
482
  linestyle="--" if self.baseline else "-"
483
483
  )
484
484
  if self.baseline_annotation:
@@ -640,7 +640,7 @@ class SerialChart(Chart):
640
640
  xmin=0,
641
641
  xmax=1,
642
642
  clip_on=False,
643
- zorder=6,
643
+ zorder=11,
644
644
  )
645
645
 
646
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.3
3
+ Version: 1.62.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.61.3.tar.gz
6
+ Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.62.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
@@ -160,7 +160,7 @@ These settings are available for all chart types:
160
160
  - baseline = 0 # The “zero” line. Useful for plotting deviations, e.g. temperatures above/below mean
161
161
  - baseline_annotation = None # A label for the baseline
162
162
  - line_width = None # To override style settings
163
- - max_ticks = 7 # Maximum number of ticks on the x axis
163
+ - max_ticks = 10 # Maximum number of ticks on the x axis
164
164
  - ticks = None # Custom ticks on the x axis, as a list of lists or tuples: `[(2013-01-01, "-13"), (2014-01-01, "-14"), (2015-01-01, "-15")]`
165
165
  - ymin = None # Minimum value on y axis. If None, it will be calculated from data
166
166
  - ymax = None # Maximum value on y axis. If None, it will be calculated from data
@@ -253,6 +253,16 @@ Roadmap
253
253
  Changelog
254
254
  ---------
255
255
 
256
+ - 1.62.0
257
+
258
+ - max_ticks default is now 10 in SerialChart and 7 in ScatterPlot
259
+ - Don't print legend labels for empty series
260
+
261
+ - 1.61.4
262
+
263
+ - Make sure y axis and/or baseline is in front of bar padding
264
+ - Make sure hlines are in front of bar padding
265
+
256
266
  - 1.61.3
257
267
 
258
268
  - z-ordering fix in stacked bar charts