3 Commits

Author SHA1 Message Date
sintzoff
bc240aff92 Merge f5fb002e03 into 2da2395112 2025-01-28 18:19:04 +00:00
Marcelo de Oliveira Rosa Prates
2da2395112 Update setup.py 2025-01-12 13:40:30 -03:00
André Sintzoff
f5fb002e03 draw.py: fix plot() parameter documentation (fix #121)
as osm_credit was replaced by credit in commit c6c8f19
2023-11-05 12:41:11 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -561,7 +561,7 @@ def draw_text(params: Dict[str, dict], background: BaseGeometry) -> None:
params (Dict[str, dict]): matplotlib style parameters for drawing text. params['text'] should contain the message to be drawn.
background (BaseGeometry): Background layer
"""
# Override default osm_credit dict with provided parameters
# Override default credit dict with provided parameters
params = override_params(
dict(
text="\n".join(
@@ -864,7 +864,7 @@ def plot(
Specify the name of each layer and the OpenStreetMap tags to fetch
style: dict
Drawing params for each layer (matplotlib params such as 'fc', 'ec', 'fill', etc.)
osm_credit: dict
credit: dict
OSM Caption parameters
figsize: Tuple
(Optional) Width and Height (in inches) for the Matplotlib figure. Defaults to (10, 10)

View File

@@ -7,7 +7,7 @@ presets_dir = os.path.abspath(os.path.join(os.path.pardir, "presets"))
setup(
name="prettymaps",
version="v1.3.1",
version="v1.3.2",
description="A simple python library to draw pretty maps from OpenStreetMap data",
long_description=parent_dir.joinpath("README.md").read_text(),
long_description_content_type="text/markdown",