Skip to content

Commit

Permalink
Reduce the margin of the stations plot
Browse files Browse the repository at this point in the history
  • Loading branch information
gutzbenj committed Feb 3, 2025
1 parent e2ff51e commit 8766155
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Development

### Refactor
- Reduce the margin of the stations plot

## 0.103.0 - 2025-02-02

### Feature
Expand Down
5 changes: 4 additions & 1 deletion wetterdienst/core/timeseries/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def to_plot(self, **_kwargs) -> go.Figure:
pl.lit(")"),
).alias("name"),
)
return px.scatter_map(
fig = px.scatter_map(
df,
lat="latitude",
lon="longitude",
Expand All @@ -332,6 +332,9 @@ def to_plot(self, **_kwargs) -> go.Figure:
lon=center_lon,
),
)
return fig.update_layout(
margin=dict(r=10, t=10, l=10, b=10),
)

def _to_image(
self,
Expand Down

0 comments on commit 8766155

Please sign in to comment.