newsworthycharts 1.74.1__py3-none-any.whl → 1.74.2__py3-none-any.whl

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.
@@ -1,4 +1,4 @@
1
- __version__ = "1.74.1"
1
+ __version__ = "1.74.2"
2
2
 
3
3
  from .chart import Chart
4
4
  from .choroplethmap import ChoroplethMap
@@ -539,7 +539,10 @@ class SerialChart(Chart):
539
539
  (x0, x1) = self.highlighted_x_ranges[idx]
540
540
  x0 = to_date(x0)
541
541
  x1 = to_date(x1)
542
+ # Put label betwen top value and axis limit
542
543
  _y = self.ymax or self.data.max_val + self.baseline
544
+ _y_top = self.ax.get_ylim()[1]
545
+ _y = _y_top - (_y_top - _y) / 2
543
546
  self.ax.text(
544
547
  x0 + (x1 - x0) / 2,
545
548
  _y,
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: newsworthycharts
3
- Version: 1.74.1
3
+ Version: 1.74.2
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.74.1.tar.gz
6
+ Download-URL: https://github.com/jplusplus/newsworthycharts/archive/1.74.2.tar.gz
7
7
  Author: Jens Finnäs and Leo Wallentin, J++ Stockholm
8
8
  Author-email: stockholm@jplusplus.org
9
9
  License: MIT
@@ -285,6 +285,10 @@ Roadmap
285
285
  Changelog
286
286
  ---------
287
287
 
288
+ - 1.74.2
289
+
290
+ - Improved positioning of x-range annotations in SerialChart
291
+
288
292
  - 1.74.1
289
293
 
290
294
  - Wait for data to be added before calculating dynamic heights and responsive typography
@@ -1,4 +1,4 @@
1
- newsworthycharts/__init__.py,sha256=fRJO8g3nfstntB5oDDv7d411O48Z4OkA-eL5IvwTRaY,1221
1
+ newsworthycharts/__init__.py,sha256=rzXGayG5WDpEr3V4WAe9kA0paK5FCLIDy8BDMpGK3is,1221
2
2
  newsworthycharts/bubblemap.py,sha256=nkocWmpiFgfjEuJGAsthjY5X7Q56jXWsZHUGXw4PwgE,2587
3
3
  newsworthycharts/categoricalchart.py,sha256=Vr-0yFms0hEVCeUa3vLt3FYBqpX4xLQ8YGPc4LGQN_A,18368
4
4
  newsworthycharts/chart.py,sha256=QDvIo_HV9fDmadBKLsPJMXrIYL6ZbHnDbVjZuzX9Srw,35441
@@ -9,7 +9,7 @@ newsworthycharts/rangeplot.py,sha256=NE1W9TnmlpK6T3RvBJOU3nd73EXqkj17OY9i5zlw_cQ
9
9
  newsworthycharts/rankchart.py,sha256=vMzNMVOv1jae6wuHC_riAdb1lm9oPltO3TT3YQpc0Oc,9376
10
10
  newsworthycharts/scatterplot.py,sha256=weHubdMsDGaBTXejg2TqBNPTQ1K-QBpZqJiyQ8EOEc4,5084
11
11
  newsworthycharts/seasonalchart.py,sha256=ttT8JpvWB3DL0EcTBQor_Uxlow_6tdcl7ibEmLCpUrQ,1982
12
- newsworthycharts/serialchart.py,sha256=Km1qxTumFq0GcKPzdaaU5mhq9f2BtusQ0tbpW6WsMiw,31936
12
+ newsworthycharts/serialchart.py,sha256=0soPp2hwCYNOv1c8iTBCkh6YwXlhTDqZlR5j4k3uh3Q,32079
13
13
  newsworthycharts/storage.py,sha256=myERhlpvXyExXxUByBq9eW1bWkCyfH9SwTZbsWSyy3Q,4301
14
14
  newsworthycharts/stripechart.py,sha256=9B6PX2MyLuKNQ8W0OGdKbP0-U32kju0K_NHHwwz_J68,1547
15
15
  newsworthycharts/custom/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -29,8 +29,8 @@ newsworthycharts/rc/newsworthy,sha256=yOIZvYS6PG1u19VMcdtfj9vbihKQsey5IprwqK59Kg
29
29
  newsworthycharts/translations/datawrapper_regions.csv,sha256=fzZcQRX6RFMlNNP8mpgfYNdR3Y0QAlQxDXk8FXTaWWI,9214
30
30
  newsworthycharts/translations/regions.py,sha256=Nv1McQjggD4S3JRu82rDMTG3pqUVR13E5-FBpSYbm98,239
31
31
  newsworthycharts/translations/se_municipalities.csv,sha256=br_mm-IvzQtj_W55_ATREhJ97jWnCweBFlDAVY2EBxA,7098
32
- newsworthycharts-1.74.1.dist-info/licenses/LICENSE.txt,sha256=Sq6kGICrehbhC_FolNdXf0djKjTpv3YqjFCIYsxdQN4,1069
33
- newsworthycharts-1.74.1.dist-info/METADATA,sha256=4VzONRQwYL2m336k48UXCPBNt29KTv-1rtVhMwWA6P8,35284
34
- newsworthycharts-1.74.1.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
35
- newsworthycharts-1.74.1.dist-info/top_level.txt,sha256=dn_kzIj8UgUCMsh1PHdVEQJHVGSsN7Z8YJF-8xXa8n0,17
36
- newsworthycharts-1.74.1.dist-info/RECORD,,
32
+ newsworthycharts-1.74.2.dist-info/licenses/LICENSE.txt,sha256=Sq6kGICrehbhC_FolNdXf0djKjTpv3YqjFCIYsxdQN4,1069
33
+ newsworthycharts-1.74.2.dist-info/METADATA,sha256=-VsTp67U9vXLQx9pUYIwGtVlwGnjqyD8UIIeffC5pcw,35358
34
+ newsworthycharts-1.74.2.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
35
+ newsworthycharts-1.74.2.dist-info/top_level.txt,sha256=dn_kzIj8UgUCMsh1PHdVEQJHVGSsN7Z8YJF-8xXa8n0,17
36
+ newsworthycharts-1.74.2.dist-info/RECORD,,