From 9637e0ac2d792a4af14361ba6839db8225c144fb Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Thu, 31 Oct 2024 19:44:12 +0100 Subject: horizontal add barb plots --- metchart/plotter/horizontal.py | 6 +++++- pyproject.toml | 2 +- 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", -- cgit v1.2.3