toolsos 0.3.0__tar.gz → 0.3.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 (33) hide show
  1. {toolsos-0.3.0 → toolsos-0.3.1}/PKG-INFO +1 -1
  2. {toolsos-0.3.0 → toolsos-0.3.1}/pyproject.toml +1 -1
  3. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/huisstijl/maps/choropleth.py +9 -3
  4. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos.egg-info/PKG-INFO +1 -1
  5. {toolsos-0.3.0 → toolsos-0.3.1}/README.md +0 -0
  6. {toolsos-0.3.0 → toolsos-0.3.1}/setup.cfg +0 -0
  7. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/__init__.py +0 -0
  8. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/cbs_tools.py +0 -0
  9. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/create_tables.py +0 -0
  10. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/database/database_connection.py +0 -0
  11. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/database/database_transfer.py +0 -0
  12. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/download.py +0 -0
  13. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/geo.py +0 -0
  14. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/helpers.py +0 -0
  15. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/huisstijl/__init__.py +0 -0
  16. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/huisstijl/colors.py +0 -0
  17. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/huisstijl/graphs/__init__.py +0 -0
  18. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/huisstijl/graphs/bargraph.py +0 -0
  19. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/huisstijl/graphs/graph_styles.py +0 -0
  20. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/huisstijl/graphs/linegraph.py +0 -0
  21. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/huisstijl/graphs/piegraph.py +0 -0
  22. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/huisstijl/graphs/styler.py +0 -0
  23. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/huisstijl/maps/__init__.py +0 -0
  24. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/huisstijl/tables/__init__.py +0 -0
  25. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/huisstijl/tables/table_helpers.py +0 -0
  26. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/huisstijl/tables/table_styles.py +0 -0
  27. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/huisstijl/tables/tables.py +0 -0
  28. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos/polars_helpers.py +0 -0
  29. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos.egg-info/SOURCES.txt +0 -0
  30. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos.egg-info/dependency_links.txt +0 -0
  31. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos.egg-info/requires.txt +0 -0
  32. {toolsos-0.3.0 → toolsos-0.3.1}/src/toolsos.egg-info/top_level.txt +0 -0
  33. {toolsos-0.3.0 → toolsos-0.3.1}/tests/test_tables.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: toolsos
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: OS tools
5
5
  Author-email: OS <d.schmitz@amsterdam.nl>
6
6
  Keywords: tools,Onderzoek & Statistiek
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "toolsos"
9
- version = "0.3.0"
9
+ version = "0.3.1"
10
10
  description = "OS tools"
11
11
  readme = "README.md"
12
12
  authors = [{ name = "OS", email = "d.schmitz@amsterdam.nl" }]
@@ -1,7 +1,8 @@
1
- from typing import Any, Iterable, Optional
1
+ from typing import TYPE_CHECKING, Any, Iterable, Optional
2
2
 
3
3
  import geopandas as gpd
4
4
  import matplotlib.pyplot as plt
5
+ from matplotlib import axis
5
6
  from matplotlib.colors import ListedColormap
6
7
  from matplotlib.patches import Patch
7
8
 
@@ -16,9 +17,13 @@ def plot_choropleth(
16
17
  edgecolor: str = "grey",
17
18
  figsize: tuple[int, int] = (10, 8),
18
19
  bbox_to_anchor: tuple[int, int] = (-0.05, 0),
20
+ ax: Optional[axis.Axis] = None,
19
21
  ):
22
+ _ax = ax
23
+
20
24
  # plotten
21
- fig, ax = plt.subplots(figsize=figsize)
25
+ if not ax:
26
+ fig, ax = plt.subplots(figsize=figsize)
22
27
 
23
28
  gdf.plot(
24
29
  column=column,
@@ -69,4 +74,5 @@ def plot_choropleth(
69
74
  # laten zien
70
75
  plt.tight_layout()
71
76
 
72
- return fig, ax
77
+ if not _ax:
78
+ return fig, ax
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: toolsos
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: OS tools
5
5
  Author-email: OS <d.schmitz@amsterdam.nl>
6
6
  Keywords: tools,Onderzoek & Statistiek
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes