aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-10-31 19:44:12 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-10-31 19:44:12 +0100
commit9637e0ac2d792a4af14361ba6839db8225c144fb (patch)
treed4b554ca1d749af493839fefad7c2b2c143411be
parentcd69f3b04bd42005a181b5c7459de5ec7f2aa572 (diff)
downloadmeteo_toolbox-9637e0ac2d792a4af14361ba6839db8225c144fb.tar.gz
horizontal add barb plotsmain
-rwxr-xr-xmetchart/plotter/horizontal.py6
-rw-r--r--pyproject.toml2
2 files changed, 6 insertions, 2 deletions
diff --git a/metchart/plotter/horizontal.py b/metchart/plotter/horizontal.py
index e481f82..de26d26 100755
--- a/metchart/plotter/horizontal.py
+++ b/metchart/plotter/horizontal.py
@@ -6,7 +6,7 @@ import xarray as xr
import numpy as np
import matplotlib.pyplot as plt
-from metpy.plots import MapPanel, PanelContainer, RasterPlot, ContourPlot
+from metpy.plots import MapPanel, PanelContainer, RasterPlot, ContourPlot, BarbPlot
from .. import misc
@@ -109,6 +109,10 @@ def _layer(data, layertype, **kwargs):
'contour': {
'obj': ContourPlot,
'defaults': {}
+ },
+ 'barbs': {
+ 'obj': BarbPlot,
+ 'defaults': {}
}
}
diff --git a/pyproject.toml b/pyproject.toml
index d5a60bd..873f19e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "metchart"
-version = "0.0.2"
+version = "0.0.3"
dependencies = [
"metpy",
"xarray",